LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Not enough memory to complete this operation and hex 0x2: Memory is full. Error in 2023Q3 version.

Hello LabVIEW Community,

    I need your suggestions on the program which is built for continuous data acquisition from acoustic sensors. In my program, I am getting two error, one after another. First error appears after some time of running the program, "Not enough memory to complete this operation", after closing this popup another error appears named "Hex 0x2: Memory is full". Please note that this program is intended to run for days for continuous data acquisition. This VI program and screenshots of error are attached for your reference.

 

Hardware Specifications:

NI's PXIe-1092, Windows 10 (32 GB RAM), Pre-installed LabVIEW 2023Q3

8 channel, PXIe-5105 Oscilloscope

 

Your suggestions for rectifying the error are highly appreciated.

 

Thanks

Vimal Kumar

 

0 Kudos
Message 1 of 6
(395 Views)

Not many people here can open a LV2023 vi. Please re-post saving to a previous version, not later than LV2021.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 6
(374 Views)

While saving to older version, this warning message is displayed.

Error message while saving to older version.png

 

0 Kudos
Message 3 of 6
(336 Views)

You may try to ignore and continue. It would be probably difficult to find someone having the same toolkit anyway.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 4 of 6
(303 Views)

I'm not seeing any immediate memory red flags.  But some code smells:

1. Move the scope initialization/configuration to before the loop.  This is everything up until the initialization of the acquisition.

 

2. The use of Express VIs and the Dynamic Data Type scares me.  There is way too much hidden in those and they are rarely performant.

 

2a. The Trigger and Gate probably should not be needed.  Let the oscilloscope do that for you.

 

2b. The Formula Express VIs can just be replaced with an Increment (Add 1).

 

2c. The Select Signals can be replaced with an Index Array to separate the two channel's waveforms.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 5 of 6
(291 Views)

This error is from NI-Scope and it means you are out of hardware memory on the DAQ device itself.

Not enough memory error.png

 

This error means your LabVIEW program is using too much memory

Error-Hex 0x2 Memory is full.png

 

Both of these errors are related to the sample rate and acquisition time (record length) of your DAQ.

 

Try a lower sampling rate or the same sample rate for less acquisition time. 

 

This section of NI-Scope help might help too: Acquiring Data Continuously

========================
=== Engineer Ambiguously ===
========================
Message 6 of 6
(258 Views)