NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

C# API - Modify values of RunState

Hello to everyone,

 

Using: TestStand 2010 SP1 and Visual C# 2008

 

I want to modify the RunMode ("Normal", "Skip",...) of different steps of my main sequence and also some steps of some subsequences.

 

Some routes of steps can be for example: "RunState.SequenceFile.Data.Seq[3].Main[5].TS.Mode"

 

I have been looking at MyContext.AsPropertyObject().SetPropertyObject() but I don't get it...

 

How do you modify values of RunState from C#?

Much thanks for your time and dedication!
0 Kudos
Message 1 of 2
(2,710 Views)

You should use the higher-level API instead since it doesn't rely on hidden properties that might change someday:

 

MyContext.SequenceFile.GetSequence(3).GetStep(5, StepGroup_Main).SetRunModeEx(); <--- See documentation for SetRunModeEx for more details.

 

-Doug

0 Kudos
Message 2 of 2
(2,705 Views)