Specifications
Section 11. Programming Resource Library
11-32
have never been greater than a few degrees.
The final form is arrived at by converting from radians to degrees (57.296
degrees/radian).
2/12/1
)S/U1(81))S/U1(2()u( −=−=Θσ
11.6 CR1000KD Custom Menus
This section is not yet available.
11.7 Conditional Compilation
CRBASIC allows definition of conditional code that the compiler interprets
and includes at compile time. This feature is useful when the same program
code is to be used across multiple datalogger types, e.g., in both the CR1000
and CR3000. Pseudocode for this feature can be written as...
#Const Destination = “CR3000”
#If Destination = “CR3000” Then
<code specific to the CR3000>
#ElseIf Destination = “CR1000” Then
<code specific to the CR1000>
#Else
<code to include otherwise>
#EndIf
which allows the simple change of a constant to include the appropriate
measurement instructions.
All CRBASIC dataloggers accept program or Include() files with a .DLD
extension, which makes it possible to write a single file with conditional
compile statements to run in multiple loggers.
Code EXAMPLE 11.7-1 shows a sample program which demonstrates the use
o
f conditional compilation features in CRBASIC using the #If, #ElseIf, #Else
and #EndIf commands. Within the program are examples showing the use of
the predefined LoggerType constant and associated predefined logger constants
(CR3000, CR1000 etc...). The program can be loaded into a CR3000 / CR1000
/ CR800 series logger.