Quantcast
Channel: NI TestStand topics
Viewing all articles
Browse latest Browse all 6524

Help needed dynamically writing to local variables

$
0
0

Hi folks

 

I am using a numeric limit test

The test is within a loop, and the current iteration is stored in a local variable

I am entering an expression in the Post-Expression field, and need to achieve the following:

 

If step fails, variable[iteration.local].local = Fail

 

So for example:

 

If step fails, variable1.local = Fail

 

This allows me to identify in which iteration the failure occurred, so I can record the result against the correct DUT in the batch that is looping.

 

Can someone tell me the required syntax to achieve the statement?

 

Thanks!


Viewing all articles
Browse latest Browse all 6524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>