Crbasic example 38. custom menus – Campbell Scientific CR3000 Micrologger User Manual

Page 201

Advertising
background image

Section 7. Installation

201

 

Figure 69: Custom menu example — control-LED pick list

Figure 70: Custom menu example — control-LED Boolean pick list

Note See figures Custom Menu Example — Home Screen

(p. 199)

through Custom

Menu Example — Control LED Boolean Pick List

(p. 201)

in reference to the

following CRBasic example Custom Menus

(p. 201).

CRBasic Example 38. Custom Menus 

'Custom Menu Example

'Declarations supporting View Data menu item

Public

RefTemp

'Reference Temp Variable

Public

TCTemp(2)

'Thermocouple Temp Array

'Delarations supporting blank line menu item

Const

Escape = "Hit Esc"

'Word indicates action to exit dead end

'Declarations supporting Enter Notes menu item

Public

SelectNote

As String

* 20

'Hold predefined pick list note

Const

Cal_Done = "Cal Done"

'Word stored when Cal_Don selected

Const

Offst_Chgd = "Offset Changed"

'Word stored when Offst_Chgd selected

Const

Blank = ""

'Word stored when blank selected

Public

EnterNote

As String

* 30

'Variable to hold free entry note

Public

CycleNotes

As String

* 20

'Variable to hold notes control word

Const

Accept = "Accept"

'Notes control word

Const

Clear = "Clear"

'Notes control word

'Declarations supporting Control menu item

Const

On = true

'Assign "On" as Boolean True

Advertising