Menuitem ("menuitemname",source), Menupick (item1, item2, item3, ..., item512) – Campbell Scientific CR9000X Measurement and Control System User Manual
Page 394

Section 10. Custom Keyboard Display Menus
MenuItem ("MenuItemName",Source)
The MenuItem instruction is used to display the value of a variable and allow
the user to change the value. Text can be displayed in place of a numeric value
if MenuPick is used to create a pick list of constants. The constants must be
defined in the program.
The MenuItemName parameter is the text that appears on the left of the line in
the custom menu. The name is limited to 20 characters, but only 10 characters
will be displayed when the variable value is shown (the entire 20 characters
will be shown when the value is edited). MenuItemName should be enclosed
in quotation marks.
The Variable parameter is the variable name of the value to be displayed.
Values displayed using MenuItem can be edited, either by typing in a value
directly or by creating a pick list of values using MenuPick.
Note: Use DisplayValue to display variable values without allowing them to
be changed.
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
The source of the value to display to the right of the text
“MenuItemName” The source must be a variable.
MenuPick (Item1, Item2, Item3, ..., Item512)
The MenuPick instruction is used to create a pick list of constants or values
that the preceding MenuItem variable can be set to. When MenuPick is used,
the pick list is the only way to set the variable from the custom menu.
The pick list can contain constants or numeric values (see example program
10-1). The constants must be defined in the program.
The MenuPick instruction must immediately follow the MenuItem instruction
for which a list of options is being generated. Each item in the list is separated
from the next by a comma.
10-4