03-18-2013 10:45 AM
I have a labview circuit integrated to a myDAQ. In the labveiw circuit I wish to output a voltage for ONLY a required period of time (eg 10 seconds) then switch off again, before running the circuit again. I understand how to loop the circuit, but not how to only apply the voltage for a certain length of time.
Thanks for your help.
03-18-2013 11:01 AM - edited 03-18-2013 11:05 AM
@Emily_UoL wrote:
I have a labview circuit integrated to a myDAQ. In the labveiw circuit I wish to output a voltage for ONLY a required period of time (eg 10 seconds) then switch off again, before running the circuit again. I understand how to loop the circuit, but not how to only apply the voltage for a certain length of time.
Thanks for your help.
for an elapsed time after the Vi has started...use the "elapsed time.vi" in the timing pallete and if it is for a specific time in the future? use the get time vi functions....
do a generic forum search on "time," your question has already been answered there.....
03-18-2013 11:57 AM
Thanks for your help but I'm not sure you understood what I was asking. I understand the elapsed time, but isn't that just waiting before it runs? To go into a little more detail ...
I need an ouput voltage for 10 seconds only. I then need the voltage to return to 0V, then start the circuit again.
03-18-2013 12:11 PM
Write your output, wait the designated amount of time, write a 0 to the output. Put everything into a loop. Sounds like you have all of the peices. Where are you stuck putting them together?
03-18-2013 04:48 PM
@Emily_UoL wrote:
Thanks for your help but I'm not sure you understood what I was asking. I understand the elapsed time, but isn't that just waiting before it runs? To go into a little more detail ...
I need an ouput voltage for 10 seconds only. I then need the voltage to return to 0V, then start the circuit again.
sounds like you need a simple state machine...tells us how you want the user to interact with the program, step by step and case statement transitions. better yet....post your code