From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Index array

Solved!
Go to solution

Hi,

I have an array and I want to point to a certain element in the array using its index. Basically I need to use the labview equivalent of "Array Index" in teststand. If im not wrong, GetNthSubProperty does the same thing? But I am looking for an example to use it. I keep getting errors when I try to use it. Here is my example: 

MyArray : [0..5] 

I am trying to point to index [4] of the array.

 

0 Kudos
Message 1 of 3
(4,896 Views)
Solution
Accepted by topic author A2saSandel

Locals.MyArray[4]  should work.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 3
(4,880 Views)

Thank you so much!

0 Kudos
Message 3 of 3
(4,846 Views)