LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Out of memory error

I am running a large application using TestStand and LabVIEW. Occaisionally I am encountering an Out of Memory error. This error occurs on a test step where I am loading a large file into memory where I analyze it for transitions. I know the problem is happening during the open file portion of the vi. We have more than enough memory, however, I suspect that after running many tests throughout the day (without exiting labview/teststand) eventually the system boggs down. Is there anyway to clear memory? If there was something I could do after each job, I know the performance would be better.
0 Kudos
Message 1 of 2
(2,817 Views)
Hello Lori,

You can force an "Unload all Modules" to occur inside your sequence by using an ActiveX Action step configured as follows:

Reference: RunState.Engine
Automation Server: NI TestStand API x.x (Ver 1.0)
Object Class: Engine (IEngine)
Create Object checkbox: OFF
Call Method or Access Property checkbox: ON
Action: Call Method
Method: UnloadAllModules

Attached is a TestStand 2.0.1 sequence file that demonstrates this, and it works in TestStand 3.x as well.

David Mc.
NI Applications Engineer
0 Kudos
Message 2 of 2
(2,817 Views)