LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Outputting a voltage for a required time

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.

0 Kudos
Message 1 of 5
(2,553 Views)

@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.....Smiley Wink

0 Kudos
Message 2 of 5
(2,543 Views)

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.

0 Kudos
Message 3 of 5
(2,525 Views)

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?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 5
(2,521 Views)

@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

0 Kudos
Message 5 of 5
(2,498 Views)