09-11-2024 04:29 AM
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
09-11-2024 04:50 AM
Not many people here can open a LV2023 vi. Please re-post saving to a previous version, not later than LV2021.
09-11-2024 05:51 AM
While saving to older version, this warning message is displayed.
09-11-2024 07:05 AM
You may try to ignore and continue. It would be probably difficult to find someone having the same toolkit anyway.
09-11-2024 07:40 AM
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.
09-11-2024 03:59 PM - edited 09-11-2024 04:04 PM
This error is from NI-Scope and it means you are out of hardware memory on the DAQ device itself.
This error means your LabVIEW program is using too much memory
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