![background image](http://html1.mh-extra.com/html/campbell/cr200/cr200_instruction-manual_489088094.webp)
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))
Содержание CR200
Страница 32: ...Section 2 Quickstart Tutorial 22 ...
Страница 45: ...Section 3 Overview 35 3 3 Specifications ...
Страница 46: ...Section 3 Overview 36 ...
Страница 58: ...Section 4 Sensor Support 48 ...
Страница 62: ...Section 5 Measurement and Control Peripherals 52 ...
Страница 78: ...Section 8 CR200 X Configuration 68 ...
Страница 102: ...Section 9 Programming 92 ...
Страница 138: ...Section 11 Programming Resource Library 128 ...
Страница 156: ...Section 16 Support Software 146 ...
Страница 160: ...Section 17 Care and Maintenance 150 ...
Страница 166: ...Section 18 Troubleshooting 156 18 3 3 Diagnosis and Fix Procedures 18 3 3 1 Battery Voltage Test ...
Страница 167: ...Section 18 Troubleshooting 157 18 3 3 2 Charging Circuit Test Solar Panel ...
Страница 168: ...Section 18 Troubleshooting 158 18 3 3 3 Charging Circuit Test Transformer ...
Страница 169: ...Section 18 Troubleshooting 159 18 3 3 4 Adjusting Charging Circuit Voltage ...
Страница 170: ...Section 18 Troubleshooting 160 ...
Страница 184: ...Appendix A Glossary 14 ...
Страница 190: ...Appendix B Status Table and Settings 20 ...
Страница 192: ...Appendix C Serial Port Pin Outs 22 ...
Страница 211: ......