LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Compound Aritmetic function

I have the readings from eight sensors going into an OR compound arithmetic function and would like to perform a task when any ONE of the values on the eight sensors goes below 450 (max is~ 500). However, as, if only one is below 450 the rest are not obiviously 'false' will be outputted. So its odds on that 'true' is never outputted.
Does anyone know a way to use the single reading with the compound aritmetic or perhaps antother method?

Thanks

Sam
0 Kudos
Message 1 of 4
(3,003 Views)
I think you need to clear up your question a little more. When one or more elements in an OR ca function is true, the output will be true, so if you don't care how many are below 450 (what I'm calling the TRUE state), the output will be what you want, just use a case statement with your task in the TRUE case.

Dave.
==============================================

0 Kudos
Message 2 of 4
(3,003 Views)
Sorry if it was a bit muddled, I think I know what to do now.
Use AND instead of OR. Then use the false statement of the case for my task when all the sensors readings are not more than 450.
0 Kudos
Message 3 of 4
(3,003 Views)
Here are two functions you might apply to your project.
One is the Array Max & Min Function. Using this function use the min value and compare to your min set point (450).

The other function you might use is the In Range And Coerce. Using this method you can set a min and max value 450 - 500 (do this first, then wire your array to the X input.) The output will be an array of Booleans all will be true unless they fall out of the range you specify. A second output will be an array of the inputs except any that fall out of the range you specify will be coerced to the min or max value.
Example: 465;480;420;475;505 will return T;T;F;T;F and output 465;480;450;475;500.

There are many variations where these two functions may be used. They may be found
in the comparison or the array pallet on the wiring diagram.

Perhaps one of them will help you with this problem.
0 Kudos
Message 4 of 4
(3,003 Views)