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
Содержание CR9000
Страница 6: ...CR9000 Table of Contents iv This is a blank page ...
Страница 22: ...CR9000 Overview OV 16 This is a blank page ...
Страница 26: ...Section 1 Installation 1 4 CR9000 FIGURE 1 1 3 CR9000 Battery Pack ...
Страница 72: ...Section 3 CR9000 Measurement Details 3 28 This is a blank page ...
Страница 88: ...Section 5 Program Declarations 5 6 This is a blank page ...
Страница 217: ...This is a blank page ...