Programming The Datalogger; Special Information About The Serial I/O Crbasic Commands When Used With The Sdm-Sio1A; Serialopen - Campbell SDM-SIO1A Instruction Manual

Serial input/output module
Hide thumbs Also See for SDM-SIO1A:
Table of Contents

Advertisement

SDM-SIO1A Serial Input/Output Module
4

Programming the datalogger

4.1 Special information about the Serial I/O CRBasic commands when
used with the SDM-SIO1A

4.1.1 SerialOpen

14
(see below). When running in RS-232 mode with a sensor that only sends data
one-way to the datalogger, run the SDM-SIO1A in "receive only mode" as this
does not turn on the output drivers (see Section 4.2.3).
If using RS-232 mode also avoid connecting handshaking lines that are not
required to avoid the unnecessary 2 mA drain per line.
The SDM-SIO1A will start up with its last set of baud rate and protocol settings.
This feature is to protect against brownout conditions where the SDM-SIO1A has
reset but the logger has not. It does however mean that the SDM-SIO1A does not
start up in its lowest power mode. To place the SDM-SIO1A into its lowest power
mode you will need to run the Serialclose() command.
The normal Serial port instructions such as SerialOpen and SerialIn are used with
the SDM-SIO1A. Aside from changes to the COMport and the SerialOpenFormat
parameter a program written for a standard serial port will usually work with the
SDM-SIO1A, providing the timing of the measurements is not very critical.
The following section gives further information about the CRBasic programming
language and how the serial commands are to be used with the SDM-SIO1A.
This section assumes the user has knowledge of the CRBasic programming
language; if not then please contact Campbell Scientific for further assistance.
Only the parameters that need special explanation or where their functionality has
changed are listed below. Any other parameters should be taken as not having
changed. Please refer to the datalogger manual and/or the CRBasic help system
for more guidance.
All internal buffers in the SDM-SIO1A will be flushed when this command is
called resulting in the loss of any data that might have been in them at that point in
time.
COMPort parameter
The 'COMPort' numbers are defined in the 'Address configuration' section (see
Table 3.1). Comport numbers in the range of 32..47 are reserved for use with the
SDM-SIO1A.
BaudRate parameter
Baud rate is used to set up the SDM-SIO1As baud rate as you would with any RS-
232 interface. The SDM-SIO1A does not support automatic baud rate recognition.
Instead setting the rate to a negative number sets the automatic flow control system
(RTS/CTS). This system is discussed in greater detail elsewhere in the document.

Advertisement

Table of Contents
loading

Table of Contents