11-05-2021 04:17 AM
Hello,
i have following system specs:
Windows = 10, 64-bit
Ram = 16GB
LabVIEW = 2020
I need to store the samples using write to measurement file but it gives error "Not Enough Memory".
The data that i need to store has Sampling Rate = 10MSps
And Number of Samples = 1MSps
With above mentioned data-rate; can i store samples for 1minute?
Till now i can only store data for 5Sec. If Data exceeds 5Sec it gives error.
What will be the possible reason?
How can i resolve this problem?
If anyone can help....
Thank You
11-05-2021 06:56 AM
Data duplication and/or unlimited arrays built.
Sample e.g. 0.1s, send to save to file in another loop through queue. Don't build up a larger array.
11-05-2021 07:34 AM
@sundas wrote:
What will be the possible reason?
The short answer is that you've coded it wrong. There are lots of ways that you could have coded it wrong, most of which would be obvious to an experienced LabVIEW programmer - but only if they can see the code. Since you didn't attach the code it will be nearly impossible to give you any productive help.
11-05-2021 09:09 AM
I guess the problem is that you wait for 1 minute to get all the samples and log it in a single go. This is highly inefficient because you need to allocate large buffers on the instrument driver side and also File I/O.
10MS/s for 1 minute is 600M sample that is ginormous as a single chunk and you have not mentioned the number of channels, if it were 10 channels, then you've 6G samples, each sample takes up 4bytes, you've 24GB of data you're dealing with. You need to optimize your code a lot to get it to work smoothly.
11-05-2021 11:40 AM - edited 11-05-2021 11:59 AM
@sundas wrote:i have following system specs:
Windows = 10, 64-bit
Ram = 16GB
LabVIEW = 2020
Is this LabVIEW 32bit or LabVIEW 64bit?
@sundas wrote:
I need to store the samples using write to measurement file but it gives error "Not Enough Memory".
Again, not enough information, but your wording ("need to") and the description of express VIs (Write to measurement file) without any additional information on the configuration (format, options, etc. etc.) is not helpful.
If speed and size matters, only a binary file using lowlevel file IO is reasonable.
Please show us your code. (VI, not pictures!). Is the acquisition also using baby-LabVIEW (All express VIs and dynamic data)??? What's the datatype (bits/sample)? What's the program architecture?
11-18-2021 10:50 PM
thank you for your response.
its a 2-channel data.
I capture and process the data in a loop and in another loop i just keep on writing the concatenated data in "write to measurement file" in LVM format.
Thanks