Section 9. Programming
84
Scan () determines how frequently instructions in the program are executed.
Scan has two parameters:
•
Interval is the interval between scans.
•
Units is the time unit for the interval. Interval is 1sec <= Interval <= 1 day.
CRBASIC EXAMPLE 11.
BeginProg / Scan / NextScan / EndProg Syntax
BeginProg
Scan (1,Sec)
Therm109 (TempC(),2,1,Ex1,1.0,0)
CallTable Temp
NextScan
EndProg
9.9 Instructions
In addition to BASIC syntax, additional instructions are included in CRBASIC
to facilitate measurements and store data.
CRBASIC Programming Instructions
(p. 93) contains a comprehensive list of these instructions.
9.9.1
Measurement and Data Storage Processing
CRBASIC instructions have been created for making measurements and storing
data. Measurement instructions set up CR200(X) hardware to make
measurements and store results in variables. Data storage instructions process
measurements into averages, maxima, minima, standard deviation, FFT, etc.
Each instruction is a keyword followed by a series of informational parameters
needed to complete the procedure. For example, the instruction for measuring
CR200(X) panel temperature is:
ExciteV (ExChan,ExmV)
"ExciteV" is the keyword. Two parameters follow:
ExChan
, the excitation
channel number to which the voltage should be applied; and
ExmV
, is the
excitation, in millivolts, to apply to the sensor. The syntax for applying 5000
millivolts to a sensor through excitation channel number 1 is shown in
CRBASIC EXAMPLE. Measurement Instruction Syntax
(p. 84).
CRBASIC EXAMPLE 12.
Measurement Instruction Syntax
ExciteV (ExChan,ExmV))
Summary of Contents for CR200
Page 32: ...Section 2 Quickstart Tutorial 22 ...
Page 45: ...Section 3 Overview 35 3 3 Specifications ...
Page 46: ...Section 3 Overview 36 ...
Page 58: ...Section 4 Sensor Support 48 ...
Page 62: ...Section 5 Measurement and Control Peripherals 52 ...
Page 78: ...Section 8 CR200 X Configuration 68 ...
Page 102: ...Section 9 Programming 92 ...
Page 138: ...Section 11 Programming Resource Library 128 ...
Page 156: ...Section 16 Support Software 146 ...
Page 160: ...Section 17 Care and Maintenance 150 ...
Page 167: ...Section 18 Troubleshooting 157 18 3 3 2 Charging Circuit Test Solar Panel ...
Page 168: ...Section 18 Troubleshooting 158 18 3 3 3 Charging Circuit Test Transformer ...
Page 169: ...Section 18 Troubleshooting 159 18 3 3 4 Adjusting Charging Circuit Voltage ...
Page 170: ...Section 18 Troubleshooting 160 ...
Page 184: ...Appendix A Glossary 14 ...
Page 190: ...Appendix B Status Table and Settings 20 ...
Page 192: ...Appendix C Serial Port Pin Outs 22 ...
Page 211: ......