LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LED Persistence

Hi,

 

I would like my program to do turn an LED on when the INPUT > X. If the input then drops, the LED will stay on for 10 seconds before turning off.

 

I have figured how to turn an LED on when INPUT has been > X for 10 seconds, but not what I need.

 

Thanks

0 Kudos
Message 1 of 3
(2,083 Views)

Hi alarmharm,

I would recommend using a state machine for your application.  More information on state machines can be found here: http://zone.ni.com/reference/en-XX/help/370281P-01/imaqvision/imaq_arraytoimage/
You can have a state that waits for INPUT>X to transition into a state that turns the light on and waits for INPUT<X.  This state would transition into a state that waits for 10 seconds and then turns the LED off which then goes back to the original state that waits for INPUT>X.

 

0 Kudos
Message 2 of 3
(2,032 Views)

Perhaps you can use something like this as a starting point.

Download All
0 Kudos
Message 3 of 3
(2,002 Views)