Steve,
The way it's programmed, your code's behavior is to output a "true" only if the fourth element in your array is true or the fourth element of your cluster is true, which is presumably not what you had in mind. The reasons are:
- You are wiring arrays of two different length into your For Loop and using auto-indexing. As a result, the loop iterates to the end of the shorter array and then stops, so the last few elements in the longer array (the one from the cluster) are ignored.
- You are not using auto-indexing on the boolean output tunnel of the For Loop, which means that LabVIEW simply outputs the value sent to that tunnel during the fourth and last loop iteration. That logical value is ((fourth array element) OR (fourth cluster element)).
If you're trying to make the VI stop anytime any of the buttons in either the array or the cluster is pressed, then you can:
1. Concatenate your two arrays inside the For Loop using the Build Array function (Array palette)
2. Use the output of the Or Array Elements function (Boolean palette) to determine if the loop stops or not
Hope that helps,
John