11-04-2018 08:53 AM
I am trying to include a custom error code file with my exe. I put my custom error codes file in LabVIEW 2017\user.llb\errors. I checked the box in the application builder to copy error code files. I even put my custom error code file in my project and include it in my buld under user.llb\errors. I also put my custom error code file in D:\National Instruments\Shared\Errors\English
The exe is not using my custom error code files.
Any help would be appreciated
Solved! Go to Solution.
11-05-2018 08:37 AM - edited 11-05-2018 08:42 AM
You should store custom error files into a special folder <LabVIEW>\user.lib\errors
When launching LabVIEW, it will load these files, if you change or add files, you have to restart LabVIEW for these changes to show up.
If you want to modificate the error files, you should use the Edit Error codes tool in Tools>> Advanced
I hope that helps you!
Best Regards, Monse.
11-06-2018 07:54 AM - edited 11-06-2018 08:10 AM
11-06-2018 08:44 AM
Maybe you could try defining Custom Error Codes Using the General Error Handler VI
Complete the following steps to define custom error codes using the General Error Handler VI.
|Note As an alternative to steps 6 through 8, you can wire a numeric constant with the specified error code to the Error Cluster From Error Code VI. Then wire the error out output of the Error Cluster From Error Code VI to the error in input of the General Error Handler VI.|
You also can define custom error codes by creating an XML-based text file and adding the error codes and messages to the text file.
Try this and tell me how's it going!
11-06-2018 10:40 AM
See correct locations of error codes file for exe:
And creating installer to distribute exe with codes:
11-06-2018 12:14 PM