TestStand - Insert Commands in Menu
- Updated2025-07-21
- 7 minute(s) read
TestStand - Insert Commands in Menu
Owning Palette: TestStand
Inserts a menu item or group of menu items associated with TestStand commands into a custom run-time menu. The data type you wire to the Application Manager input determines the polymorphic instance to use. Use this VI to rebuild the menu bar in response to the < This VI >:Menu Activation? event in the main TestStand User Interface VI to populate the menu bar with the commands that apply to the current state of the application. Before you use this VI, use the TestStand - Remove Commands from Menus VI to remove any pre-existing TestStand menu items.
TestStand - Insert Commands in Menu (Application Manager)
|
TestStand UI Control Has Focus specifies whether the active control on the LabVIEW front panel is a TestStand User Interface (UI) Control. Set the TestStand UI Control Has Focus parameter to FALSE when you insert the CommandKind_Edit_Copy , CommandKind_Edit_Cut , or CommandKind_Edit_Paste commands and the active control is not a TestStand UI Control. The TestStand menu commands operate only on TestStand UI Controls, not LabVIEW controls. In addition, the LabVIEW application menu items for copy, cut, paste, and clear operate only on LabVIEW controls, not TestStand UI Controls. When you set this input to FALSE and the Top-Level Menu to Insert Into input to Edit , this VI inserts the corresponding LabVIEW application menu item instead of the TestStand menu command. |
|
Top-Level Menu to Insert Into specifies the tag of the menu item you want to insert command items into. |
|
Menu Refnum In specifies the reference to a menu bar in a VI. Use the Current VI's Menubar function to obtain this reference number. |
|
Commands specifies an array of TestStand command types. For each element in the array, the VI inserts the corresponding menu item(s) into the menu. |
|
Application Manager specifies the reference to the TestStand Application Manager control to which the menu items apply. |
|
error in (no error) describes error conditions that occur before this node runs. This input provides standard error in functionality. |
|
Index of Menu Item to Insert After specifies the position at which to insert the items. To insert at the beginning of the menu, wire a number less than 0. To insert at the end of the menu, wire a number greater than the number of items in the menu. |
|
Menu Refnum Out returns the Menu Refnum In parameter unchanged. |
|
Number of Menu Items Inserted returns the number of items this VI inserted into the menu. |
|
error out contains error information. This output provides standard error out functionality. |
TestStand - Insert Commands in Menu (SequenceFileView Manager)
|
TestStand UI Control Has Focus specifies whether the active control on the LabVIEW front panel is a TestStand UI Control. Set the TestStand UI Control Has Focus parameter to FALSE when you insert the CommandKind_Edit_Copy , CommandKind_Edit_Cut , or CommandKind_Edit_Paste commands and the active control is not a TestStand UI Control. The TestStand menu commands operate only on TestStand UI Controls, not LabVIEW controls. In addition, the LabVIEW application menu items for copy, cut, paste, and clear operate only on LabVIEW controls, not TestStand UI Controls. When you set this input to FALSE and the Top-Level Menu to Insert Into input to Edit , this VI inserts the corresponding LabVIEW application menu item instead of the TestStand menu command. |
|
Top-Level Menu to Insert Into specifies the tag of the menu item you want to insert command items into. |
|
Menu Refnum In specifies the reference to a menu bar in a VI. Use the Current VI's Menubar function to obtain this reference number. |
|
Commands specifies an array of TestStand command types. For each element in the array, the VI inserts the corresponding menu item(s) into the menu. |
|
SequenceFileView Manager specifies the reference to the TestStand SequenceFileView Manager control to which the menu items apply. |
|
error in (no error) describes error conditions that occur before this node runs. This input provides standard error in functionality. |
|
Index of Menu Item to Insert After specifies the position at which to insert the items. To insert at the beginning of the menu, wire a number less than 0. To insert at the end of the menu, wire a number greater than the number of items in the menu. |
|
Menu Refnum Out returns the Menu Refnum In parameter unchanged. |
|
Number of Menu Items Inserted returns the number of items this VI inserted into the menu. |
|
error out contains error information. This output provides standard error out functionality. |
TestStand - Insert Commands in Menu (ExecutionView Manager)
|
TestStand UI Control Has Focus specifies whether the active control on the LabVIEW front panel is a TestStand UI Control. Set the TestStand UI Control Has Focus parameter to FALSE when you insert the CommandKind_Edit_Copy , CommandKind_Edit_Cut , or CommandKind_Edit_Paste commands and the active control is not a TestStand UI Control. The TestStand menu commands operate only on TestStand UI Controls, not LabVIEW controls. In addition, the LabVIEW application menu items for copy, cut, paste, and clear operate only on LabVIEW controls, not TestStand UI Controls. When you set this input to FALSE and the Top-Level Menu to Insert Into input to Edit , this VI inserts the corresponding LabVIEW application menu item instead of the TestStand menu command. |
|
Top-Level Menu to Insert Into specifies the tag of the menu item you want to insert command items into. |
|
Menu Refnum In specifies the reference to a menu bar in a VI. Use the Current VI's Menubar function to obtain this reference number. |
|
Commands specifies an array of TestStand command types. For each element in the array, the VI inserts the corresponding menu item(s) into the menu. |
|
ExecutionView Manager specifies the reference to the TestStand ExecutionView Manager control to which the menu items apply. |
|
error in (no error) describes error conditions that occur before this node runs. This input provides standard error in functionality. |
|
Index of Menu Item to Insert After specifies the position at which to insert the items. To insert at the beginning of the menu, wire a number less than 0. To insert at the end of the menu, wire a number greater than the number of items in the menu. |
|
Menu Refnum Out returns the Menu Refnum In parameter unchanged. |
|
Number of Menu Items Inserted returns the number of items this VI inserted into the menu. |
|
error out contains error information. This output provides standard error out functionality. |