07-20-2009 09:57 PM
Probably missing the obvious here but I can't find a way to loop a whole sequence in TestStand Sequence Editor (I am using 4.1.1). At the moment I can run selected steps e.g. the whole of Main but not spanning more than one of Setup, Main or Cleanup - is there a way to do so? If I select all, run selected steps and loop selected steps are greyed out. I am using a custom process model based on standard sequential model.
07-20-2009 10:27 PM
Hey,
What is your goal with this? Why can't you use the Test UUT's entry point? That will loop on your sequence.
You cannot span interactive execution (run selected steps) accross step groups (Main, Setup, Cleanup).
You could use a GoTo step. Just put it as the last step in your Cleanup group and set the Destination Step as the first step in your Setup group. Then you will be able to go Execut>>Run Sequence.
Hope this helps some,
07-21-2009 07:03 AM
Hi, thanks for reply.
Goal is to have a whole sequence functionality Setup, Main, Cleanup cycle either indefinately (N times would be nice too) - without re-entering serial numbers - basically to prove repeatability without having to initiate executions every iteration.
Originally intention was to cycle Main only but some sequences have been developed so that certain initialisations in setup have to be rerun each pass - otherwise main does not work.
I had already tried the goto first setup idea but it does not appear to terminate cleanly - I am guessing due to the goto in cleanup.
07-21-2009 07:28 AM
what about modifying the Pre UUT sequence in the process model
this is where the sequence waits for the user to enter the serial number
just make sure that you set the "ContinueTesting" variable to true
if you wish to count the number of iterations the "UUTLoopIndex" variable may do this for you.
Colin
07-21-2009 09:52 PM - edited 07-21-2009 09:54 PM
If all you need to do is loop on the MainSequence (without a process model and/or callbacks) you can create an additional sequence in your file (call it what ever...), drop a sequence call step, point it to the MainSequence, then right click on the step and run the "Loop on Selected Steps".
Otherwise Colinr has the best solution that I have used in the past. Edit the content and control in the PreUUT callback to loop continuously as an operator would...
09-15-2009 02:19 AM
Just use the while flow control.
In the while loop parameters have a veriable locals.loopindex and set the condition to locals.loopindex<=desired number of iterations.
While
Code here or seq
locals.loopindex++
end
09-15-2009 11:58 AM - edited 09-15-2009 11:59 AM
glennjammin wrote:Just use the while flow control.
In the while loop parameters have a veriable locals.loopindex and set the condition to locals.loopindex<=desired number of iterations.
While
Code here or seq
locals.loopindex++
end
Using a while loop will not work for CIM1's request. Similar to jigg's point on interactive executions, you can not have a while loop span across step groups (Main, Setup, Cleanup). Plus, I think CIM1 is actually looking for automating the whole process model loop and following Colin's suggest would work best for that.
09-15-2009 01:45 PM
06-26-2012 01:21 PM
I wish there was a more simple way to accomplish this. It is something that is fundamental in many of the other test environments. Thanks for the advice given here, it confirmed my suspicion.
06-26-2012 01:46 PM
pgan,
What are you talking about? Simpler? I have my own suspicions and I'll see if they get confirmed...