LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to use the index of an array (indicator) in block diagram programmatically.

Can I use the index of the array or must I build a pseudo index control for the array?
0 Kudos
Message 1 of 4
(4,895 Views)
If you want to programmatically set the index of the element displayed in the upper left corner of the array indicator (=the number(s) in the "index display" of the array indicator), create a property node for the array and write to "property: Index Values".

(If this is not what you want, please use a few more sentences to explain your problem).
Message 2 of 4
(4,895 Views)
u need set a local variable to the indicator
0 Kudos
Message 3 of 4
(4,895 Views)
You can create a property node (right click on the terminal or the index display on the front panel and select 'Create>>Property Node').

A property node will appear on the block diagram. Right click on the protion of the node that now says, 'Visible' and navigate the menu to 'Properties>>Index Values'. As the node now is configured, it will read the current index value of the array. It will actually output an array, so if you have a multi dimention array, all of the indexes will be shown. So if you have a 1D array, just use 'Index Array' to get the first element.

If you want to change what the index is, right click on the property node again select 'Change to Write'. You now can write, again, it must be an array, to the node to set what index you w
ant displayed for your array.

Ed


Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
Message 4 of 4
(4,895 Views)