LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I programmatically change an error message?

Joe,

 

The General Error Handler should be used to display errors that have already been generated, but you are using it to generate an error.  The problem with this is that you will get a popup message when you hit this VI, which could be a major problem if this is buried deep down somewhere in your application.  I urge you to create a custom error file, then use "Error Cluster From Error Code.vi" in your "Modify error message.vi"

 

Chris M 

Message 11 of 15
(1,074 Views)

Consider passing through the source string to help debugging.

 

odd.png


"Should be" isn't "Is" -Jay
Message 12 of 15
(1,072 Views)

One other thing that I noticed is that you are not passing the fault reason into the error cluster See the attached VI.

Tim
GHSP
Message 13 of 15
(1,064 Views)

Why not do something like this:

generate error.png

 

You can then create your own custom "-errors.txt" file in the user.lib directory, such as the attached file.  This will allow you to right-click the error indicator and select "Explain Error".

 

Chris M

Message 14 of 15
(1,060 Views)

Thank you for posting this. It helped so much

0 Kudos
Message 15 of 15
(1,019 Views)