ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error code XML file

When I use a custom error file xxx-errors.txt.How do I get the general error handler to choose the codes from this specific file?

 

I am not clear on what tells the vi to use this file.

 

Thanks

 

Jim

0 Kudos
Message 1 of 4
(2,693 Views)

The file has to be in user.lib/errors.  Also you have to restart LabVIEW after creating or changing the file.

=====================
LabVIEW 2012


0 Kudos
Message 2 of 4
(2,692 Views)

Still a bit lost

 

If I had two error file File1.errors.txt and File2.errors.txt both in the user lib.

 

File 1 defines error code 5000 as a general fault

File 2 defines error code 5000 as communications lost

 

I want the VI to use the error code from file 2 "Communications lost"

 

How does labview know which file I wan't to use.

 

Thanks

 

Jim

0 Kudos
Message 3 of 4
(2,683 Views)

All error files are loaded. If you have a duplicate code, both will be listed as possible reasons.

Message 4 of 4
(2,677 Views)