05-03-2024 02:09 AM
Hi,
I am using expressions to customize report file name
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:
because it could be that I need to switch folder during runtime, therefore I set the variables in the Cleanup of the PreUUT
Any idea why it behaves randomly?
(TestStand2019, 64bit)
Regards
Solved! Go to Solution.
05-03-2024 02:26 AM
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!
05-03-2024 06:39 AM
I am running only single socket now (later I will switch to multyple sockets)
05-05-2024 10:45 PM
You should be wrapping your expression in a Evaluate() function call, otherwise you might be relying on TestStand implementation that Evaluates the expression twice.
05-11-2024 07:49 AM
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
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