LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to make indicator appear after a few times signal from boolen

Solved!
Go to solution

hello and good day to everyone.. 

 

 I'm trying to make a case change from false to true after receiving 3 or more signal from a boolen.

 

situation example, the signal is send but the case will change to true after three times of signal is receive then the turn to true case. If only two times of

signal is receive, the case will not change..

 

Does anyone have any suggestions or ideas how to create it? Or have another ways to solve it?

 

best regards,

leman lennon

0 Kudos
Message 1 of 4
(2,187 Views)
Solution
Accepted by topic author lemanlennon

You would use a shift register to track how many times the boolean is true.  If true, then increment.  If false, then don't.  If the value in the shift register =3 AND the value is true, then run your case structure.

0 Kudos
Message 2 of 4
(2,167 Views)

Here is a small example showing what explained Ravens Fan.

It looks for 3 changing states from False to True, then stop the While loop.

You can easily insert this kind of logic into your code.

Test Signal change.png

 

Regards,

Olivier L. | Certified LabVIEW Developer


0 Kudos
Message 3 of 4
(2,162 Views)

A great thanks to 

 

0 Kudos
Message 4 of 4
(2,142 Views)