01-29-2025 01:46 AM
Good morning everyone. I hope someone can help me. I am using LabVIEW with PXI to record data, in my case I am measuring motor current ad voltages on the outputs. I am recording these data into a csv file, for each measurement I have separate file - for coil current 1 file and for voltage outputs another file. I record 5 s of data at frequency 2M HZ. When I am trying to increase the frequency to have better resolution i have error Not enough space, and after that my program is stopped and the data ofc not recorded. The size of the data recorded with sampling 2Mhz and duration of 5 s is around 100MB. How i can increase sampling frequency and be able to record these data into a csv file. Thank you
01-29-2025 01:53 AM
Hi Lily,
@Lily3000 wrote:
How i can increase sampling frequency and be able to record these data into a csv file.
To simplify DAQ data logging I recommend to use the DAQmx feature to write the data directly into TDMS files.
You can convert the data later on to CSV files in case you really need them!
01-29-2025 01:59 AM
I am not familiar with this approach. Is there a simple way to add this feature and modify my existing code that I added in attachment? Thank you
01-29-2025 02:20 AM
My LV is old, so I can't open your file.
This is not a limit of RAM, but a limit of the size of datatype structures or whatever.
I guess you do the measurement and then read all data at once. If you can read the data in chunks while the acquisition is running, you can also save the data in chunks, and avoid the prolem.
01-29-2025 02:50 AM
Hi Lily,
@Lily3000 wrote:
I am not familiar with this approach. Is there a simple way to add this feature and modify my existing code that I added in attachment? Thank you
Sure there is a simple way!
Read the LabVIEW/DAQmx help and learn from the example VIs found in the example finder…
01-29-2025 03:19 AM
can you provide a l9ink to some example or how to do this ? I have never done this and i am not sure where to start. thank you
01-29-2025 03:48 AM