LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

only read boolean on change.

Hi, i have a vi thats sends an emal when a LED light turns on. the led is controled by a bunch of other stuff. What im looking to do is only send 1 email when it turns red however the rest of the code must continue to run at all other times. I have 3 LEDs per indicator and about 12 indicators and if more than one of them light up the red LED its going to start spamming emails the way i have it set up now.

 

So to put it clearly i need to detect if a boolean has changes value and then see if that value = true and if both state change and value are true then send email.

0 Kudos
Message 1 of 3
(2,745 Views)

Hi, 

 

Here is a solution using the Value (sgnl) property. This property changes the value  of the LED and generate an event at the same time 😉

 

Don't hesitate to ask if you need some more information.  

CLAMaxime -- Kudos are a great way to say thank you
0 Kudos
Message 2 of 3
(2,731 Views)

A feedback node or uninitialised shift register can give you the value of the last run.

 

ChangedAndTrue.png



CLA
www.dvel.se
Message 3 of 3
(2,718 Views)