Campbell Scientific CR6 CR6 Measurement and Control System - Page 187
Public, As String, Const, As Boolean, As Long, DataTable, Sample, EndTable, DataInterval,
![]() |
View all Campbell Scientific CR6 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 187 highlights
Section 7. Installation '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 Const Off = false Public StartFlag As Boolean Public CountDown As Long Public ToggleLED As Boolean 'Assign "On" as Boolean True 'Assign "Off" as Boolean False 'LED Control Process Variable 'LED Count Down Variable 'LED Control Variable 'Define Note DataTable DataTable(Notes,1,-1) Sample(1,SelectNote,String) Sample(1,EnterNote,String) EndTable 'Set up Notes data table, written 'to when a note is accepted 'Sample Pick List Note 'Sample Free Entry Note 'Define temperature DataTable DataTable(TempC,1,-1) DataInterval(0,60,Sec,10) Sample(1,RefTemp,FP2) Sample(1,TCTemp(1),FP2) Sample(1,TCTemp(2),FP2) EndTable 'Set up temperature data table. 'Written to every 60 seconds with: 'Sample of reference temperature 'Sample of thermocouple 1 'Sample of thermocouple 2 'Custom Menu Declarations DisplayMenu("**CUSTOM MENU DEMO**",-3) 'Create Menu; Upon power up, the custom menu 'is displayed. The system menu is hidden 'from the user. SubMenu("") DisplayValue("",Escape) EndSubMenu 'Dummy Sub menu to write a blank line 'a blank line 'End of dummy submenu SubMenu("View Data ") DisplayValue("Ref Temp C",RefTemp) DisplayValue("TC 1 Temp C",TCTemp(1)) DisplayValue("TC 2 Temp C",TCTemp(2)) EndSubMenu 'Create Submenu named PanelTemps 'Item for Submenu from Public 'Item for Submenu - TCTemps(1) 'Item for Submenu - TCTemps(2) 'End of Submenu SubMenu("Make Notes ") MenuItem("Predefined",SelectNote) MenuPick(Cal_Done,Offset_Changed) MenuItem("Free Entry",EnterNote) MenuItem("Accept/Clear",CycleNotes) MenuPick(Accept,Clear) EndSubMenu 'Create Submenu named PanelTemps 'Choose predefined notes Menu Item 'Create pick list of predefined notes 'User entered notes Menu Item SubMenu("Control ") MenuItem("Count to LED",CountDown) MenuPick(15,30,45,60) MenuItem("Manual LED",toggleLED) MenuPick(On,Off) 'Create Submenu named PanelTemps 'Create menu item CountDown 'Create a pick list for CountDown 'Manual LED control Menu Item 187
![](/manual_guide/products/campbell-scientific-cr6-cr6-measurement-control-a476969/187.png)