![Campbell CR3000 Micrologger Скачать руководство пользователя страница 204](http://html1.mh-extra.com/html/campbell/cr3000-micrologger/cr3000-micrologger_operators-manual_489090204.webp)
Section 7. Installation
204
of information (eight states with one bit per state). To store the same information
using a 32 bit BOOLEAN data type, 256 bits are required (8 states * 32 bits per
state).
When programming with BOOL8 data type, repetitions in the output processing
DataTable() instruction must be divisible by two, since an odd number of bytes
cannot be stored. Also note that when the CR3000 converts a LONG or FLOAT
data type to BOOL8, only the least significant eight bits of the binary equivalent
are used, i.e., only the binary representation of the decimal integer modulo divide
(p. 545)
256 is used.
Example:
Given: LONG integer 5435
Find: BOOL8 representation of 5435
Solution:
5435 / 256 = 21.2304687
0.2304687 * 256 = 59
Binary representation of 59 = 00111011 (CR3000 stores
these bits in reverse order)
When datalogger support software
(p. 90)
retrieves the BOOL8 value, it splits it
apart into eight fields of -1 or 0 when storing to an ASCII file. Consequently,
more memory is required for the ASCII file, but CR3000 memory is conserved.
The compact BOOL8 data type also uses less comms band width when
transmitted.
CRBasic example Bool8 and Bit Shift Operators
(p. 206)
programs the CR3000 to
monitor the state of 32 "alarms" as a tutorial exercise. The alarms are toggled by
manually entering zero or non-zero (e.g., 0 or 1) in each public variable
representing an alarm as shown in figure Alarms Toggled in Bit Shift Example
(p.
Samples of the four public variables FlagsBool8(1), FlagsBool8(2),
FlagsBool8(3), and FlagsBool8(4) are stored in data table Bool8Data as four
one-byte values. However, as shown in figure Bool8 Data from Bit Shift
Example (Numeric Monitor)
(p. 205),
when viewing the data table in a numeric
monitor
(p. 547),
data are conveniently translated into 32 values of True or False.
In addition, as shown in figure Bool8 Data from Bit Shift Example (PC Data File)
(p. 206),
when datalogger support software
(p. 90)
stores the data in an ASCII file, it is
stored as 32 columns of either -1 or 0, each column representing the state of an
alarm. You can use variable aliasing
(p. 148)
in the CRBasic program to make the
data more understandable.
Содержание CR3000 Micrologger
Страница 2: ......
Страница 3: ......
Страница 4: ......
Страница 6: ......
Страница 30: ......
Страница 34: ......
Страница 36: ......
Страница 96: ......
Страница 200: ...Section 7 Installation 200 FIGURE 42 Running Average Frequency Response FIGURE 43 Running Average Signal Attenuation ...
Страница 485: ...Section 8 Operation 485 8 11 2 Data Display FIGURE 110 Keyboard and Display Displaying Data ...
Страница 487: ...Section 8 Operation 487 FIGURE 112 CR1000KD Real Time Custom ...
Страница 488: ...Section 8 Operation 488 8 11 2 3 Final Storage Data FIGURE 113 Keyboard and Display Final Storage Data ...
Страница 489: ...Section 8 Operation 489 8 11 3 Run Stop Program FIGURE 114 Keyboard and Display Run Stop Program ...
Страница 491: ...Section 8 Operation 491 FIGURE 116 Keyboard and Display File Edit ...
Страница 495: ...Section 8 Operation 495 Low power standby whenever possible Low power bus sets bus and modules to low power ...
Страница 496: ......
Страница 502: ......
Страница 564: ...Section 11 Glossary 564 FIGURE 126 Relationships of Accuracy Precision and Resolution ...
Страница 566: ......
Страница 594: ......
Страница 598: ......
Страница 600: ......
Страница 602: ......
Страница 624: ......
Страница 642: ......
Страница 643: ......