LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

automatically create new file to continue writing data when it reach filesize limit

Hi everybody,
 
I have written a VI that creates a new file when the filesize hits the pre-set limit. The scenario is that the data is continously acquisiting for like, 1 day and need to be written into file. But I don't want to write to 1 single large file, so segmenting the file is required.
 
The vi gives me an error 1 at the EOF icon and said I need a GPIB controller to be controller in charge.
 
Please take a look at the vi. The Labview I'm using is 7.1
 
Thanks everybody here!
 
Best regards,
Dick H
0 Kudos
Message 1 of 3
(2,710 Views)
 
Hi Dick,
 
What you have done till the maximum predefined file size reach point is fine. Once it reaches the limit, you have closed that file reference, what you created at the start. So you should not have a file reference for FALSE case to continue writing, after creating a new file inside a TRUE case loop. So if you pass it thru shift reg., after close of one file ref. you will have another one to write always.
 
LV should say an error like No Open file reference is available for writing.. Instead of GPIB controller to be controller in charge where we'll not be using any IB etc. 
 
 
Regards,
 
Kousy
0 Kudos
Message 2 of 3
(2,699 Views)

Hi Kousy,

Thanks for your help! It worked! Thanks again!

Regards,

Dick H

0 Kudos
Message 3 of 3
(2,696 Views)