NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Set breakpoint on next step from TestStand statement in non-interactive execution?

Sorry if this is a stupid question:

Is there a way for a TestStand 2.0 statement in a non-interactive execution
to set a breakpoint on the next step? I would like to test a condition in
the statement's precondition and if True force sequence execution to
breakpoint on the next step.

I know how to set a breakpoint on a step from the operator interface (using
Step.BreakOnStep or Step.BreakOnStepEx), but can't seem to do this from
TestStand script itself.

Alternatively, is there a way for a step to set its own breakpoint if a
precondition is True?

---
Joe
0 Kudos
Message 1 of 3
(3,298 Views)
Hi Joe,

There is a way to set a breakpoint on the next step, but not using a "Statement" step. The solution in the attached Breakpoints.seq sequence file is using an "Action" step with ActiveX adapter, and creates the Step Oject from RunState.NextStep sub-property, then calls BreakOnStep method.

Alternatively, you might set the breakpoint on the same step, but there is a problem, as you are not able to use any step. The workaround to this is to create your own "Custom" steps derived out of NI Step Types and to define a presubstep with ActiveX Adapter. Then, the same mechanism can be used to set the breakpoint on the same step.

Hope this Helps!
Regards,
Silvius
Silvius Iancu
0 Kudos
Message 2 of 3
(3,298 Views)
Silvius,

I didn't think to use an Action step and call the ActiveX API to accomplish
this, but that will work just fine. I can set a precondition on the Action
step as easily as a Statement step.

Thanks!

---
Joe
0 Kudos
Message 3 of 3
(3,298 Views)