01-31-2012 12:40 AM
Hi,
I use the SequenceFilePostStepFailure callback to catch failing steps. This works great except for random sequences. On retry the next step in the random sequence will be executed and not the same step.
Can somebody help me to fix this?
01-31-2012 11:25 AM
You'll need to use something similar to this on retry in order to change which step will be the next to execute.
RunState.Caller.RunState.NextStepIndex = RunState.Caller.RunState.StepIndex
01-31-2012 12:07 PM
I already increased the stepcounter in the post action only on when the step passed. But it still jumps to the wrong step after a passed step.
01-31-2012 12:30 PM - edited 01-31-2012 12:30 PM
That callback is only being called on a failure so I'm not sure where your passing issue is coming from. You should probably step through the execution and note the value of RunState.NextStepIndex to see where it is being changed. Perhaps you have a Post Action doing something that it shouldn't in your code.
01-31-2012 01:34 PM
Then I think it's a bug in the random step sequence. I need to follow nextstepindex.
01-31-2012 03:07 PM
without known whats generated in your random array it's difficuilt too offer any meaningful help or whether to say if you are suffering from a bug.
01-31-2012 11:53 PM
Ray, I provided my sequence file in the attachments. I don't know if it opens on all systems?
02-01-2012 01:34 AM
Hi,
Thanks I did look that that but couldn't tell what's being gathered in the VI as no VI's available, hence the question.
I did try to make a working version of your sequence file with dummy sequences.
02-01-2012 01:47 AM
Ray, you may always send me this sequence. Tnx!