LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Memory Issue

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

0 Kudos
Message 1 of 6
(3,494 Views)

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.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 6
(3,475 Views)

@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.

0 Kudos
Message 3 of 6
(3,461 Views)

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.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 4 of 6
(3,445 Views)

@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?

0 Kudos
Message 5 of 6
(3,418 Views)

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

0 Kudos
Message 6 of 6
(3,173 Views)