05-19-2020 07:38 AM
inside the for loop, there is a step, i can choose pass or fail, if pass, go out of the for loop, otherwise will loop.
But not sure why, as long as i have ever choose fail, the result of the whole sequence is fail
Thanks
Solved! Go to Solution.
05-19-2020 07:50 AM
Let's say I am looping through a bunch of digital output lines from a UUT. In a FOR loop, I set the value the UUT should output and then read the output. By your logic, as long as the last output worked correctly, it is an overall pass. That is not desired. Each output that is tested contributes to the overall pass/fail of the sequence.
05-19-2020 07:56 AM
Thanks for your quick reply.
You mean the output of each loop, will contribute to the overall pass fail ?
I want the output of last loop, to decise the overall pass fail, how to make it ?
Thanks
05-19-2020 09:43 AM - edited 05-19-2020 09:46 AM
You can use SequenceFilePostResultListEntry engine callback and set Parameters.DiscardResult=True if e.g. (RunState.Caller.Step.Name == "Test") && (Parameters.Result.Status == "Failed")
Or use for loop only for measurements and compare with the result after looping.
05-19-2020 10:36 AM
Thanks, it is a pity, i use teststand 2013.
05-20-2020 01:39 AM
I saved it in 2013 but I don't have this version so I can't promise it will work 😕
05-30-2020 12:46 AM
Hi Sir
I have run your file, still the same, failed, maybe need other solution, but still very appreciate for your quick response