Campbell-scientific CR800 and CR850 Measurement and Control Systems Uživatelský manuál Strana 486

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 566
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 485
Appendix A. CRBasic Programming Instructions
486
VoiceSpeak
Definesthevoicestringthatshouldbespokenbythevoicemodem.
Syntax
VoiceSpeak("String" + Variable + "String"…, Precision)
A.10 Custom Keyboard and Display Menus
Read More! More information concerning use of the keyboard is found in
sections Using the Keyboard Display (p. 382) and Read More! To implement
custom menus, see CRBasic Editor Help for the DisplayMenu() instruction.
CRBasic programming in the CR800 facilitates creation of custom menus for the
external keyboard / display.
Figure Custom Menu Example
(p. 70) shows windows from a simple custom menu
named DataView. DataView appears as the main menu on the keyboard display.
DataView has menu item Counter, and submenus PanelTemps, TCTemps and
System Menu. Counter allows selection of one of four values. Each submenu
displays two values from CR800 memory. PanelTemps shows the CR800 wiring-
panel temperature at each scan, and the one-minute sample of panel temperature.
TCTemps displays two thermocouple temperatures.
.
Custom menus are constructed with the following syntax before the BeginProg
instruction.
DisplayMenu("MenuName", AddToSystem)
MenuItem("MenuItemName", Variable)
MenuPick(Item1, Item2, Item3...)
DisplayValue("MenuItemName", tablename.fieldname)
SubMenu(MenuName)
MenuItem("MenuItemName", Variable)
EndSubMenu
EndMenu
BeginProg
[program body]
EndProg
DisplayMenu/EndMenu
Marksthebeginningandendingofacustommenu.
Syntax:
DisplayMenu("MenuName", AddToSystem)
[menu definition]
EndMenu
MenuItem
Definesthenameandassociatedmeasurementvalueforaniteminacustom
menu.
Syntax:
MenuItem("MenuItemName", Variable)
DisplayLine
Displaysafulllineofreadonlytextinacustommenu.
Syntax:
DisplayLine(Value)
Zobrazit stránku 485
1 2 ... 481 482 483 484 485 486 487 488 489 490 491 ... 565 566

Komentáře k této Příručce

Žádné komentáře