05-13-2011 03:21 PM
HI,
This is what I have should I be converting the output of the logic gates? The error says that I need that the sink is a Bool but the source is a 1D array of Bools?
05-13-2011 03:25 PM
Right-click the comparison and change the comparison mode. If you want a single boolean, select "compare aggregates".
(You are comparing the arrays element by element at the moment.)
05-13-2011 03:29 PM
If I do that this happens,
05-13-2011 03:39 PM
Don't do it on the first ones.
05-13-2011 03:50 PM
Sorry I dont follow you.
05-13-2011 03:56 PM
For the four leftmost comparisons (the ones comparing with scalar diagram constants), leave the setting at "compare elements" instead of "compare aggregates.
Please look into in range and coerce for simpler logic.
05-13-2011 04:06 PM
I'm lost. The only blocks that have the comparison option are the four blocks on the left of the logic gates. The gates dont have that option.
05-13-2011 04:16 PM
OK have sorted it,
Seriously though, it no wonder embedded system guys stay well away from LabVIEW when something this simple is so complicated.
Thanks for your help.
Nic
05-13-2011 04:33 PM - edited 05-13-2011 04:34 PM
Ah, sorry. Just pipe it through a AND array elements or OR array elements, depending on what you want. 🙂
(Do you want it to be true if all elements are true or if at least one element is true?)