キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

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 

メッセージ11/15
1,455件の閲覧回数

Consider passing through the source string to help debugging.

 

odd.png


"Should be" isn't "Is" -Jay
メッセージ12/15
1,453件の閲覧回数

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
メッセージ13/15
1,445件の閲覧回数

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

メッセージ14/15
1,441件の閲覧回数

Thank you for posting this. It helped so much

0 件の賞賛
メッセージ15/15
1,400件の閲覧回数