I came across in a very difficult issue for me to solve. I have a very long sequence with for loops and a lot of Results to record and add to the report. Now for 32-bit TestStand the maximum amount of usable RAM is 2 GB. So, during the execution of the sequence the array of containers ResultList, which is all saved in RAM, becomes so big to fill the available memory and cause the stop of TestStand.
Since ResultList is flushed only after the creation of the report, so at the end of the sequence, the two solution that I have formulated are:
The problems are that in case 1 I don’t find where and how manage the automatic serial number change and in case how to reduce it to a portion of the sequence, while for case 2 I don’t know if it is possible and how to perform the solution.
My last question is about the possibility to manage this issue only with TestStand or in case to use also Labview.
I hope to have been clear enough about my problem and I hope to find a solution with the help of all you!
You may try to use On-fhe-Fly reporting and use "Discard Results or Disable Results when not Required by Model" option.
I have never used it, but it looks promising.
thank you for the answer but I need to underline two aspect that maybe were not clear in my post:
“In addition to generating the report concurrently with execution, on-the-fly reporting periodically persists the current report to a temporary file based on the persistence interval the process model sequences specify. TestStand deletes the temporary file and saves the final report to a file at the end of a UUT loop execution.”
This suggests me that the ResultList array will be flushed only at the end of the TestUUT execution when the report is generated. So if I have long for loop inside my main sequence, the memory problems can arise anyway because the temporary files can increase their dimensions.
A curious thing is the “persistence interval the process model sequences specify” that I don’t know where to find it or its importance and influences in the report creation and ResultList management.
Please check this option :
Configure-->Model options-->Discard results....
This should flush out used data.
Hope this helps.