NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I programmically change the Step Type parameters for Flow Control Types using .NET and the TestStand API.

Solved!
Go to solution

Specifically, the Step.InitializationExpr, Step.ConditionExpr and Step.IncrementExpr in the NI_Flow_For (Step). I can't find any way to get to these properties.  I intend on applying this method to other built in and NI Step types.

0 Kudos
Message 1 of 4
(3,244 Views)

Step.AsPropertyObject.SetValString("InitializationExpr",0,"MyValue")

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 4
(3,241 Views)
Solution
Accepted by topic author Mikewaldon

Oops you said "get":

 

MyVar = Step.AsPropertyObject.GetValString("InitializationExpr",0)

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 3 of 4
(3,236 Views)

Thanks for the solution.

 

0 Kudos
Message 4 of 4
(3,217 Views)