Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx concurrent tdms read

Solved!
Go to solution

Hi,

i am measuring a voltage using the NI9223 and log the data to a tdms file. Since my signal processing takes a lot of time, i try to read the tdms file while the measurement is still active.To do this, I modified the "Concurrent Access to TDMS file" example. 

 

Unfortunately the TDMS Read VI always responds wit a error:

LabVIEW: End of file encountered.

=========================
NI-488: Invalid argument or arguments to function call.

 

I already tried different offsets and data lengths (-1) but nothing seems to work. 

 

Thanks a lot for your help

 

0 Kudos
Message 1 of 2
(2,834 Views)
Solution
Accepted by topic author katratzi

DAQmx has exclusive access to the TDMS file during the logging process.  That is one of the reasons it can log data faster than a Producer/Consumer.

 

For your exact example, you should be using the Log And Read mode and use the DAQmx Read inside of the loop to then write to your chart.


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
Message 2 of 2
(2,812 Views)