LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

test a signal for a certain amount of time to see if its 0 and only then light a led

hi guys and gals, i'm making a little test program where i generate a sawtooth signal and i want to turn on a led (indicator) when the signal is 0. now i know that it will be 0 every cycle but what i want to do is, start a timer to go for 1second (lets say) and in that one second if only 0's happen then turn on the led but if there is anything other than a 0 leave the led off.

 

thx Dan

0 Kudos
Message 1 of 8
(3,867 Views)

saw.PNG

 

Do you mean here your led should be on if there is a zero between -1 to the next -1?

 

 

 

 

0 Kudos
Message 2 of 8
(3,847 Views)
You could make it so your led is off unless the voltage is More or less than a threshold value unless 1 second is important. That way if your voltage is at 0 the led will be off. I assume you want to know when you have a signal.
Tim
GHSP
Message 3 of 8
(3,829 Views)
If time is important then this should be close.
Tim
GHSP
Message 4 of 8
(3,826 Views)
This one is closer. Sorry for the update.
Tim
GHSP
0 Kudos
Message 5 of 8
(3,819 Views)
thanks for the help but it says i cant open a version 9 vi as i have labview 8.5 😞
0 Kudos
Message 6 of 8
(3,801 Views)
i mean if the signal suddenly stops and flatlines, thats when i want the led on (so its 0 consistently for a period of time)
0 Kudos
Message 7 of 8
(3,800 Views)
Here is the 8.5 version
Tim
GHSP
0 Kudos
Message 8 of 8
(3,748 Views)