Specifications
CR3000 Overview
OV4.5 Programming using the CRBasic Program Editor
Those users who are moving from the Edlog Program Editor to the CRBasic
Program Editor may find Short Cut to be an excellent way to learn CRBasic.
First create a program using Short Cut, then open the file with CRBasic to see
how Short Cut created the program. The program file listed below is the Short
Cut file QuickStart.CR3 from the tutorial after being imported into the
CRBasic editor.
See Section 4 for information on the CRBasic programming.
'CR3000
'Created by SCWIN (2.5)
'Declare Variables and Units
Public Batt_Volt
Public PTemp_C
Public Temp_C
Units Batt_Volt=Volts
Units PTemp_C=Deg C
Units Temp_C=Deg C
'Define Data Tables
DataTable(OneMin,True,-1)
DataInterval(0,1,Min,10)
Average(1,Batt_Volt,FP2,False)
Average(1,PTemp_C,FP2,False)
Average(1,Temp_C,FP2,False)
EndTable
'Main Program
BeginProg
Scan(1,Sec,1,0)
'Default Datalogger Battery Voltage measurement Batt_Volt:
Battery(Batt_Volt)
'Wiring Panel Temperature measurement PTemp_C:
PanelTemp(PTemp_C,_60Hz)
'Type T (copper-constantan) Thermocouple measurements Temp_C:
TCDiff(Temp_C,1,mV20C,1,TypeT,PTemp_C,True,0,_60Hz,1,0)
'Call Data Tables and Store Data
CallTable(OneMin)
NextScan
EndProg
OV-33