08-28-2014 06:32 AM
Hello,
i have a panel with four arrays and i am using an event-structure.
Now i want that changing the index of array_1 also changes the index of the other 3 arrays to same index.
But there is only a property "value change" and no property "index-change" in the properties of the array.
So i have to read the property "index" and write it to the other array.
But: It seems as if i have to do this in the timeout-section of the event-structure.
Is there any other way to do this?
Thanks for help
Solved! Go to Solution.
08-28-2014 06:44 AM - edited 08-28-2014 06:51 AM
08-28-2014 06:50 AM
You can use the mouse up event on each array to detec the event (of course that will catch not only an index change, but i don't think you care too much) and then use the "index values" property on all array to set.
See attached VI (LV2012), hope this helps
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
08-28-2014 07:30 AM
or you can use a seperate control for setting index values and register event on that control.
08-28-2014 07:48 AM
I also thought about this, but i need to use the scrollbars of my 2D-array.
This works very good with the Mouse-Up event
08-28-2014 08:00 AM
for scrollbars also you can use property node.
When index value is greater than 0 then only show scrollbars.
08-28-2014 09:15 AM
You might want to vote for this idea. 😄
Are these arrays controls or indicators? Are all of the same type?
If they are just indicators, I would eliminate them and replace them with a table (or possibly 2D array). This way they always scroll together automatically. If they are controls and of the same datatype, you could use 2D arrays.
Using 2D data structures instead will also often simplify the diagram. You can always slice out columns as needed on the code side. The UI does not need to care about that.
08-28-2014 09:37 AM
You can also combine the 4 arrays into 1 array of clusters and it'll be synchronized automatically.
/Y
08-28-2014 12:11 PM
The arrays are indicators and all are already 2D-arrays.
I voted for the idea.
08-28-2014 01:09 PM
@OnlyOne wrote:
The arrays are indicators and all are already 2D-arrays..
You can still combine them into a table or larger 2D array that contains all data.