NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

invalid step index

Ok, i just found two threads for the problem with the error of invalid step index in Teststand but i couldn't solve the problem.
 
I've created a main sequence with a lopp that is executed for several times. In this loop there is a sequence call that creates a number of steps. For each iteration of the loop the number of these step is different. The first run of the loop works fine but the next run break with this error: "Invalid step index '12' for 'Main' phase in sequence 'MainSequence'. Error Code: -17301, Index out of range."
The steps in the sequence are correctly set and configured.
 
I've read in this forum that it is recommended to create such a sequence with varialbe steps as a subsequence, and i did so! So please tell me what's wrong with this sequence? 
0 Kudos
Message 1 of 4
(3,339 Views)

Hi,

Can you post a sample sequence file showing your problem.

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 4
(3,330 Views)
Ok this is the sequence. You can see the loop containing the sequance call Test Case. The sequence TestCase contains the sequence call WU Simulation.  And in this sequence you can see four sequence calls for WU_FL,WU_FR,WU_RR and WU_RL.
The step number in these four sequences is different in each loop iteration. The steps are created by the VI in Setup for the Test Case sequence.
 
The VI steps in cleanup of Test Case delete the created steps so that the four sequences are ready for the next iteration of the loop.
 
The error described above occurs when one of the four subsequences in WUSimulation  is called. The sequences contain definitely the correct steps for the current loop iteration, only Teststand stops the sequence.
 
Regards
0 Kudos
Message 3 of 4
(3,324 Views)

I think i could solve the problem.  The sequence runs several times fine with a different number of steps in the subsequence.

I just reset the checkbox "Optimize Non-reentrant call to this sequence" in sequence properties. I did so for all sequences with a changing number of steps.

 

Regards

0 Kudos
Message 4 of 4
(3,285 Views)