LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

1D array boolean (true false) & Boolean(True False)

Solved!
Go to solution

Could any solve this problem? and please explain me why this happened? thank you so much....

untitled.JPG

 

0 Kudos
Message 1 of 4
(10,705 Views)
Solution
Accepted by topic author kelvin tay

Hi Kelvin,

 

that happens when you try to connect an array to a scalar indicator Smiley Wink

 

You check an array to be in range - for each element of the array. So you get a boolean array, one bit per element!

If you want know if all array elements are in range use the "AND array elements" function.

If you need to know if one of the array elements is in range use the "OR array elements" function...

 

Edited:

- You probably want to set scalar limits instead of arrays of limits.

- To negate numbers you can use the "negate" function. Or did you set that "-1" array constant to have the correct number of elements?

Message Edited by GerdW on 07-19-2009 11:15 AM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(10,706 Views)
ya, thank you very much
0 Kudos
Message 3 of 4
(10,687 Views)

Depending on the kind of output you want, you can also right-click the function and select "comparison mode...compare aggregates" This will also give you a single boolean output.

 

 

Overall, Things seem a bit odd, though. For example, what are you doing with the multiplication? Is this an array of all -1 or do the elements there vary? If you just want to invert the entire array, use a scalar diagram constant or, in this particular case, use the "negate" primitive from the numeric palette.

 

Do you want to compare with global limits or an array of varying limits, compared element by element?

Can you attach your code?
Message Edited by altenbach on 07-19-2009 08:54 AM
0 Kudos
Message 4 of 4
(10,677 Views)