Section 7. Installation
Table 11.
Data Types in Variable Memory
Name
Command
Description
Word Size
(Bytes)
Notes
Resolution / Range
String
As String
ASCII string
Minimum: 3
(4 with null
terminator)
Default: 24
Maximum:
limited only
to the size of
available
CR1000
memory.
See caution.
1
String size is defined by the CR1000
operating system and CRBasic
program.
When converting from
STRING
to
FLOAT
, numerics at the beginning
of a string convert, but conversion
stops when a non-numeric is
encountered. If the string begins with
a non-numeric, the
FLOAT
will be
NAN
. If the string contains multiple
numeric values separated by non-
numeric characters, the
SplitStr()
instruction can be used to parse out
the numeric values. See the sections
String Operations
(p. 282)
and
Serial
I/O
(p. 245).
Unless declared otherwise, string size is 24
bytes or characters. String size is allocated
in multiples of four bytes; for example,
String * 25
,
String * 26
,
String * 27
, and
String * 28
allocate 28 bytes (27 usable).
Minimum string size is 4 (3 usable). See
CRBasic Editor Help
for more information.
Maximum length is limited only by
available CR1000 memory.
1
CAUTION When using a very long string in a variable declared
Public
, the operations of
datalogger support software
(p. 654)
will frequently transmit
the entire string over the communication link. If communication bandwidth is limited, or if communications are paid for by they byte, declaring the
variable
Dim
may be preferred.
Table 12.
Data Types in Final-Data Memory
Name
Argument
Description
Word Size
(Bytes)
Notes
Resolution / Range
FP2
FP2
Campbell Scientific
floating point
2
Default final-memory data type. Use
FP2
for stored data requiring 3 or 4
significant digits. If more significant
digits are needed, use
IEEE4
or an
offset.
Zero
Minimum
Maximum
0.000
±0.001
±7999.
Absolute
Value
Decimal Location
0 – 7.999
X.XXX
8 – 79.99
XX.XX
80 – 799.9
XXX.X
800 – 7999.
XXXX.
IEEE4
IEEE4
or
Float
IEEE floating point
4
IEEE Standard 754
±
1.4E–45 to
±
3.4E38
Long
Long
Signed integer
4
Use to store count data in the range of
±
2,147,483,648
Speed: integer math is faster than
floating point math.
Resolution: 32 bits. Compare to 24
bits in IEEE4.
Suitable for storing whole numbers,
counting number, and integers in
final-data memory. If storing non-
integers, the fractional portion of the
value is lost.
–2,147,483,648 to +2,147,483,647
131
Summary of Contents for CR1000
Page 2: ......
Page 4: ......
Page 6: ......
Page 32: ......
Page 36: ......
Page 38: ......
Page 40: ......
Page 60: ...Section 4 System Quickstart Figure 16 PC200W View Line Graph 60 ...
Page 96: ......
Page 98: ...98 ...
Page 302: ......
Page 453: ...Section 8 Operation Figure 115 Using the Keyboard Display 453 ...
Page 456: ...Section 8 Operation Figure 118 Real Time Custom 456 ...
Page 457: ...Section 8 Operation 8 8 1 3 Final Memory Tables Figure 119 Final Memory Tables 457 ...
Page 458: ...Section 8 Operation 8 8 2 Run Stop Program Figure 120 Run Stop Program 458 ...
Page 460: ...Section 8 Operation Figure 122 File Edit 460 ...
Page 461: ...Section 8 Operation 8 8 4 PCCard Memory Card Display Figure 123 PCCard CF Card Display 461 ...
Page 478: ......
Page 506: ......
Page 536: ......
Page 636: ......
Page 642: ......
Page 644: ......
Page 676: ......
Page 677: ......