Calling Non-Modal Windows Programmatically
- 已更新2026-02-02
- 閱讀時間為 1 分鐘
You cannot open a non-modal window from a LabVIEW callback VI nor a DLL while any other process is running. If you want the callback VI or DLL to call a non-modal window, you must do so programmatically by completing the following steps:
- Add an Open VI Reference node to the block diagram.
- Wire the path for the non-modal window you want to open to the vi path input.
Note You only can wire a path for a VI-based window to the
vi path
input. You can
use the Call Library Function Node
to open a window that is not VI-based. Before calling a window from a LabVIEW callback VI or DLL, be sure that window is configured as modal.
- Add an Invoke Node to the block diagram.
- Wire the vi reference output of the Open VI Reference node to the reference input of the Invoke Node.
- Select Run VI as the method on the Invoke Node.
- Wire a FALSE Boolean constant to the Wait Until Done input of the method.