Engine.NotifyStartOfModalDialogEx
- Updated2025-07-21
- 2 minute(s) read
Engine.NotifyStartOfModalDialogEx
Syntax
Engine.NotifyStartOfModalDialogEx( sequenceContextParam, shouldAbort)
Return Value
Returns the modalID to pass to the Engine.NotifyEndOfModalDialog method when the dialog box no longer appears onscreen.
Purpose
Notifies TestStand that you are about to launch a modal dialog box.
Remarks
This method returns a modalID, which you pass to the Engine.NotifyEndOfModalDialog method when the dialog box is closed. TestStand uses this notification to determine when to disable the main window of the application and to enforce the modality of the dialog box.
LabVIEW modal dialog box
Call Start Modal Dialog.vi and End Modal Dialog.vi in TestStand.llb instead of the Engine.NotifyStartOfModalDialogEx and Engine.NotifyEndOfModalDialog methods.
LabWindows/CVI modal dialog box
Call TS_EndModalDialog or TS_StartModalDialogEx in <TestStand> \API\CVI\tsutil.fp instead of the Engine.NotifyStartOfModalDialogEx and Engine.NotifyEndOfModalDialog methods.
Parameters
sequenceContextParam As SequenceContext
[In] Specifies the sequence context of the step launching the modal dialog box. You can also pass a NULL reference but doing so loses the added functionality of this method.
shouldAbort As Boolean
[Out] Returns True when the user terminates or aborts the corresponding execution for the sequence context parameter you passed while you were blocked inside this method call. The step skips launching the dialog box and returns as soon as possible. You can call the Engine.NotifyEndOfModalDialog method in this case, though it is not necessary. If you are using the CVI TS_StartModalDialogEx function, always call the corresponding TS_EndModalDialog function. Similarly, if you are using Start Modal Dialog.vi in LabVIEW, always call End Modal Dialog.vi .