Program examples, 1 crbasic program example – Campbell Scientific SDM-INT8 8-Channel Interval Timer User Manual

Page 26

Advertising
background image

SDM-INT8 8 Channel Interval Timer

When using the Capture All Events Option (no averaging), the data are
directed to Final Storage of the datalogger rather than Input locations. The
first execution of Instruction 101 will program the INT8. Subsequent
executions of Instruction 101 with the Output Flag set will output all events to
Final Storage. If the Output Flag is not set, the INT8 will be reinitialized with
out returning any data. The output returned for each programmed channel will
be all events that have occurred since the last execution of Instruction 101.
Each channel will have a unique Array ID. If other Output Processing
Instructions precede Instruction 101, the first channel's data will be grouped
with the previous Final Storage data (i.e. same Array ID.). This first Array ID
will be incremented by one for each additional programmed channel.

Output for the Test Memory Option is a single value returned to the specified
input location.

7. Program Examples

These examples are given to demonstrate concepts. The starting conditions for
each example are followed by a datalogger program. These examples are not
to be used verbatim.

7.1 CRBasic Program Example

Measure 2 Wind Sentry Anemometer (03101) on CR1000 pulse channel P1
and P2 and measure 5 Wind Sentry Anemometer (03101) connected to the
SDM INT8 channel 1 through channel 5. See Section 5.1.1 for a description of
the CR1000 “SDMINT8” instruction parameters.

Wiring

CR1000 SDMINT8
12 V

12 V

Gnd Gnd
C1 C1
C2 C2
C3 C3

Sensor Wiring

SDM-INT8

CH1

Black - WS #1

CH2

Black - WS #2

CH3

Black - WS #3

CH4

Black - WS #4

CH5

Black - WS #5

All white and clear wires are
connected to ground.
Note: Set/check the SDM
Address on this module.

20

Advertising