LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

boolean indicator come on and stay on if only one data point outside of limits

Okay, here goes my second rookie question.  My first one was solved in a matter of hours after posting here, so I am going to give it another shot.  This has probably been posted elsewhere, but I just am not familiar enough with the terminology and know how to find it in this forum... sorry for that.

 

Currently, I have a setup where I am using an In Range and Coerce function in the Comparison Pallette to check the output of my source and compare it with a user inputted upper and lower limit.  I have hooked up an LED indicator to the Index Array and then to the In Range output.  Right now, if my data goes outside of the limit, the LED Indicator will light up, but it will immediately turn off if the data goes back within the limits.  I want my LED indicator to come on and STAY on if even 1 data point goes outside of the limit.  What can I connect between my LED Indicator and my In Range Comparison to make this happen?  

 

Sorry for being so new to this!!

0 Kudos
Message 1 of 4
(4,923 Views)
Combine that output of that function with the Boolean OR.   The inputs come from the In range and coerce and also a shift register.  The output goes to right hand shift register and your indicator.  The shift register remembers the state of the boolean between iterations.  So if it IS true (from in range, or actually out of range) OR Was True (from SR) then the output will be True and the result will also be True for all future iterations.
0 Kudos
Message 2 of 4
(4,912 Views)

Hi Spsuengr,

 

I have attached a boolean toggle vi for you. You can insert this vi in between your led indicator and in range output. It will latch the output by default. You can use the latch(t) input to disable the latch feature (to perhaps reset).

 

Boolean Latch Snippet.png

 

Above is the boolean latch vi

 

Boolean latch example snippet.png

 

Above is how you need to insert it into your code. If you leave the Latch(t) input unconnected it defaults to a latch output. Only wire a control to this if you want to either change the output so it follows the input or if you need to reset the output.

 

Rgs,

 

Lucither

 

Message Edited by Lucither on 04-15-2010 05:22 AM
------------------------------------------------------------------------------------------------------
"Everything should be made as simple as possible but no simpler"
0 Kudos
Message 3 of 4
(4,888 Views)
You could use the OpenG Boolean Trigger an Or and a Shift Register to do this.

Example_VI.png
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 4 of 4
(4,874 Views)