NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

UI message not send

Solved!
Go to solution

Hello 

I use Teststand 2019 with the batch model.

 

I have a small sequence file created in Teststand 2019 (attached to this question). 

When all 3 teststeps in the Pmax sequence are passed, the UI message are send to my user interface and everything works fine.

When one step fails (for instance the current step fails), then the UI message for current and power are not send even though the step status is Done.

 

Does anyone know how to solve this problem.

 

0 Kudos
Message 1 of 4
(923 Views)

If you go to Configure>>Station Options and look at the Execution tab.  What is the setting for Immediately Goto Cleanup on Sequence Failure.  If this is checked then it makes sense the behavior you are seeing.  This is because your sequence is jumping to the Cleanup step group (which is why you also have the Batch exit in there).

 

Another thing I noticed.  Instead of using RunState.Root.Parameters.TestSocket.Index to get the socket index you should use: RunState.TestSockets.MyIndex.  You are never guaranteed that the root will contain that variable.  Especially if you execute with a sequential model.

 

Hope this helps,

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

Hello 

 

Thank you for your reply

 

I have check my station options and "Immediately Got Cleanup on sequence Failure" is switched off as you can see in the attachment.

In the Capture.png you can see the behavior. The steps after current are executed even though the Current step fails. So, the seq does not jump to cleanup.

 

What is the best way to debug this problem ?

 

 

 

I have changed RunState.Root.Parameters.TestSocket.Index to RunState.TestSockets.MyIndex. Thanks for the tip.

Download All
0 Kudos
Message 3 of 4
(891 Views)

Hello

 

I found the problem.

I ran this sequence on the pc with the option Execuut -> Break on step failure switched on. 

 

Thanks for your assistance and tip

0 Kudos
Message 4 of 4
(887 Views)