04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Section 7. Installation<br />

Figure 67: Custom menu example — control-LED pick list<br />

Figure 68: Custom menu example — control-LED Boolean pick list<br />

Note See figures Custom Menu Example — Home Screen (p. 194) through Custom<br />

Menu Example — Control LED Boolean Pick List (p. 196) in reference to the<br />

following CRBasic example Custom Menus (p. 196).<br />

CRBasic Example 38.<br />

'Custom Menu Example<br />

Custom Menus<br />

'Declarations supporting View Data menu item<br />

Public RefTemp<br />

Public TCTemp(2)<br />

'Delarations supporting blank line menu item<br />

Const Escape = "Hit Esc"<br />

'Reference Temp Variable<br />

'Thermocouple Temp Array<br />

'Word indicates action to exit dead end<br />

'Declarations supporting Enter Notes menu item<br />

Public SelectNote As String * 20<br />

'Hold predefined pick list note<br />

Const Cal_Done = "Cal Done"<br />

'Word stored when Cal_Don selected<br />

Const Offst_Chgd = "Offset Changed"<br />

'Word stored when Offst_Chgd selected<br />

Const Blank = ""<br />

'Word stored when blank selected<br />

Public EnterNote As String * 30<br />

'Variable to hold free entry note<br />

Public CycleNotes As String * 20<br />

'Variable to hold notes control word<br />

Const Accept = "Accept"<br />

'Notes control word<br />

Const Clear = "Clear"<br />

'Notes control word<br />

'Declarations supporting Control menu item<br />

Const On = true<br />

'Assign "On" as Boolean True<br />

196

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!