From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Set a condition after some elapsed time

Hi, I would like to trigger a signal if a bit is 1 for 3 sec. Could you please help me to do it in LabVIEW. So 2 conditions should met

1- the input boolean value is True

2- it is continuously YTrue for 3 sec

 

Then if both are true set condition terminal of a case structure to be True, otherwise the case structure condition terminal is False

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

You can modify this for your application.

 

Output True if Input is True for 3 Sec.png

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

Hi SumTomWong,

 

many thanks for your help. It can do the job but I would also like to reset the timer to 0 when both condtions are true. I don't know how can I reset the timer using your method. This is the reason that I thought to use Elapsed Time function

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

You can try this.

 

Output True if Input is True for 3 Sec 2.png

0 Kudos
Message 4 of 5
(2,281 Views)

I am also unclear about your requirements, whether you want to reset the output too. This example show how to reset the output every 3 seconds when the input is true. The top is an example without using the elapsed timer and the bottom is an example using the elapsed timer.

Output True if Input is True for 3 Sec 3.png

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