LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"End of File" error 4 when trying to use Advanced TDMS Palette to create a circular file buffer

I'm using the Advanced TDMS palette to create an on-disk circular buffer. I was able to successfully implement the buffer for a single channel of data.

However, when I try to write multiple channels of data, I continuously get "End of File Encountered" error 4. I am pre-allocating 60,000 data points for each channel using the "TDMS Set Channel Information" function.

I am able to (1) Set Next Write Position and (2) perform an Asynchronous Write to the first channel. But when I try to Set Next Write Position to the second channel, I immediately get an error 4.

The examples have not been helpful as none of them write to different channels in sequence.

 

Attached is an example project of what I'm trying to do, coded in 2013SP1.

 

Sorry about the file hierarchy, the project is located in the ZIP file here:

Workspaces\V12000\_V12000 Common Labview Code\Named WF Array\Named WF Array.lvproj

0 Kudos
Message 1 of 2
(2,788 Views)

I looked into your project and found that the error comes from Set Next Write Position because the "offset" passed in is out of range. In fact, for continueous logging, you don't need to put the Set Next Write Position in front of the write. Remove this function and you will find your VI can run successfully without throwing out any errors.

0 Kudos
Message 2 of 2
(2,752 Views)