LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Detect how long a boolean is true

Solved!
Go to solution

@kartiknattar wrote:

I guess this might help you. 

rise fall delta difference.PNG


Ohh thank you! But what I have to write in the both false case?

0 Kudos
Message 11 of 19
(1,344 Views)

This vi will help you. Mark as solution if it works


CLD Using LabVIEW since 2013
Message 12 of 19
(1,340 Views)

It is not what I ask 😕 I try to explain better:

1) I have a boolean as control;

2) After I push the control I would like that a timer start;

3) If this boolean remain true for more then 2 seconds an indicator (led) lights on;

4)When the boolean return false, the led lights off and the timer return to zero;

5)When the boolen is true again the whole cicle will start again;

 

I hope so much that you could help me!

0 Kudos
Message 13 of 19
(1,334 Views)

Hi mb,

 

you already marked a solution to your question, so why do you need a new thread to discuss the very same problem?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 14 of 19
(1,330 Views)
Solution
Accepted by topic author mbindustry

Here's what I would probably do:

 

TrueTime.png

Message 15 of 19
(1,329 Views)

cause I am wrong

0 Kudos
Message 16 of 19
(1,328 Views)

thank you! It was of help but I would like that after 2 seconds the led lights on, not in the same moment of the boolean

0 Kudos
Message 17 of 19
(1,319 Views)

done! Merci!!!

0 Kudos
Message 18 of 19
(1,317 Views)

@mbindustry wrote:

thank you! It was of help but I would like that after 2 seconds the led lights on, not in the same moment of the boolean


A simple ">2" comparison in the time difference will do that.

 

DelayedLED.png

Message 19 of 19
(1,308 Views)