NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot find ResultList

Solved!
Go to solution

In which loop iteration does this error occur? 

0 Kudos
Message 11 of 15
(723 Views)

it seems like its the last iteration...I never see as I loop through the previous results until the last one. In my case, the array size is 42 and it errors on the final (43rd) result.

0 Kudos
Message 12 of 15
(711 Views)
Solution
Accepted by topic author thosquanta

That’s because your main sequence will create a result Container when starting the sequence call step. No43 which is giving the error is in fact the result for your cleanup sequence 🙃

 

In this case, you can ignore the last element. Yet you should document this in your code: be kind to your future self (as Fab would say)

Message 13 of 15
(698 Views)

Allllllrighty, I'd say I am fully functional at this point.

 

I had some issues with using the RemoveElements() function but, since I just need to nix the last element, I just set the array size to one less than what it was and presto spaghetti-o, we're good to go.

 

Thanks so much for your insight, Oli_Wachno!!

 

I figured I could just brute force the final array element out of there, but wanted to understand why it was there first.

 

I have, per Fab, made some notes in my code to remind future me.

 

thanks again!

Message 14 of 15
(670 Views)

Teststand----Configure----Model Options---Discard Results.... Disable this

0 Kudos
Message 15 of 15
(233 Views)