08-30-2018 01:54 PM
Running Labview 2016
I have a cluster of just boolean values that correspond to points on a coordinate grid. The button labels on the front panel correspond to the button's location on the grid so that there is some awareness of the button's location in space. I did not use a 2D array because I couldn't find a way to make the major and minor components of an array different sizes on the front panel to be distinguished to the operator.
I am looking for a way to extract the button that was changed to true in the cluster (since the buttons are set to latch, this should only be one at a time). From there, I will extract the label of that button to pass into numeric fields denoting the x and y values of the button pressed, which I have the structure set up for in the VI. All I need is the ability to extract the reference of the button that changed to true in the cluster and I think I've got it from there.
Solved! Go to Solution.
08-30-2018 04:44 PM
Just compare the new value with the old value to find the button that is different. Search the array to get the index and find the label.
08-30-2018 04:50 PM
Just to clarify, you can compare a cluster to another cluster directly! What you get is a cluster of Boolean values structured the same way the original clusters were. Each Boolean represents whether a value has changed or not.
08-30-2018 04:53 PM
That is exactly what I needed. Thank you!