NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Retry at a previous sequence call

Hi,
 
I have a sequence file containing several sequence calls. If some of these sequence calls fails, I would like to restart from a previous sequence call, but only for a fixed number of retries. How can that be done?
 
I have tried "Goto desination" "On Fail" as a post action. Although this actually restarts at the desired step, it lacks the ability to set the number of retries and also the main sequence will always fail if a sequence call failed once.
 
Regards
0 Kudos
Message 1 of 2
(3,298 Views)

Hello,

set the appropriate loop options in the properties (loop options tab) of the subsequence call. This way you can configure the subsequence call to run repeatedly for a maximum number of iterations until it passes. The subsequence call is configured as 'Step failure causes sequence failure'. Thus if any of the steps fails, the subsequence is called again, until all steps pass in this subsequence or the maximum count is reached.

Attached you find two sequence files, a caller and a subsequence. The subsequence contains a numeric limit test that always fails, in order to demonstrate the behaviour of the configuration.

Hope this helps,

Regards,

C.L. - National Instruments Applications Engineering 

Download All
0 Kudos
Message 2 of 2
(3,281 Views)