LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Moving errors directory

Solved!
Go to solution

Is there an easy way for different installations of LabView to view the same error file if they are using a particular project? Seems like every time I update the custom error definitions in /labview/user.lib/errors, I'll have to copy that change to all the other computers that can run the project. That seems kinda lame. I wish errors had a path that depended on the project path and not the labview path.

 

- Chris

0 Kudos
Message 1 of 3
(2,287 Views)
Solution
Accepted by majoris

Hi Chris,

 

You might want to try using a custom error handler instead of custom error files.  You can package this as a VI.  That  way your custom messages get stored in the project instead of the vi.lib.  Take a look at the bottom of the attached Developer Zone document:

 

Custom Error Handling In LabVIEW

http://zone.ni.com/devzone/cda/tut/p/id/3209

 

 

Nick Keel 

Applications Engineering 

National Instruments

Nick Keel
Product Manager - NI VeriStand and Model Interface Toolkit
National Instruments
0 Kudos
Message 2 of 3
(2,264 Views)

True. I suppose I got tunnel vision, wanting that file to be the way I distribute the errors.

 

Clearly, I could just make a function that loads an error file that I have in the project directory, parses it and then applies the errors. Honestly, that's a more graceful way to do it in the first place.

0 Kudos
Message 3 of 3
(2,254 Views)