Section 10. CRBASIC Programming Instructions
105
10.8 Serial Input / Output
Sends the values from program variables or other characters out through a
communications port.
Syntax
Print (PrintPort, PrintBaud, PrintParams)
SerialInput
Reads a serial sensor connected to the CR200(X)'s RS232 port.
Syntax
SerialInput (Dest, Max_Values, Termination_Char,
FilterString)
10.9 Peer-to-Peer PakBus Communications
Read More!
See
PakBus Overview
(p. 133) for more information. Also see
Campbell Scientific PakBus® Networking Guide available at
www.campbellsci.com
.
Peer-to-peer PakBus® instructions enable the datalogger to communicate with
other PakBus® devices. Instructions specify a COM port and a PakBus®
address. If the route to the device is not yet known, a direct route through the
specified COM port is first tried.
The PakBus® Address is a variable that can be used in CRBASIC like any other
variable.
The ComPort specifies the communications port that will be used to
communicate with the host device. Enter one of the following commands:
•
RF
•
RS232
In general, PakBus® instructions write a result code to a variable indicating
success or failure. Success sets the result code to 0. Otherwise, the result code
increments. If communication succeeds but an error is detected, a negative result
code is set. See CRBASIC Editor Help for an explanation of error codes.
The Timeout parameter in these instructions is in units of 0.01 seconds. If 0 is
used, then the default timeout defined by the time of the best route is used. Use
PakBusGraph "Hop Metrics" to calculate this time.
These communication instructions wait for a response or timeout before the
program moves on to the next instruction.
Summary of Contents for CR200
Page 32: ...Section 2 Quickstart Tutorial 22 ...
Page 45: ...Section 3 Overview 35 3 3 Specifications ...
Page 46: ...Section 3 Overview 36 ...
Page 58: ...Section 4 Sensor Support 48 ...
Page 62: ...Section 5 Measurement and Control Peripherals 52 ...
Page 78: ...Section 8 CR200 X Configuration 68 ...
Page 102: ...Section 9 Programming 92 ...
Page 138: ...Section 11 Programming Resource Library 128 ...
Page 156: ...Section 16 Support Software 146 ...
Page 160: ...Section 17 Care and Maintenance 150 ...
Page 167: ...Section 18 Troubleshooting 157 18 3 3 2 Charging Circuit Test Solar Panel ...
Page 168: ...Section 18 Troubleshooting 158 18 3 3 3 Charging Circuit Test Transformer ...
Page 169: ...Section 18 Troubleshooting 159 18 3 3 4 Adjusting Charging Circuit Voltage ...
Page 170: ...Section 18 Troubleshooting 160 ...
Page 184: ...Appendix A Glossary 14 ...
Page 190: ...Appendix B Status Table and Settings 20 ...
Page 192: ...Appendix C Serial Port Pin Outs 22 ...
Page 211: ......