NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TS LV step , get parameter value( cluster) with API

Hi 

 

In LV using TS API, how to get the value from a container.

In this example, we want to get Device Name value  ("device-")

 

Polycera_0-1689064755476.png

 

how we can have acces of all the cluster value ?

 

Stuck here !

 

Polycera_1-1689064941170.png

 

Thank's for your help

 

 

0 Kudos
Message 1 of 4
(653 Views)

Hi,

 

what is the result of your LabVIEW code? Errors? Wrong values?

0 Kudos
Message 2 of 4
(612 Views)

no error ...

 

I have only in the ValueExp  a string "Cluster".

 

I find the way to acces of cluster structure to get the value of the "Deviev Name filed"

 

Olivier

 

 

0 Kudos
Message 3 of 4
(603 Views)

To access the actual value stored in (a component) of a cluster,  you should try to access it via Step.TS..SData.ViCall.Params[‘ParameterName”]. property. IMHO, when using the LabVIEWParameters property, you are accessing more like the definition of the adapter / the interface, not the concrete call 

 

in order to be able to see the TS object in the property browser, go to StationOptions->Preferences->show hidden properties

0 Kudos
Message 4 of 4
(588 Views)