04-28-2020 05:25 AM
Hi,
I am Acquiring data at 31 Mhz from PICO 2208B. Total Ram taken during acquisition is 900 MB. When I write the acquired data to TDMS file ram shoots up to 2000MB and throws error"Not enough memory to perform this operation".
How can rectify this issue.
04-28-2020 07:03 AM - edited 04-28-2020 07:03 AM
Hi Anbarasan,
@ANBARASAN wrote:
I am Acquiring data at 31 Mhz from PICO 2208B. Total Ram taken during acquisition is 900 MB. When I write the acquired data to TDMS file ram shoots up to 2000MB and throws error"Not enough memory to perform this operation". How can rectify this issue.
Don't collect this huge amount of data in RAM, but write instantly to a file (located on a fast SSD)…
04-28-2020 07:20 AM
Hi GerdW,
Thanks for your reply. I am writing every 100 ms data to tdms file. I am Using SSD Hard disk.I could understand the word "instantaneously writing to file".Can you explain me.
04-28-2020 08:47 AM
Hi Anbarasan,
@ANBARASAN wrote:
I could understand the word "instantaneously writing to file".Can you explain me.
I guess you don't understand what I meant with "instantaneously": instead of collecting data in an array you should write the data immediatly to a (TDMS) file. (Maybe it could help to use a producer-consumer pattern when your PICOscope reads the signal at 31MHz samplerate.)
You still haven't provided any code…