05-20-2008 06:58 AM
05-20-2008 07:05 AM
Are you using normal file open, write, close functions or are you using VISA functions?
Post your code to help further.
Mathan
05-20-2008 07:16 AM
There are a couple of ways to do this.
1. Before writing to the file, check to see if the file exists. Wire the boolean result to a Case Structure and handle asking if you want to overwrite the file using a message popup. Then the boolean output of the popup will decide if you want to overwrite or not, and maybe offer to rename the file, etc.. as you want to handle that.
2. A better way is to use the feature already available with most file write functions (vi's). If you use the Context Help (under Help menu or click on questionmark at upper right corner), you can get additional description of the terminals on the connector pane of the function. Most will offer a boolean to automatically replace file. If you select not replacing the file automatically, it should provide a prompt asking if you want to replace the file. I can't remember if it offers to change the path name.. Unfortunately, I do not have LV installed on this machine so I cannot verify this.
RayR
05-21-2008 12:51 PM
05-21-2008 03:54 PM
05-21-2008 08:32 PM - edited 05-21-2008 08:33 PM
05-21-2008 08:39 PM
Here is the code in LV8.2.