04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix A. CRBasic Programming Instructions<br />

VoiceSpeak<br />

Defines the voice string that should be spoken by the voice modem.<br />

Syntax<br />

VoiceSpeak("String" + Variable + "String"…, Precision)<br />

A.10 Custom Keyboard and Display Menus<br />

Read More! More information concerning use of the keyboard is found in<br />

sections Using the Keyboard Display (p. 399) and Read More! To implement<br />

custom menus, see CRBasic Editor Help for the DisplayMenu() instruction.<br />

CRBasic programming in the <strong>CR1000</strong> facilitates creation of custom menus for the<br />

external keyboard / display.<br />

Figure Custom Menu Example (p. 70) shows windows from a simple custom menu<br />

named DataView. DataView appears as the main menu on the keyboard display.<br />

DataView has menu item Counter, and submenus PanelTemps, TCTemps and<br />

System Menu. Counter allows selection of one of four values. Each submenu<br />

displays two values from <strong>CR1000</strong> memory. PanelTemps shows the <strong>CR1000</strong><br />

wiring-panel temperature at each scan, and the one-minute sample of panel<br />

temperature. TCTemps displays two thermocouple temperatures..<br />

Custom menus are constructed with the following syntax before the BeginProg<br />

instruction.<br />

DisplayMenu("MenuName", AddToSystem)<br />

MenuItem("MenuItemName", Variable)<br />

MenuPick(Item1, Item2, Item3...)<br />

DisplayValue("MenuItemName", tablename.fieldname)<br />

SubMenu(MenuName)<br />

MenuItem("MenuItemName", Variable)<br />

EndSubMenu<br />

EndMenu<br />

BeginProg<br />

[program body]<br />

EndProg<br />

DisplayMenu / EndMenu<br />

Marks the beginning and ending of a custom menu.<br />

Syntax:<br />

DisplayMenu("MenuName", AddToSystem)<br />

[menu definition]<br />

EndMenu<br />

MenuItem<br />

Defines the name and associated measurement value for an item in a custom<br />

menu.<br />

Syntax:<br />

MenuItem("MenuItemName", Variable)<br />

DisplayLine<br />

Displays a full line of read‐only text in a custom menu.<br />

Syntax:<br />

DisplayLine(Value)<br />

508

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

Saved successfully!

Ooh no, something went wrong!