‎07-21-2010 07:12 AM
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
‎07-21-2010 07:51 AM
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.
‎07-21-2010 08:08 AM
Ok cool thats just what I need. Thanks a lot