NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Get the Nth variable in a container

Hi 519...

 

Is it possible to provide a screenshot or TS-example of your array ?

I do not know if it is already possible to access the TS-api in statement steps in TS3.5

- Ray! would you help please ?

 

Regards

Juergen

 

 

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 11 of 13
(1,092 Views)

Yes, what I mentioned above is a way to do that. Take the name you got from GetNthSupropertyName and use it as the lookup string for GetPropertyObject. That will give you the PropertyObject for the array. You can then use the GetVal*ByOffset methods to get the individual values in the array or you can use GetValVariant() to get the whole array. You can skip the GetPropertyObject call if you like and use the suproperty name directly as the lookup strings for GetVal*ByOffset() or GetValVariant() instead if you prefer.

 

Hope this helps,

-Doug

0 Kudos
Message 12 of 13
(1,087 Views)

Been away for a fews days, but it looks like Doug is on the ball here.

 

Will help if it's still needed

 

 

Regards
Ray Farmer
0 Kudos
Message 13 of 13
(1,074 Views)