Section 7. Installation
320
acquisition network. The network administrator prefers to synchronize the
CR510 clocks from a central computer using the legacy Campbell Scientific C
command. The CR510 datalogger is hard-coded to output printable ASCII and
recognize the C command. CR3000 dataloggers, however, require custom
programming to output and accept these same ASCII strings. A similar program
can be used to emulate CR10X and CR23X dataloggers.
Solution — CRBasic example Measure Sensors / Send RS-232 Data
(p. 320)
imports
and exports serial data with the CR3000 RS-232 port. Imported data are expected
to have the form of the legacy Campbell Scientific time set C command. Exported
data has the form of the legacy Campbell Scientific Printable ASCII format.
Note The nine-pin RS-232 port can be used to download the CR3000
program if the SerialOpen() baud rate matches that of the datalogger
support software
(p. 614).
However, two-way PakBus
®
communications will
cause the CR3000 to occasionally send unsolicited PakBus
®
packets out
the RS-232 port for at least 40 seconds after the last PakBus
®
communication. This will produce some "noise" on the intended data-
output signal.
Monitor the CR3000 RS-232 port with HyperTerminal as described in the section
Configure HyperTerminal
(p. 316).
Send C-command file to set the clock
according to the text in the file.
Note The HyperTerminal file will not update automatically with actual
time. The file only simulates a clock source for the purposes of this
example.
Measure Sensors / Send RS-232 Data
'This program example demonstrates the import and export serial data via the CR3000 RS-232
'port. Imported data are expected to have the form of the legacy Campbell Scientific
'time set C command:
' [YR:DAY:HR:MM:SS]C
'Exported data has the form of the legacy Campbell Scientific Printable ASCII format:
' 01+0115. 02+135 03+00270 04+7999 05+00138 06+07999 07+04771
'Declarations
'Visible Variables
Public
StationID
Public
KWH_In
Public
KVarH_I
Public
KWHHold
Public
KVarHold
Public
KWHH
Public
KvarH
Public
InString
As String
* 25
Public
OutString
As String
* 100
Содержание 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: ......