LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I automaticlly set the index of an array?

I have arrays that collect a lot of data and display it on the front panel. On some of my programs the index values can go as high as 10,000.  I would like to incorporate the ability to have the index change automatically, so that the most current data is displayed during execution.
 
Is this possible? If so, how do I do it?
 
Do I use a property node?
0 Kudos
Message 1 of 6
(3,018 Views)
Use the Property node for Index Values. The Property nodes for Selection Start [] and Selection Size [] may also be helpful.

Lynn
0 Kudos
Message 2 of 6
(3,014 Views)
 I have tried using those properties, but I can' t get the result of the index changing on the front panel. Are you sure that those work?
I can't find any more help info for those particular properties. The help that is offered is very unclear.
0 Kudos
Message 3 of 6
(3,004 Views)
I think the properties you want are NumRows and IndexVals.  The following two attachments will solve your problem (I think).
Download All
0 Kudos
Message 4 of 6
(2,992 Views)
Index Values works just fine. See the attached picture. If you do something similar and manually set the index value to something other than 2, when the VI is run, the index on the front panel will change.
0 Kudos
Message 5 of 6
(2,988 Views)

Thanks a lot.

You totally solved my problem.

0 Kudos
Message 6 of 6
(2,978 Views)