NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the current step info while the sequence is paused/On Breakpoint,etc?

Solved!
Go to solution

Hi, all,

I'm using LV2016 64 bit and TS2016 64 bit. I'd like to print some useful status information to user if he pauses or resumes any step at any time. I failed to use UI message to get the step's detailed info such as step name.

The relate event codes are:

UIMsg_ResumeFromBreak:17

UIMsg_BreakOnBreakpoint:2

UIMsg_BreakOnUserRequest:1

 

Could you tell me what I missed?Thanks.

 

0 Kudos
Message 1 of 4
(2,906 Views)

The reason for the behavior you are seeing is that breaking happens BETWEEN steps, not AT steps. That means that a breakpoint has no "step" object available.

Depending on the purpose, you could for instance check "NextStepIndex" and the get the step which should execute next from the sequence.

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 4
(2,880 Views)

Hi, Norbert,

I'm understanding your comment. Could you give me a simple sequence for my reference?

 

0 Kudos
Message 3 of 4
(2,841 Views)
Solution
Accepted by topic author labc

Example: RunState.Sequence.Main[RunState.NextStepIndex].Name

 

Important thing is to keep track of the correct step group (in the example above, this is "Main").

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 4
(2,838 Views)