Dialog & User Interface下載 PDF選擇的小節所選的小節與子小節完整手冊已更新2025-07-30閱讀時間為 3 分鐘LabVIEWAPI 參考LabVIEW G Use the Dialog & User Interface VIs and functions to create dialog boxes to prompt users with instructions. One Button Dialog FunctionDisplays a dialog box that contains a message and a single button.Two Button Dialog FunctionDisplays a dialog box that contains a message and two buttons.Three Button Dialog VIDisplays a dialog box that contains a message and three buttons.Simple Error Handler VIIndicates whether an error occurred. If an error occurred, this VI returns a description of the error and optionally displays a dialog box.General Error Handler VIIndicates whether an error occurred. If an error occurred, this VI returns a description of the error and optionally displays a dialog box.Clear Errors VIResets the error status to no error, code to 0, and source to an empty string. Use this VI when you want to ignore an error. By default, this VI ignores all errors. Wire an error code value to specific error code to clear if you only want to ignore a specific error.Error RingUse the Error Ring to quickly select and pass NI or custom error codes throughout your VI.Merge ErrorsMerges error I/O clusters from different VIs and functions.Error Cluster From Error Code VIConverts an error or warning code to an error cluster. This VI is useful when you receive a return value from a shared library call or when you return user-defined error codes.Find First Error VITests the error status of one or more low-level functions or subVIs that produce a numeric error code as output.Error Cluster Constant VIUse the error cluster constant to pass an error cluster value to the block diagram. Set this value by clicking inside the constant with the Operating tool and specifying values for the status, code, and source elements.Multiple ErrorsUse the Multiple Errors VIs to convert an error cluster into different formats or to manipulate the attributes of an error cluster.Prompt User for InputDisplays a standard dialog box that prompts users to enter information, such as a user name and password.Display Message to UserDisplays a standard dialog box that contains an alert or a message for users.Write to System Log VIWrites a message to the nierrlog system log for storage and subsequent viewing.Wait For Front Panel Activity FunctionPauses the execution of the calling VI block diagram in run mode until the function detects front panel activity in the front panel you want to monitor.Generate Front Panel Activity FunctionProgrammatically generates front panel activity so any VI execution halted by the Wait on Front Panel Activity function continues executing. No actual changes occur on the front panel.Color Box ConstantUse the color box constant to supply a constant color value to the block diagram.Listbox Symbol Ring ConstantUse the listbox symbol ring constant to assign symbols to items in a listbox control.EventsUse the Events functions to register events dynamically and to create user events.MenuUse the Menu functions to modify the menus in LabVIEW applications. Use the functions located on the top row of the palette to handle menu selections.CursorUse the Cursor VIs to change the appearance of the cursor on the front panel of a VI. For example, if the VI is acquiring or analyzing data and can accept no user input, you might want to change the cursor to an hourglass or watch cursor. After the VI finishes acquiring or analyzing data and can accept user input, you can change the cursor back to the default cursor.HelpUse the Help VI and functions to link from VIs to HTML files or compiled help files.Parent topic: Programming
Use the Dialog & User Interface VIs and functions to create dialog boxes to prompt users with instructions. One Button Dialog FunctionDisplays a dialog box that contains a message and a single button.Two Button Dialog FunctionDisplays a dialog box that contains a message and two buttons.Three Button Dialog VIDisplays a dialog box that contains a message and three buttons.Simple Error Handler VIIndicates whether an error occurred. If an error occurred, this VI returns a description of the error and optionally displays a dialog box.General Error Handler VIIndicates whether an error occurred. If an error occurred, this VI returns a description of the error and optionally displays a dialog box.Clear Errors VIResets the error status to no error, code to 0, and source to an empty string. Use this VI when you want to ignore an error. By default, this VI ignores all errors. Wire an error code value to specific error code to clear if you only want to ignore a specific error.Error RingUse the Error Ring to quickly select and pass NI or custom error codes throughout your VI.Merge ErrorsMerges error I/O clusters from different VIs and functions.Error Cluster From Error Code VIConverts an error or warning code to an error cluster. This VI is useful when you receive a return value from a shared library call or when you return user-defined error codes.Find First Error VITests the error status of one or more low-level functions or subVIs that produce a numeric error code as output.Error Cluster Constant VIUse the error cluster constant to pass an error cluster value to the block diagram. Set this value by clicking inside the constant with the Operating tool and specifying values for the status, code, and source elements.Multiple ErrorsUse the Multiple Errors VIs to convert an error cluster into different formats or to manipulate the attributes of an error cluster.Prompt User for InputDisplays a standard dialog box that prompts users to enter information, such as a user name and password.Display Message to UserDisplays a standard dialog box that contains an alert or a message for users.Write to System Log VIWrites a message to the nierrlog system log for storage and subsequent viewing.Wait For Front Panel Activity FunctionPauses the execution of the calling VI block diagram in run mode until the function detects front panel activity in the front panel you want to monitor.Generate Front Panel Activity FunctionProgrammatically generates front panel activity so any VI execution halted by the Wait on Front Panel Activity function continues executing. No actual changes occur on the front panel.Color Box ConstantUse the color box constant to supply a constant color value to the block diagram.Listbox Symbol Ring ConstantUse the listbox symbol ring constant to assign symbols to items in a listbox control.EventsUse the Events functions to register events dynamically and to create user events.MenuUse the Menu functions to modify the menus in LabVIEW applications. Use the functions located on the top row of the palette to handle menu selections.CursorUse the Cursor VIs to change the appearance of the cursor on the front panel of a VI. For example, if the VI is acquiring or analyzing data and can accept no user input, you might want to change the cursor to an hourglass or watch cursor. After the VI finishes acquiring or analyzing data and can accept user input, you can change the cursor back to the default cursor.HelpUse the Help VI and functions to link from VIs to HTML files or compiled help files.Parent topic: Programming
Use the Dialog & User Interface VIs and functions to create dialog boxes to prompt users with instructions. One Button Dialog FunctionDisplays a dialog box that contains a message and a single button.Two Button Dialog FunctionDisplays a dialog box that contains a message and two buttons.Three Button Dialog VIDisplays a dialog box that contains a message and three buttons.Simple Error Handler VIIndicates whether an error occurred. If an error occurred, this VI returns a description of the error and optionally displays a dialog box.General Error Handler VIIndicates whether an error occurred. If an error occurred, this VI returns a description of the error and optionally displays a dialog box.Clear Errors VIResets the error status to no error, code to 0, and source to an empty string. Use this VI when you want to ignore an error. By default, this VI ignores all errors. Wire an error code value to specific error code to clear if you only want to ignore a specific error.Error RingUse the Error Ring to quickly select and pass NI or custom error codes throughout your VI.Merge ErrorsMerges error I/O clusters from different VIs and functions.Error Cluster From Error Code VIConverts an error or warning code to an error cluster. This VI is useful when you receive a return value from a shared library call or when you return user-defined error codes.Find First Error VITests the error status of one or more low-level functions or subVIs that produce a numeric error code as output.Error Cluster Constant VIUse the error cluster constant to pass an error cluster value to the block diagram. Set this value by clicking inside the constant with the Operating tool and specifying values for the status, code, and source elements.Multiple ErrorsUse the Multiple Errors VIs to convert an error cluster into different formats or to manipulate the attributes of an error cluster.Prompt User for InputDisplays a standard dialog box that prompts users to enter information, such as a user name and password.Display Message to UserDisplays a standard dialog box that contains an alert or a message for users.Write to System Log VIWrites a message to the nierrlog system log for storage and subsequent viewing.Wait For Front Panel Activity FunctionPauses the execution of the calling VI block diagram in run mode until the function detects front panel activity in the front panel you want to monitor.Generate Front Panel Activity FunctionProgrammatically generates front panel activity so any VI execution halted by the Wait on Front Panel Activity function continues executing. No actual changes occur on the front panel.Color Box ConstantUse the color box constant to supply a constant color value to the block diagram.Listbox Symbol Ring ConstantUse the listbox symbol ring constant to assign symbols to items in a listbox control.EventsUse the Events functions to register events dynamically and to create user events.MenuUse the Menu functions to modify the menus in LabVIEW applications. Use the functions located on the top row of the palette to handle menu selections.CursorUse the Cursor VIs to change the appearance of the cursor on the front panel of a VI. For example, if the VI is acquiring or analyzing data and can accept no user input, you might want to change the cursor to an hourglass or watch cursor. After the VI finishes acquiring or analyzing data and can accept user input, you can change the cursor back to the default cursor.HelpUse the Help VI and functions to link from VIs to HTML files or compiled help files.Parent topic: Programming