09-06-2008 05:48 PM
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.
-jlivermore
09-06-2008 07:45 PM - edited 09-06-2008 07:46 PM
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.
09-08-2008 10:13 AM
Thanks, Ravens Fan. I'll implement your suggestion.
-jlivermore