NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading Configure->Station Options->Immediately Goto Cleanup on Sequence Failure Checkbox Setting

Solved!
Go to solution

In TestStand 3.5, how do you programatically read the status of the Configure->Station Options->Immediately Goto Cleanup on Sequence Failure checkbox?  How would you programatically set this value?

0 Kudos
Message 1 of 5
(3,689 Views)
Solution
Accepted by topic author rw1dale

Engine.StationOptions.AlwaysGotoCleanupOnFailure

Message 2 of 5
(3,678 Views)

Thanks for the reply, but I tried your suggestion and it cannot resolve the reference.  When I typed in Engine. it was immediately replaced by RunState.Engine. so I used RunState.Engine.StationOptions.AlwaysGotoCleanupOn Failure.  When the step was executed, there was an error stating "Unknown variable or property name RunState.Engine.StationOptions".  When I go to the context tab, I see the Engine object, but I cannot expand to see what elements it contains.  Any further suggestions?   How does one find out what "Engine" contains anyway?

0 Kudos
Message 3 of 5
(3,659 Views)

Thanks for the suggestion.  After reading up a bit on the TestStand object model, I was able to utilize the ActiveX/COM adapter to get the property information I needed.

0 Kudos
Message 4 of 5
(3,655 Views)

Sorry, I should have said you need to use the ActiveX adapter in 3.5. In 4.0 and beyond, you can also use an expression to access the TestStand API.

0 Kudos
Message 5 of 5
(3,652 Views)