beautypg.com

Campbell Scientific CR10X Measurement and Control System User Manual

Page 145

background image

SECTION 9. INPUT/OUTPUT INSTRUCTIONS

9-13

and I4 the offset (to the raw data) determined by
the first calibration. I2 is a fixed value
determined by the input range selected. I5
through In are the raw measurement data.
Thus, the value of the first measurement sent
(M1) in millivolts is:

M

1

= I

2

/I

3

(I

5

- I

4

)

The measurement data are sent in the order
that the measurements are made (i.e., the first
measurement for each channel, then the
second measurement for each channel, etc.).

NOTE: When the raw serial data option is
selected, the calibration values are for
conversion to millivolts only. Parameters 11
and 12 are ignored.

SCAN INTERVAL
Instruction 23 has its own scan interval
independent of the execution interval of the
program table in which it resides. The
resolution of the clock timing the execution
interval is 813 nanoseconds. This scan interval,
entered in Parameter 5 (in milliseconds), is the
time between each scan of the specified
channels (i.e., if 4 channels are specified in
Parameter 1, and the scan interval is 5 ms, then
the 4 measurements will be repeated every 5
ms). The minimum time that is allowed per
measurement is 1.333 ms. The maximum time
that is allowed per measurement is 50 ms. If
the scan interval entered does not allow this
much time per measurement (e.g., if with 4
reps, an interval less than 5.332 ms is entered),
an error code, E 61, will be displayed when the
program is compiled. When sending data to the
serial port, the rate at which the data can be
transferred may limit the scan interval (e.g., at
9600 baud the minimum time per measurement
is 2.2 ms).

Burst/Telecommunications Considerations

If a Burst measurement sequence is in
progress, raising the datalogger's ring line will
abort the Burst sequence. Peripherals which
raise the ring line are modems (i.e., RF,
Telephone, Short Haul, MD9, SC32A) or the
CR10KD.

If the Burst Measurement Instruction is
encountered while telecommunications is in
progress, the destination of the data determines
whether or not the instruction is executed:

Burst data sent to input locations

If a CR10X already in Telecommunications
mode executes a Burst instruction specifying
that Burst data be sent to input locations, all
telecommunication activity will be suspended.
After the Burst trigger condition is met and all
Burst measurements made,
telecommunications activity can resume.

Burst data sent to Serial I/O Port

If the Burst instruction specifies that Burst data
be sent to the serial port (i.e., Storage Module),
CR10X program execution will pause until the
Telecommunication mode is exited. During this
pause telecommunications (i.e., view input
locations in the Monitor Mode, etc.) can
continue. No Burst measurements are made
while in telecommunications and no Burst data is
sent to the serial port. After telecommunications
has ended, datalogger program execution will
resume as if the Burst instruction were just
executed.

NOTE: Instruction 23 can be aborted by
pressing any key on the CR10KD Keyboard
Display.

PARAM.

DATA

NUMBER

TYPE

DESCRIPTION

01:

2

Repetitions (no. of
channels)

02:

2

Range code (13-15)

03:

2

Single-ended or
differential channel for
first analog
measurements

04:

4

Option, 4 digit code
ABCD
A

Trigger
0 - Trigger on 1st
analog channel
1 - Digital trigger
on Control Port #1
2 Same as 0, but
set Digital Control
Port #1 high when
trigger is met, low
when done
measuring

B

Trigger option
0 - Trigger
immediately
1 - Trigger if
above limit (high)