NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to obtain a list (string) of all elements within a Global Variable

Is it possible to obtain a list (string) of all elements within a Global Variable?
 
I have a Global Variable with many (~100) elements.  I was wondering if it is possible to list all elements and place them into a string array..
 
to avoid lots of Copy / Paste..  or worse.. typing.
 
Thanks,
 
JLV
Message 1 of 3
(2,664 Views)

JLV,

Do you mean just the variable name and their corresponding values or are looking at all the properties?

I would say yes, the documentation tools does something similar. There is also example of obtaining an array of step name, you could use this example on the NI website. The difference would be the point of reference, instead of using the Step you would use the Variable as the PropertyObject reference.

Regards

Ray Farmer

Regards
Ray Farmer
Message 2 of 3
(2,662 Views)

Thanks Ray.

I meant to post this in the LV forum..  I think it was way too early the morning.. 😉

Sorry & thanks for the reply. 

RayR

Message 3 of 3
(2,654 Views)