01-27-2010 03:46 PM - edited 01-27-2010 03:47 PM
01-27-2010 04:07 PM - edited 01-27-2010 04:08 PM
The Source field is intended to indicate the VI which generated the error. When you find error 7, then check the Source string for the name of the VI which produced the error. If it is a file or config VI, then it is a file error. If it is a VISA or GPIB VI, it is a GPIB error. You may have to see how many different VIs can generate these errors in your program and look for multiple possibilities.
Lynn
01-27-2010 04:16 PM
01-27-2010 09:08 PM
Another option is to check the existence of the file before opening the config file, then exit the program if nessecary. Relying on error codes might be a bad option.
Ton
01-28-2010 10:02 AM
So essentially handle the error right there and exit rather than wait for it to get to my error case?
TCPlomp wrote:Another option is to check the existence of the file before opening the config file, then exit the program if nessecary. Relying on error codes might be a bad option.
Ton
01-29-2010 02:32 PM