LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting a File Size Cap on program

Hi, so i'm using LabVIEW 7.1 and simply recording same data using the Write to File VI. The program writes the desired data I need but I'm looking to set up a File Size Cap or Limit when writing the data so the recording would stop once it reached a certain size, like 1 gigabyte. Problem I'm worried about is someone using program, leaving it running, while it writes data till there's no more memory left on the hardrive. Also, is there a more effecient way to Write to File in spurts rather than continuous? It burns up the CPU when writing continulousy. Thanks

 

WilK

0 Kudos
Message 1 of 3
(2,518 Views)

1.) For the file size, you can use the "get file size" vi.  It is in the advanced File I/O pallet.

 

2.) You could use master/slave loops (parallel while loops) to process your data.  The master loop would write the data to a queue, the slave loop would read the queue and write the data on some periodic basis.

 

 

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
Message 2 of 3
(2,507 Views)

Ok cool thats just what I need. Thanks a lot

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