Specifications

10-1
Section 10. Custom Keyboard Display
Menus
CRBasic has the capability of creating a custom keyboard display menu for a
datalogger program. The custom menu can either appear as submenu of the
standard CR3000 menu or it can take the place of the standard menu and
contain the standard menu as a submenu. An item in the custom menu may do
one of four things: 1) display the value of a variable or a field in a data table.
2) display the value of a variable/flag and allow the user to change that value.
3) provide a link to another custom menu. 4) provide a link to the standard
menu.
Syntax
DisplayMenu (MenuName, 0)
DisplayValue ("MenuItemName", tablename.fieldname )
MenuItem ("MenuItemName", Variable )
MenuPick (Item1, Item2, Item3...Item7 )
SubMenu (MenuName )
MenuItem ("MenuItemName", Variable )
EndSubMenu
EndMenu
The DisplayMenu and EndMenu instructions mark the beginning and ending of
a custom menu definition. Variables and stored data can be displayed as an
item in a menu with the DisplayValue instruction. The MenuItem instruction
creates an item that displays the value of a variable and allows the value to be
edited. The MenuItem can be set up to be edited either by keying in a new
numeric value or by selecting an option from a pick list. MenuPick is use to
create a pick list for MenuItem. A link to another user menu can be created
with the SubMenu and EndSubMenu functions.
Example:
'CR3000 Example for Custom Menu
'Declare Variables for panel temperature, two thermocouples, a [down] counter
‘and a flag to determine if the count is active or not:
Public Tpnl, Ttc(2)
Public Counter, CountFlag
'Declare constants for menu display:
Const Yes = True
Const No = False
'Define DataTable Temp:
DataTable (Temp,1,1000)
DataInterval (0,60,Sec,10)
Average (1,Tpnl,IEEE4,0)
Average (2,Ttc(),IEEE4,0)
EndTable