NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Looping Multiple Numeric Limit Test SequenceFilePostStepFailure

Hi

 

I am using a custom loop on Multiple Numeric Limit Test. The SequenceFilePostStepFailure callback is called each time the loop fails and called again when the step fails.

I want to do something (not relevant for this question) when it is looping and something else when the step fails. How do I know the difference? Is there any flag to look for?

I have tried looking at several variables under RunState but haven’t found the right one. Is there one?

 

Thanks in Advance
Kim
0 Kudos
Message 1 of 3
(3,132 Views)

Kim,

 

Try Runstate.Caller.Step.Looptype you can compare this to NoLooping.  If NoLooping then the step doesn't loop.  You can also use Runstate.Caller.Step to get a Step object and then just use the API calls to manipulate it.  You can read about it in the TS help.  To get the loopindex try: Runstate.Caller.Loopindex.

 

Both should be ran in the SequenceFilePostStepFailure Callback.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 3
(3,104 Views)

In the SequenceFilePostStepFailureCallback you could check:

 

Parameters.Step.AsStep.CurrentLoopResult == Nothing   // requires loop results to not be disabled or it will always be Nothing

 

or

 

Runstate.Caller.RunState.LoopIndex == numberOfLoopIterations

Message 3 of 3
(3,101 Views)