05-27-2014 08:43 AM
I have a modular scalable labview app that can add systems to it as I add additional systems to test. My question is how do I handle it when each of these systems have their own custom error code files?
05-27-2014 10:08 AM
Just select the "Copy Error code files" check-box on the Advanced tab of the build spec.
05-27-2014 11:21 AM
I see this dialog check box but what I am asking about is if there is a way to use more than one error code file "error codes.txt" for building a project. If one developer is writing a VI which is a child VI of the main program and he wants to use his own custom error codes in his child VI, how can I integrated that during build with parent VI if the Parent VI has its own error code.txt file also?
Thanks
05-27-2014 11:43 AM
Hello id,
Yes, this should be possible - as per the LabVIEW help, all you should need to do is include the custom error files in the errors directory for the version of LabVIEW/Labview Runtime you're using. When deploying your plugin children, you'll just need to ensure that the new error files are installed to <root>\National Instruments\Shared\LabVIEW Run-Time\<version>\errors\. If you're building an installer, Jeff's suggestion should take care of that.
Note that a valid error file is named <something>-errors.txt. You can have any number of these files.
Once you've placed that in the correct directory, any time that error is passed to a standard error reporting VI I believe the comment should be pulled from those files. If error numbers are duplicated, it should display all applicable comments.
For reference:
Defining Custom Error Codes to Distribute throughout Your Application
http://zone.ni.com/reference/en-XX/help/371361K-01/lvhowto/def_custom_error_text/
Regards,