NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand run-time error dialog

Hi

The dialog box (which asks if you wish to Run CleanUp, Abort or Terminate) can be set to pop up on runtime errors from within the TestStand development environent from: Configure >> Station Options >> On RunTime Error: Show Dialog(selected from drop-down box)

Does anyone know how I can set this error dialog to pop up when running a sequence from a VisualBasic GUI?

Thanks,
Dan
0 Kudos
Message 1 of 3
(3,753 Views)
Hi,

As suggestion: have you looked at the code for the default VB GUI supplied with the TS Installation.
I've run the VB GUI application and the Dialog shows so therefore the handling must be in the code supplied.

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 3
(3,753 Views)
Hello Dan,

If you are using the default VB Operator Interface that is shipped with TestStand, then you can set this option exactly as you do in the Sequence Editor. If you are creating a custom Operator Interface, you can set this option using the DisplayRunTimeErrorDialog (or DisplayRunTimeErrorDialogEx) method of the engine. This will display the dialog box that is shown in the Sequence Editor. You would implement this feature in the case that handles the BreakOnRunTimeError UIMessage. You should examine te code of the default VB Operator Interface to see how this is done. Hope this helps.
0 Kudos
Message 3 of 3
(3,753 Views)