beautypg.com

Serialinput example, 8 cr9052dc & cr9052iepe filter module – Campbell Scientific CR9000X Measurement and Control System User Manual

Page 267

background image

Section 7. Measurement Instructions

7-43

See the SDM-SIO4 topic in Section 7.5 5 Peripheral Devices.

Syntax
SerialInput ( Dest, MaxValues, TerminationChar, FilterString )

Remarks
Incoming data is written to the destination array until the TerminationChar is
received or the MaxValues is met. SerialInput is used to read the output from a
serial sensor connected to the logger's RS232 port.

Parameter
& Data Type

Enter

SERIALINPUT PARAMETERS

Dest

Variable or Array

The Variable array in which to store the values received from the serial sensor. The variable array
should be dimensioned large enough to accept all of the values being read (Max_Values parameter).

MaxValues

Constant

Maximum number of characters that will be transmitted between the FilterString and the Termination

TerminateChar

Constant

The character that will be used to mark the end of the transmitted string. This number must be less
than 128.

FilterString

Constant

String of characters used to mark the beginning of the data transmitted from the serial sensor.

SerialInput Example

'Declare Variables

Public ser_vals(12)
Public Count
Const MAXVALUES = 12

'max number of values

Const TERMCHAR = 13

'carriage return, must be <128

BeginProg
Scan(
1,sec,0,0)

SERIALINPUT

(ser_vals,MAXVALUES,TERMCHAR,$JNK)

count = count + 1
NextScan
EndProg

7.8 CR9052DC & CR9052IEPE Filter Module

The CR9052DC is a six-channel, analog-input module that includes
programmable anti-alias filtering with a dc excitation daughter board. The
excitation options include constant 10 VDC, 5 VDC or 10 mA selections.

The CR9052IEPE is a 6 channel filter module that provides direct connection
of Internal Electronics Piezo-Electric (IEPE) accelerometers and microphones
through BNC connections. The CR9052IEPE module utilizes our CR9052
anti-aliasing filter module motherboard with an IEPE current source excitation
daughter board with AC coupling. Constant current excitation of 2 mA, 4 mA,
or 6 mA is available.

Customers with either module excitation configuration may send them to CSI
to have the other excitation board installed and have the new configuration
calibrated. Either filter module configuration can provide filtered voltage
measurements or spectra from Fast Fourier Transforms of the voltage
measurements.

See Section 3.3 CR9052 Filter Module Measurements for measurement details.