SDM-CD16AC 16 Channel AC/DC Controller
8
FIGURE 5-1. Addressing
6. Data Logger Programming
In CRBasic, the
SDMCD16AC()
instruction is used to control the SDM-
CD16AC. Data loggers that are programmed with CRBasic include the CR6,
CR800, CR850, CR1000X, CR1000, CR3000, CR5000, and CR9000(X). The
SDMSpeed()
instruction should also be used if the cable length is longer than
20 ft.
6.1 CRBasic Programming
6.1.1 SDMCD16AC() Instruction
Syntax
SDMCD16AC
Remarks
A port on an SDM-CD16AC is enabled/disabled (turned on or off) by sending
a value to it using the
SDMCD16AC()
instruction. A non-zero value will
enable the port; a zero value disables it. The values to be sent to the CD16AC
are held in the Source array.
The
SDMCD16AC()
instruction has the following parameters:
Source:
The
Source
parameter is an array which holds the values that will be
sent to the SDM-CD16AC to enable/disable its ports. An SDM-CD16AC has
16 ports; therefore, the source array must be dimensioned to 16 times the
number of repetitions (the number of SDM-CD16AC devices to be controlled).
As an example, with the array CDCtrl(32), the value held in CDCtrl(1) will be
sent to port 1, the value held in CDCtrl(2) will be sent to port 2, etc. The value
held in CDCtrl(32) would be sent to port 16 on the second SDM-CD16AC.