LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write File stops at 152 Mb

When using the "Write file" option in LabView 7.1 the maximum file size of the binary file is 152 Mb. When this size is reached the program always hangs and claims that "Data was overwritten before it could be read by the system." (I do use DMA)
 
A solution would be to write to multiple files. I tried that using the "Write LabView Measurement File", but this way of writing to file based on ascii is simply too slow.
 
I'm happy if someone has a good solution.
 
/Qualle
0 Kudos
Message 1 of 23
(4,201 Views)
Could you show your code?

Because I've never seen this.

You might want to flush the file regurarly

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 23
(4,178 Views)


@Qualle wrote:
"Data was overwritten before it could be read by the system."

I am not familiar with that error. Is this coming from LabVIEW or the OS?

You might also want to check your drive for errors and possibly defragment. How much disk space do you have left?

0 Kudos
Message 3 of 23
(4,167 Views)
You can find the relevant part of the code in the attachment. The code collects data from a NI-6602 and reads the value of the 80 MHz clock on each pulse that enters one of the gates.
 
I use WinXP with NTFS so the system should be able to handle large files.
The hard drive is in good shape and there is plenty of free space.
 
Thankfull for your advices!
 
/Qualle
0 Kudos
Message 4 of 23
(4,139 Views)

Yes, the error message comes from LabView.

/Qualle

0 Kudos
Message 5 of 23
(4,139 Views)
Is there anything else going on in the while loop? It looks like there is some file access at the top which is cut off in your screencap.
0 Kudos
Message 6 of 23
(4,132 Views)

Yes, I'm collecting data from two gates so there is a copy of the same code above.

It just didn't fit in one screen shot...

0 Kudos
Message 7 of 23
(4,129 Views)
Hi Qualle,

"It just didn't fit in one screen shot..." - cleaning up the diagram (just a little bit) would help in this case Smiley Very Happy

The attached vi quickly run up to >300, writing >300MB of data, without any problems in just some seconds...

Message Edited by GerdW on 08-23-2007 02:33 PM

Message Edited by GerdW on 08-23-2007 02:37 PM

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Download All
Message 8 of 23
(4,121 Views)
I assume when your file stops writing at 152 MB that there is actually still data to write from the DAQ? i.e. does your buffer size indicator show there are some samples to be written to file?
0 Kudos
Message 9 of 23
(4,113 Views)

Yes, the buffer goes from a constant low value to sky rocheting when reaching 152 Mb.

 

0 Kudos
Message 10 of 23
(4,104 Views)