07-19-2009 03:56 AM
Could any solve this problem? and please explain me why this happened? thank you so much....
Solved! Go to Solution.
07-19-2009 04:12 AM - edited 07-19-2009 04:15 AM
Hi Kelvin,
that happens when you try to connect an array to a scalar indicator
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?
07-19-2009 06:32 AM
07-19-2009 10:48 AM - edited 07-19-2009 10:54 AM
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?