LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

automatic file writing

How do I automate writing to a file? In the Write to Binary File vi, I would like to enclose that logic in a loop and write to a file repeatedly to a file. I can specify the path and file name, but I still need to select the file each time it is written to in the loop. Can I automate the file selection process so that the loop executes without input from me? Thanks.Smiley Sad

 

-jlivermore

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

Yes.  You put a Open/Create/Replace File Function before your loop.  Wire the file refnum out if it and into the loop into the Write to Binary File function.  If you don't want the initial popup dialog, you can wire a file path constant into the Open File Function.

Message Edited by Ravens Fan on 09-06-2008 08:46 PM
0 Kudos
Message 2 of 3
(2,623 Views)

Thanks, Ravens Fan. I'll implement your suggestion.Smiley Happy

 

-jlivermore

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