LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is causing crash when using Write to Measurement file VI?

I am using the express VI, Write to Measurement on a PXI8106.  When I run the application without writing to a TDMS file, the application will run for days. If I write TDMS files, the application periodically crashes every few hours. I have read that with the PXI's fat32 file system that the file sizes should be limited to multiples of 4096 bytes. I have also heard that writing to the root directory of the PXI, will cause problems- files should be written to a sub-directory. I have also verified that disk space is not an issue. The problem has occurred with as much as 30G of space. I need to find out what is causing the problem. Please advise. The application is a power measurement application using 4461 DAQ card.  Also - no error messages are displayed, the running VI just stops.

0 Kudos
Message 1 of 7
(2,740 Views)

Are you doing any file management with your TDMS file?  Things like closing the file and starting a new file every so often are important for these kinds of applications.

 

How are you logging the data?  Are you using the TDMS Streaming capability of DAQmx?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 7
(2,735 Views)

Currently I am using the multi-file option to create a new file when it reaches a certain size.  I have attached a screen shot of the settings.

0 Kudos
Message 3 of 7
(2,711 Views)

I did get an error this last crash... It appears to be a memory issue.  Any recommendations on reclaiming memory or releasing memory?

 

0 Kudos
Message 4 of 7
(2,701 Views)

How much data are you storing local in the program?

Are you using array's?

Are they just getting bigger and bigger over time?

How are you adding data to array's?

 

Most of the times, that error comes when a program is building arrays all the time. At the end LabVIEW can't find RAM to build a bigger arrays.

 

0 Kudos
Message 5 of 7
(2,667 Views)

There could be an issue the the Express VI converting your waveform data into the dreaded Dynamic Data Type, which is just causing more and more memory to be used.

 

So what I would recommend is use the DAQmx Configure Logging  VI to configure DAQmx to stream the data as you read straight to a TDMS file.  There are various other properties you can set to make the logging go across files.  You just set up the logging before running your task.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 7
(2,657 Views)

Thank you for your assistance. Your recommendations have been helpful.

0 Kudos
Message 7 of 7
(2,592 Views)