Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Display message when error occurs while using simple error handler

Hello experts,

 

I am trying to work out how to display a message in the dialog box while an error occurs.  I am using a simple error handler and I want to display the message 'Unable to connect'  within the dialog box under the OK single button.

 

Any help would be much appreciated!

 

Thank You

 

 

0 Kudos
Message 1 of 2
(2,900 Views)

You can:

  • Create your own error code(s), using an error code file.
  • Use the General Error Handler VI and wire the custom error codes and error description directly.
  • Display your own dialog when that error occurs. You can do this either with the Display Message Express VI, or you can create your own dialog. Plenty of examples have been posted in the LabVIEW forum, and examples ship with LabVIEW on creating dialog boxes.
0 Kudos
Message 2 of 2
(2,892 Views)