SDM-INT8 8 Channel Interval Timer
5.1 CRBasic Programming
5.1.1 Instruction SDMINT8
The SDMINT8 instruction is used to program and control the SDMINT8
interval timer module. Description of the instruction follows.
Syntax
SDMINT8 (Dest, SDMAddress, Config8_5, Config4_1, Funct8_5, Funct4_1,
OutputOpt, CaptureTrig, Mult, Offset)
Dest:
Dest is used to specify the array where the results of the instruction are
stored. For all output options except Capture All Events (-nnnn), the Dest
argument should be a one dimensional array with as many elements as there
are programmed INT8 channels. If the Capture All Events output option is
selected, the Dest array must be two dimensional. The magnitude of first
dimension should be set to the number of functions (up to 8), and the
magnitude of the second dimension should be set to at least the maximum
number of events to be captured. The values will be loaded into the array in the
sequence of all of the time ordered events captured from the lowest
programmed channel to the time ordered events of the highest programmed
channel.
SDMAddress:
This parameter is used to define the address of the INT8 with
which to communicate. Valid SDM addresses are 0 through 14 (factory default
is 0). Address 15 is reserved for the SDMTrigger instruction. If the Reps
parameter is greater than 1, the datalogger will increment the SDM address for
each subsequent device that it communicates with. See Section 6.1 for further
detail.
CRBasic dataloggers use base 10 when addressing SDM devices.
Edlog programmed dataloggers (e.g., CR10X, CR23X) used
base 4 for addressing.
NOTE
Config8_5:
The Config8_5 parameter is a four-digit code used to configure
channels 5 through 8 on the INT8. Each input channel can be configured for
either high or low level voltage inputs and for rising or falling edges. The
digits represent the channels in descending order from left to right (e.g., 8 7 6
5). As an example, the code 0303 would program channels 8 and 6 to capture
the rising edge of a high level voltage, and channels 5 and 7 to capture the
falling edge of a low level voltage. See Section 2 for information about the
specification requirements of high and low level voltage signals.
Code Description
0
High level, rising edge
1
High level, falling edge
2
Low level, rising edge
3
Low level falling edge
Config4_1:
The Config4_1 parameter is a four-digit code used to configure
channels 5 through 8 on the INT8. It is identical in function to Config8_5. The
digits represent the channels in descending order from left to right (e.g., 4 3 2
1).
6