NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the variable value of a step (ex : Step.TS.Data) with C#?

I try hard but do not managed, I can't get the variable situaded inside a step?
 
I have created my sequence object then my step object (I can get the right name of this one)
but I didn't find in the help the method allowing to get any value of the step variables.
 
Any idea? Thank you
0 Kudos
Message 1 of 3
(2,831 Views)

Hi,

You obtain a reference to your step as an PropertyObject.

Using this PropertyObject reference you can use the PropertObject.GetValString|GetValNumeric|GetValBoolean.

Hope this helps.

Regards

Ray Farmer

Regards
Ray Farmer
Message 2 of 3
(2,821 Views)
thank you so much, I made
 
  stepPropertyObj = step.AsPropertyObject();
 
  id = stepPropertyObj.GetValString("TS.Id", 0);
 
It's worl well, thank you once again!
 
Jambon
0 Kudos
Message 3 of 3
(2,810 Views)