Displaymenu/endmenu, Displayvalue ("menuitemname", source) – Campbell Scientific CR9000X Measurement and Control System User Manual
Page 393

Section 10. Custom Keyboard Display Menus
DisplayMenu/EndMenu
Syntax:
DisplayMenu ("MenuName", AddtoSystem)
menu definition (DisplayValue, MenuItem, and SubMenu)
EndMenu
The DisplayMenu/EndMenu instructions are used to mark the beginning and
ending of a custom menu. The DisplayValue, MenuItem, and
SubMenu/EndSubMenu instructions are used to define what will be
displayed in the custom menu.
Parameter
& Data Type
Enter
MenuName
Text
The text that will be shown as the heading for the custom menu. The string is
limited to 20 characters, and it should be enclosed in quotation marks.
AddtoSystem
Constant
This constant determines if the custom menu is a sub menu or replaces the
standard menu..
Value Result
0
Standard menu is submenu of Custom
≠0
Custom menu is submenu of Standard
DisplayValue ("MenuItemName", Source)
The DisplayValue instruction is used to define the menu text and associated
Variable or Data Table field to be displayed in the custom menu.
The MenuItemName parameter is the text that will appear on the left of the
line in the custom menu. Up to 10 characters will be displayed along with the
value of the source. The name should be enclosed in quotation marks. The
source must be a variable or a field from a data table. Values displayed using
DisplayValue cannot be edited.
Note: DisplayValue does not allow the keyboard operator to change the value.
Use MenuItem to display a variable and allow the operator to change the
value.
Parameter
& Data Type
Enter
MenuItemName
Text
The text that will be shown as the heading for the custom menu. The
string is limited to 20 characters, and it should be enclosed in quotation
marks.
Source
Variable or
TableName.Field
The source of the value to display to the right of the text
“MenuItemName” The source must be a variable or a field from a data
table. Values displayed using DisplayValue cannot be edited.
10-3