NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling Test Sequence Flow from inside the ProcessModelPostStepFailure Engine Callback

Hi Sacha

Thanks for the zip, unfortunately we are running TS 3.1 here, cant open TS 3.5 Files

Regards

Steve

There are 10 types of people in the world that understand binary, those that do and those that don't.
0 Kudos
Message 11 of 20
(1,972 Views)

oops - forgot - and Ray's post reminded me - that used to be the case about jumping backwards, but you can change the step group as in the attached new example.

Sorry - I'd better look at 3.5 a bit more closely in the future!!!!

Sacha Emery
National Instruments (UK)

// it takes almost no time to rate an answer Smiley Wink
0 Kudos
Message 12 of 20
(1,974 Views)

Hi Sacha

Still TS 3.5

Steve

There are 10 types of people in the world that understand binary, those that do and those that don't.
0 Kudos
Message 13 of 20
(1,970 Views)

Timing is everything - here it is for 3.1

Sacha Emery
National Instruments (UK)

// it takes almost no time to rate an answer Smiley Wink
Message 14 of 20
(1,974 Views)
Just realised - you could more generic by referring to Parameters.Step rather than the Runstate.CallingStep
 
Good luck
 
Sacha Emery
National Instruments (UK)
// it takes almost no time to rate an answer Smiley Wink
0 Kudos
Message 15 of 20
(1,966 Views)

Hi,

Sacha hopeful has answered any outstand questions.

But just to add, you can check the SequenceName in the Callback by using NameOf(RunState.Caller.RunState.Sequence) and this will return the name of the Sequence as a string eg "MainSequence".

Hope this helps.

Regards

Ray Farmer

Regards
Ray Farmer
Message 16 of 20
(1,967 Views)

Thanks guys

Everything is good in the land TestStand 3.1

Thanks for all your efforts

Steve

There are 10 types of people in the world that understand binary, those that do and those that don't.
0 Kudos
Message 17 of 20
(1,962 Views)
Can anyone help me with this??
 
I need to do the exact thing, retry failed tests using the ProcessModelPostStepFailure Callback, but it's not working.
 
The strange thing, it runs fine if I run it from the TestStand environment, but when launch using my OI, it will not retry the step. It's like the RunState.Caller...StepIndex is not working properly. Doesn't make sense to me. One note, my sequence(s) are built dynamically, but they run just like a normal sequence.
 
Thanks a lot.
0 Kudos
Message 18 of 20
(1,635 Views)
Actual, it doesn't work from Teststand environment either. I think I've been staring at it all too long.
 
Again, any help is appreciated.
0 Kudos
Message 19 of 20
(1,632 Views)

Found the problem!

If "Step Failure Causes Sequence Failure" is checked, the "Retry" does not work.

0 Kudos
Message 20 of 20
(1,629 Views)