Section 10. CRBASIC Programming Instructions
97
If ... Then ... Else … ElseIf ... EndIf
Allows conditional execution, based on the evaluation of an expression. Else is
optional. ElseIf is optional (EndSelect and EndIf call the same function).
Syntax
If [condition] Then [thenstatements] Else [elsestatements]
-or-
If [condition 1] Then
[then statements]
ElseIf [condition 2] Then
[elseif then statements]
Else
[else statements]
EndIf
InterruptSequence
Specifies code to run when an interrupt condition occurs.
Syntax
InterruptSequence
LoggerIdentify
Sets an identification string in the datalogger that will be returned when another
string is sent to the datalogger.
Syntax
LoggernetIdentify (RequestString",ReturnString")
Scan … NextScan
Establishes the program scan rate. ExitScan and ContinueScan are optional.
Syntax
Scan (Interval, Units)
...
Next Scan
...
ContinueScan
...
Next Scan
ScanLEDOff
Turns off the LED on the datalogger's front case that indicates a program scan is
occurring.
Select Case … Case … Case Is … Case Else … EndSelect
Executes one of several statement blocks depending on the value of an
expression. CaseElse is optional. (EndSelect and EndIf call the same CR200(X)
function).
Syntax
Select Case testexpression
Case [expression 1]
[statement block 1]
Case [expression 2]
[statement block 2]
Case Is [expression fragment]
Case Else
[statement block 3]
EndSelect
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: ......