NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

while loop & Page File Usage

Hello everyone,

 

I just put a while loop in an empty sequence and gave the loop condition to be True - meaning indefinite loop. I am not doing any anything inside this while loop. When I run this sequence, CPU usage shoots up, as anyone should expect. But why is the Page File usage increasing (You can see it in the Task Manager)? Where exactly is this memory being used in TS? This is happening for a for loop too.

 

If you put a delay inside this while loop, the Page File usage doesn't shoot up as it did above but still memory is consumed over time.

 

Thanks,

Saranya

0 Kudos
Message 1 of 2
(2,946 Views)

Hi,

 

The For / End steps by default have the Record option enabled, disable this and you will see a decrease in memory usage.

 

Next thing is to switch off the tracing and your memory usage should stop.

 

So to answer your question, the bulk of the memory increase is the storing of the step results. That's why if you are going to run a sequence file over a long time its wise to use the On-The-Fly reporting.

 

The seems to be a small memory usage when tracing is enabled.

 

Hope this helps

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 2
(2,940 Views)