LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Increase speed of file writing (disbabling caching?)

I am already writing in sections of 1048576 Bytes so I don't think that is the issue. How would you open the file and set the file size to a certain size? (I'm only a month into using LabVIEW, working as a student in my gap year between school and uni).
0 Kudos
Message 11 of 15
(1,169 Views)

There is a function 'Set File Size' (and you could easily calculate the exact size beforehand).

 N*RMM Block Size*Blocks Read per loop*Valuesize (I guess 4).

 

 

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 12 of 15
(1,165 Views)

I had just found that function, I really should've checked first! It is very easy to calculate the file size, simply the requested number of "blocks to read" * RMM Block Size. It does increase the speed of writing, but when the function is asked for data that it has not already read it seems to slow right down again to only 1MByte/s.

The data is stored on a RAID in a series of sequentially named 100MB files, could this be causing any of these difficulties? For the final project the data will be on one Removable Memory Module, sequentially placed, and accessed through a fibre-channel card.

0 Kudos
Message 13 of 15
(1,161 Views)

frau wrote:

...but when the function is asked for data that it has not already read it seems to slow right down again to only 1MByte/s.

...


So now we are talking about the speed of the DLL function?

Could you show a the piece of code as it currently is?

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 14 of 15
(1,153 Views)

I suspect it could well be the speed of the dll function that is slowing this function down, but it should read data fairly fast, it is written in C++, has minimal processing to access the correct data and then uses fstream to read the data out.

The attached print screens are the two main cases that will execute, the false structure executes when the requested number of blocks is not a multiple of the maximum number of blocks that are read per loop.

Download All
0 Kudos
Message 15 of 15
(1,151 Views)