Section 7. Installation
Figure 71. HyperTerminal Text-Capture File Example
Engage text capture by clicking on
Transfer
|
Capture Text
|
Browse
, select the
file, and then click
OK
.
7.9.17.6.4 Serial I/O Example II
CRBasic example
Measure Sensors / Send RS-232 Data
(p. 259)
illustrates a use of
CR1000 serial I/O features.
Example — An energy company has a large network of older CR510 dataloggers
into which new CR1000 dataloggers are to be incorporated. The CR510
dataloggers are programmed to output data in the legacy Campbell Scientific
Printable ASCII format, which satisfies requirements of the customer's data-
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. CR1000 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. 259)
imports
and exports serial data with the CR1000 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 CR1000 program if
the
SerialOpen()
baud rate matches that of the
datalogger support software
(p. 654).
However, two-way PakBus
®
communications will cause the CR1000 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 CR1000 RS-232 port with
HyperTerminal
as described in the section
Configure HyperTerminal
(p. 256).
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.
259
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: ......