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: 

Boolean Logic

Solved!
Go to solution

Hi there,

 

I have tried many different iterations of this and keep coming up short so I thought that maybe one of you wonderful LabVIEW people would be able to help me solve it.

 

Essentially, the input needs to be a Boolean button (switch when pressed) and the output is a simple LED indicator. When button is F, the indicator is also F. When button is T and latching, the indicator will first turn T (blink once) and then turn F for the rest of the time while the button is still set to T. Then when the button goes back to F, the indicator is also F.

 

Attached is one of my many failed attempts - on button T, it blinks, but blinks continuously and every third time (I believe) the button goes to F, it negates the output and throws T on the indicator.

 

Many thanks for any help!

 

 

 

 

0 Kudos
Message 1 of 5
(2,198 Views)
Solution
Accepted by topic author Skud

You mean something like a rising edge?

Boolean Logic.png

Message 2 of 5
(2,183 Views)
Solution
Accepted by topic author Skud

There's also a built-in Boolean Crossing PtByPt VI that has the same functionality but might be a bit easier to reason about (or change direction etc):

Example_VI_BD.png


GCentral
Message 3 of 5
(2,156 Views)

Yes, exactly like rising edge! I have not even considered using comparisons for this!

 

Very nice, thank you, clnglenn!

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

cbutcher,

 

That's a great VI to know about, thanks for pointing it out!

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