NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Stopping TestStand Sequence With PreUUT Loop Disabled

Hi All,

I have edited my sequence so I do not use the default UUT Information dialog to enter serial number information etc. I handle all of that on my own to get a specific file name and perform other tasks within my sequence. I have the PreUUT callback added to my sequence so I do not get the dialog at the beginning my tests. It is all working great except for one thing, ending the sequence. To make a long story short I have a stop button as one of my fixture controls. I want it to act the same as when the Stop button is pressed on the default UUT Information dialog. I have tried terminating the execution with a Call Method and it works except then the report winds up saying "Terminated" which I do not want. Is there any way to stop a sequence gracefully as with the PreUUT callback disabled?

 

Thanks in advance for any insight into this.

 

Troy

0 Kudos
Message 1 of 4
(4,659 Views)

Hi,

 

Go back to the default TestStand Sequential Model and study how the default PreUUT stops everything. It sets the variable Locals.ContinueTesting in the TestUUTs sequence. You can access this variable from anywhere in the execution (while it is running) with the lookup string RunState.Root.Locals.ContinueTesting. You should be able to figure out how to set this when your stop button is invoked.

 

cc

Message 2 of 4
(4,654 Views)

You may stop by accessing the parameters.continuetesting as false. But the execution shall complete all the mainSequence Tests, PostUUT and then stops at PreUUT. This is teh elegant way to to complete teh the current execution and stop without going further UUTs. 

 

If you want to stop in between the execution, the only option is termination. 

0 Kudos
Message 3 of 4
(4,619 Views)

Thank you both for your comments. I am actually using both suggestions at this point and it is working. I got around it but the only frustrating part was some things I was trying to do in the PreUUT callback did not work. It did not like any variables passed in or out of that sequence that were not already there. I am sure there is a solution for that but I had to get some units tested so I got it working another way using functional globals in Labview to get the values passed between the sequences. Thanks again for your help.

0 Kudos
Message 4 of 4
(4,615 Views)