12-20-2024 04:42 AM
Hi
In TestStand , under properties, you can set Looping parameters. You can choose between None, Fixed number of loops, Pass/Fail count and Custom.
My need is to loop with a time interval and I have made with the Custom choice and added this ", RunState.Execution.WaitForEndEx(RunState.LoopNumPassed==0?1000:0)" to the "Loop Increment Expresion".
In Post-Expressions I got this:
Step.Result.String = Find(Step.Result.String, Step.Limits.String) < 0 ? Step.Result.String : Step.Limits.String
I use this at lot because many of our product got a serial port that we are sniffing under startup. We are looking for strings that meet the limit settings.
I would like at to have a setup box like the ones for "Fixed number of loops" and "Pass/Fail count", where I can setup the time interval too.
Is i possible to add such a loop type in TestStand so it become a type you can chose in that menu?
Thanks in advance
Bjarne
12-20-2024 02:36 PM
Why not use a wait step inside your loop…. This would minimise complexity a lot