NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Expressions to Customize Report File sometimes does not work

Solved!
Go to solution

Hi,

I am using expressions to customize report file name

    Raybie_1-1714719660166.png

 

but it behaves in a random way. Sometime works as expected sometime a reportfile name is the same like the expression, it seems it is not evaluated:

   Raybie_0-1714719628333.png

 

because it could be that I need to switch folder during runtime, therefore I set the variables in the Cleanup of the PreUUT

   Raybie_2-1714719861851.png


Any idea why it behaves randomly?
(TestStand2019, 64bit)

Regards

 

0 Kudos
Message 1 of 5
(117 Views)

Is it possible that the randomness you are describing lies in race conditions due to using the Parallel Model...

 

Please check if you see that effect also when the model is configured for a single socket!

 

0 Kudos
Message 2 of 5
(113 Views)

I am running only single socket now (later I will switch to multyple sockets)

0 Kudos
Message 3 of 5
(90 Views)

You should be wrapping your expression in a Evaluate() function call, otherwise you might be relying on TestStand implementation that Evaluates the expression twice.

 

Scott Richardson
0 Kudos
Message 4 of 5
(55 Views)
Solution
Accepted by topic author Raybie

After some investigation I was able to find the step was causing the issue.
It is NI_ReportGenerator.seq -> "Determine UUT Report File Path Expression" step

Raybie_1-1715430799117.png

 

I tried to change the list of the macros during runtime compare to what it is set initially in ReportOptions subsequence.
It seems it is not allowed.

Whatever list of macros we set in the in ReportOptions we cannot change it later during runtime.
Other values in the expression can be modified

0 Kudos
Message 5 of 5
(26 Views)