01-11-2007 02:20 PM
01-11-2007 02:28 PM
01-11-2007 02:29 PM
Newer LabVIEW version have automatic error handling enabled bu default (set in options...block diagram). An error dialog will appear if an error occurs but the error output is not wired. The dialog should go away once you wire the error output. This confuses me, because usually you would use the error output to determine if a file exists or not. How are you using the tool?
Easiest would be to wire the error out directly to the selector terminal of a case structure and place the alternative code sections in the two cases..
01-11-2007 02:33 PM
01-11-2007 02:33 PM - edited 01-11-2007 02:33 PM
@agood wrote:
I use the Directory / File Info to determine if a file exists. If the file size returns a zero I create the file and write the header.
OK, this is incorrect, because a file can exist and be of size zero at the same time! 😉 As mentioned above, you should use the error output. If there is no error, the file exists. If there is an error, the File/folder does not exist.
Message Edited by altenbach on 01-11-2007 12:33 PM
01-11-2007 02:38 PM
Thank you all for the input. Wiring the error out worked.
Art Good