![Campbell CR9000 Instruction Manual Download Page 75](http://html1.mh-extra.com/html/campbell/cr9000/cr9000_instruction-manual_489197075.webp)
Section 4. CRBasic – Native Language Programming
4-3
Program
The program section defines the action of datalogging
Set scan interval
The scan sets the interval for a series of measurements
Measurements
Enter the measurements to make
Processing
Enter any additional processing with the measurements
Call Data Table(s)
The Data Table must be called to process output data
Initiate controls
Check measurements and Initiate controls if necessary
NextScan
Loop back (and wait if necessary) for the next scan
End Program
4.3 Example Program
Const RevDiff 1
Const Del 0
Const Integ 0
Const Mult 1
Const Offset 0
Public RefTemp
Public DIM TC(6)
Units RefTemp=degC
Units TC=degC
DataTable (Temp,1,2000)
DataInterval(0,10,msec,10)
Average(1,RefTemp,fp2,0)
Average(6,TC(),fp2,0)
EndTable
BeginProg
Scan(1,MSEC,0,0)
ModuleTemp(RefTemp,1,4,0)
TCDiff(TC(),6,mV50,4,1,TypeT,RefTemp,RevDiff,Del,Integ,Mult,Offset)
CallTable
Temp
NextScan
EndProg
Scan loop
Declare public variables ,
dimension array, and
declare units.
Declare constants
Define Data Table
Declarations
Measure
Call Data Table
Summary of Contents for CR9000
Page 6: ...CR9000 Table of Contents iv This is a blank page ...
Page 22: ...CR9000 Overview OV 16 This is a blank page ...
Page 26: ...Section 1 Installation 1 4 CR9000 FIGURE 1 1 3 CR9000 Battery Pack ...
Page 72: ...Section 3 CR9000 Measurement Details 3 28 This is a blank page ...
Page 88: ...Section 5 Program Declarations 5 6 This is a blank page ...
Page 217: ...This is a blank page ...