PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

Insufficient memory on PXI error message

I am performing data acquisition, signal generation and data storage on the PXI controller system application. The application is launched using VI server from the host PC. The controller 8176 has 256MB RAM. I am allocating 50Mb memory to initialize an array and using it to hold my data during a record session(max. time = 10mins). The data is then transferred to a file on the hard disk.
When I stop my application on the host PC it also closes the PXI application and all the references to it. Thus the PXI application is unloaded from the memory.
When I restart my host application and thereby launch the PXI application, then on the 2nd or 3rd attempt I get "Insufficent memory to complete the execution" error .
Under RT environment
when I look at the RT Engine info under the 'Operate' menu item, I see that there is about 100Mb free memory. Then why do I get the insufficent memory error? How do I free the PXI RAM memory after completing one Recording session?
0 Kudos
Message 1 of 2
(3,182 Views)
My first thought would be that you might be stopping your host PC application (and thereby closing references to the RT VI) before the RT VI has completed writing the file. The RT OS is not optimized for file I/O, and if you are not explicitly writing the file in 512-byte chunks, it may be taking a very long time.

Check out this example:
Fast File Writing in LabVIEW Real-Time
Note: Delete the stray "Write to Spreadsheet File.vi" in the block diagram.

If this ends up not helping and no one else can provide any other suggestions, you might try contacting the LabVIEW RT support group at National Instruments for further assistance.
0 Kudos
Message 2 of 2
(3,182 Views)