LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Led light

how do we make a push button turn an indicator on and afterwards a sensor will turn it off?

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

What type of sensor you want?

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
Message 2 of 5
(2,619 Views)

A motion sensor.

Let me explain the process. in a automated car wash process.I have to press a confirm button which is latched when released and this confirm button will turn on a light that has to turn off when a motion sensor located at the exit will turn the light off. Please help.

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

How you are going to read the motion sensor?

 

When you got the valid data, you just need to read the data inside while loop and turn it off accordingly

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 4 of 5
(2,614 Views)

Hi Majd,

 

use a shift register to keep the current state of the LED. The rest is quite easy as shown in the pseudocode:

IF buttonpress THEN LED=TRUE
IF sensorsignal THEN LED=FALSE

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 5
(2,608 Views)