LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview undefined error code message on custom codes

Solved!
Go to solution

I am using the general error handler VI to define custom errors,I have inserted all the inputs for this vi(user defined descriptions,user defined codes,error code,error source, type of dialog and error in) but some how i still get the message: "

This error code is undefined. Undefined errors might occur for a number of reasons. For example, no one has provided a description for the code, or you might have wired a number that is not an error code to the error code input.

Additionally, undefined error codes might occur because the error relates to a third-party object, such as the operating system or ActiveX. For these third-party errors, you might be able to obtain a description of the error by searching the Web for the error code (5501) or for its hexadecimal representation (0x0000157D). "

 

why?somebody,anybody,help!!..thank you very much

0 Kudos
Message 1 of 4
(8,188 Views)

Could you post your code?

0 Kudos
Message 2 of 4
(8,182 Views)
Solution
Accepted by topic author alpony01

How are you using the general error handler VI? Do you have some example code?

 

The following code, displays the error dialogue using my custom error description and the 'message' out also uses my custom error description:

CustomErrors.png

The error out is unmodified - if I go to 'explain error', it then reverts back to the standard description for that error code (i.e. undefined). Using the General Error Handler only applies the user descriptions to that call of the VI. You could always create a wrapper for the general error handler which has all of your error codes/descriptions defined and then use that instead of the built-in one.

 

To modify LabVIEWs internal error database and/or include that with a built application (one of the build specification options), you need to use custom error files.

 

 


LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 3 of 4
(8,178 Views)

thank you very much...this part of your reply solved my problem " Using the General Error Handler only applies the user descriptions to that call of the VI " . Because that was calling the vi from another vi..tenkiu

0 Kudos
Message 4 of 4
(8,142 Views)