LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

led

I would like to switch on and off a relay during 5/10 seconds (NI 9481 module) and to light on /off a LED (3 cycle in total).

I have managed to do it but now I would like also to show the elapsed time in every cycle and I am not able to do it. Time start elapsing  and it switch on the relay at the beginning but then it stays inside the while loop without going out from it.

Can anyone help me?

0 Kudos
Message 1 of 2
(2,396 Views)

There's an Elapsed Time vi in the Timing palette, it should fit your needs.  If you're using the Event structure just for the timeout case you can probably replace it with this and a conditional structure.


--Using LV8.2, 8.6, 2009, 2012--
0 Kudos
Message 2 of 2
(2,352 Views)