NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing Step's Limits Settings In .NET

I'm able to parse the following step's Limits properties:

- High:  [Step].AsPropertyObject.GetValNumber("Limits.Low", 0).ToString()

- Low:   [Step].AsPropertyObject.GetValNumber("Limits.Low", 0).ToString()

- Comparision Type:  [Step].AsPropertyObject().GetValString("Comp", 0)

 

Does anyone know what property to parse for the Units (ie degrees, rpm, mL, mm, etc..)?

 

TIA for your help.

0 Kudos
Message 1 of 3
(3,166 Views)

The units are under the results.units

 

If you are using TS 2010 or above you can click on the step -(properties tab)- go to property browser and looks for the step.variables to know where they are.

0 Kudos
Message 2 of 3
(3,158 Views)

I found it: [Step].AsPropertyObject().GetValString("Result.Units", 0)

0 Kudos
Message 3 of 3
(3,146 Views)