Documente Academic
Documente Profesional
Documente Cultură
Digital I/O
32-bit digital I/O, up to 80 MB/s
48-bit, isolated D/O
Data Acquisition (DAQ) Boards
5 MS/s, 12-bit, 16 analog inputs
1.25 MS/s, 12-bit, 16-64 analog inputs
333 kHz, 16-bit, 16 analog inputs
204 kS/s, 16-bit 2 in/2 out, DSP based
204 kS/s, 16-bit 2 in/2 out, host based
Counter Timers
32-bit, counter timers, up to 80 MHz
Analog Inputs
500 kS/s, 12-bit, 16 analog inputs
24-bit, thermocouple inputs
20 MS/s, 8-bit, 2 analog inputs
Digitizers
60 S/s, 24-bit, 8 channel logger
Analog Input
Analog inputs: 12-bit, 2 or 4 inputs
Maximum sampling: 5 MS/s
Minimum sampling: 1 kS/s
Input range: 42 V, 20 V, 10 V, 5 V, 1 V, 500 mV
Input coupling: AC or DC
Over voltage: 42 V
Relative accuracy: 0.5 LSB
Data transfer: DMA, interrupts, programmed I/O
Dynamic range: 200 mV to 10 V, 75 dB; 20 to 50 V, 70 dB
Amplifiers: 200 nA bias current; 100 pA offset current; 1 M input
impedance, CMRR 60 dB (typical)
Bandwidth: 5 MHz, 500 mV to 50 V
Analog Output
No. of channels: 2
Resolution: 16-bits, 1 in 65,536
Maximum update: 4 MS/s, one channel; 2.5 MS/s two channels
Relative accuracy: 4 LSB
Voltage output: 10 V
Output impedance: 50 5%
Protection: Short to ground
Settling time: 300 ns to 0.01%
Slew rate: 300 V/s
Noise: 1 mVRMS, DC-5 MHz
123
2002 by Bla G. Liptk
124
Digital I/O
No. of channels: 8 input, 8 output
Compatibility: 5 V/TTL
Data transfer: programmed I/O
Input low voltage: 0 V to 0.8 V
Input high voltage: 2 V to 5 V
Timing
Base clock: 20 MHz and 100 kHz
Clock accuracy: 0.01%
Gate pulse duration: 10 ns, edge-detect
Data transfer: Programmed I/O
Trigger
Analog trigger: Internal (full scale); external 10 V; 8-bits resolution,
bandwidth 5 MHz;
Digital trigger: 2-triggers; start stop trigger, gate, clock; 10 ns min pulse
width; 5 V/TTL; external trigger impedance 10 k
Other Characteristics
Warm-up time: 15 min
Calibration interval: 1 year
Temp. coefficient: 0.0 ppm/C
Operating temp.: 0 to 45C
Storage temp.: 20 to 70C
Relative humidity: 10 to 90%
Bus interface: Master, slave
I/O connector: 68-pin, male SCSI
Power requirements: 4.65 to 5.25 VDC, 3 A
Physical dimensions: 31 11 cm
Price: about U.S.$2000
Access I/O Products, San Diego, CA; Acqutek Corp., Salt Lake City, UT; Advantech
Automation Corp., Cincinnati, OH; Advanced Circuit Technology, An Amphenol Co.,
Nashua, NH; Advanced Data Capture Corp., Concord, MA; Agilent Technologies,
Inc., Palo Alto, CA; Allen-Bradley, A Rockwell Automation Brand, Duluth, GA;
Amtech, Hudson, WI; Analog Devices, Inc., Norwood, MA; Analog Interfaces, Inc.,
Alliance, OH; Analogic Corp., Peabody, MA; Arrow Electronics, Inc., Melville, NY;
Axiom Technology Inc., Chino, CA; ABB Automation, Inc.TOTALFLOW Products Group, Houston, TX; ADAC Corp. (American Data Acquisition Corp.), Woburn,
MA; APT Instruments, Litchfield, IL; ATI Industrial Automation, Apex, NC; Beckhoff
Automation LLC, Minneapolis, MN; Bruel & Kjaer, Norcross, GA; Bulova Technologies, Inc., Lancaster, PA; Burr-Brown Corp., Tucson, AZ; Celerity Systems, Inc.,
Cupertino, CA; Chase Scientific Co., Aptos, CA; ComputerBoards, Inc., Middleboro,
MA; Data Entry Systems, Huntsville, AL; Data Flow Systems, Inc., Melbourne, FL;
Dataforth, A Burr-Brown Co., Tucson, AZ; Davis Instruments, LLC, Baltimore, MD;
Daytronic Corporation, Dayton, OH; Devar, Inc., Bridgeport, CT; Diamond Systems
Corp., Palo Alto, CA; Digital Equipment Corp., Maynard, MA; Digital Interface
Systems, Inc., Youngstown, OH; Dranetz Technologies, Inc., Edison, NJ; DSP Technology, Inc., Fremont, CA; Echotek Corp., Huntsville, AL; Entrelec, Inc., Irving, TX;
Global American, Inc., Hudson, NH; Harris Corp., Controls Div., Melbourne, FL;
Industrial Computer Systems, Greensboro, NC; Intelligent Instrumentation, Inc., Tucson,
AZ; ICS Advent, San Diego, CA; Jenzano, Inc., Port Orange, FL; Jon Goldman
Associates, Orange, CA; Kaye Instruments, Inc., Bedford, MA; Keithley Instruments,
Inc., Cleveland, OH; KSE Corp., Pottstown, PA; LPTek Corp., Westbury, NY; Measurement Systems International, Inc. (MSI), Seattle, WA; Microstar Laboratories,
Inc., Bellevue, WA; MSC Industrial Supply Co., Melville, NY; National Instruments
Corp., Austin, TX; NEWCO, Inc., Florence, SC; Phillips Electric, Inc., Cleveland,
OH; PC Instruments, Inc., Akron, OH; PCS Computer An Advantech Sub., Cincinnati,
OH; Quatech, Inc., Akron, OH; Racal Instruments, Inc., Irvine, CA; Real Time
Devices, Inc., State College, PA; RC Electronics, Inc., Santa Barbara, CA; Schneider
Electric, North Andover, MA; Signatec, Inc., Corona, CA; Solartron Mobrey, Houston,
125
TX; Sonix, Inc., Springfield, VA; Symmetric Research, Kirkland, WA; Synetcom
Digital, Inc., Torrance, CA; Texas Electronics, Inc., Dallas, TX; Trig-Tek, Inc., Anaheim,
CA; TEAC America, Inc., Montebello, CA; TEK Industries, Inc., Manchester, CT;
TRW, Inc., Cleveland, OH; Ultraview Corp., Orinda, CA; Veda Systems, Inc., California, MD; Vesta Technology, Inc., Wheat Ridge, CO; Wang Laboratories, Inc.,
Billerica, MA; Warren-Knight Instrument Co., Philadelphia, PA; WaveEdge Technologies, Burke, VA; Westinghouse Electric Corp., Process Control Div., Pittsburgh, PA;
Worldnet Computers, Inc., Aliso Viejo, CA; WAV, Inc., West Chicago, IL
The majority of process equipment such as sensors, transducers, and final control elements are analog devices, and
they generate or operate on analog signals. In the fields of
process control, automatic control, instrumentation, communications, etc., the signals generally can be processed in
three different ways: (1) by analog techniques that directly
deal with analog signals, (2) by converting the analog signals into digital or digital signals to analog and implementing the systems by using digital instruments, and (3) by dealing
with the signals purely in digital form as digital-to-digital
input and output.
In modern times when computers and microprocessorbased equipment are heavily used in processes, the analog
signals must be converted to digital values. The key feature of
modern instruments is the conversion from analog signals into
digital signals and vice versa by means of analog-to-digital
converters (A/D or ADC) and digital-to-analog converters (D/A
or DAC), respectively. This section begins by explaining the
basic concepts related to these conversions and the circuits
used to carry them out. An important advantage of digital techniques is that they can be managed and communicated relatively easily and reliably in comparison to the analog methods.
Also, in addition to A/D and D/A conversions, other indispensable operations (such as sampling or signal conditioning)
are required to make full use of modern instruments and
instrumentation systems. The whole process of carrying out
all these operations is referred to as the data-acquisition systems. In this section, the basic functions of these systems and
the theoretical foundations of their operation are presented.
In many scientific and engineering applications and in
process control and instrumentation, the proper design of
devices to carry out monitoring and controlling is important.
In this respect two types of devices can be found:
Measured
variables
Process
Sensor
Analog and/or
Digital Signal
Processing
Actuator
Controller
Control commands
FIG. 1.9a
Monitoring and controlling of a process.
Recorders
126
PROCESS PLANT
Actuator/Controller
Sensors/Transducers
INTERFACE
Peripherals
COMPUTER SYSTEM
Computer
subsystems
OPERATOR
FIG. 1.9b
A typical digital process control system.
BUS
CPU
I/O
Ports
Memory
Peripheral
Devices
User
Interface,
Keyboards
FIG. 1.9c
A basic microcontroller architecture.
Latches
R
2R
Vout
D2
2n2 R
D1
2n1 R
D0
2n R
Vref
FIG. 1.9d
Basic DAC design.
D/A Converters
Digital words of binary information require DACs for the
conversion of the binary words into appropriately proportional analog voltages. The typical D/A converter has three
major elements(1) a resistive or capacitive network, (2)
switching circuitry, operational amplifiers, and latches, and
(3) a reference voltage. Also, an important requirement is the
means to switch the reference voltage from positive to negative for achieving a bidirectional analog signal at the output.
Figure 1.9d shows a typical n-bit DAC. The set of latches
holds the binary number, which is to be converted to an
analog voltage signal. The output of each latch controls a
transistor switch, which is associated with a determined resistor in the resistor network. The voltage reference, which is
connected to the resistor network, controls the range of the
output voltage. The operational amplifier works as an adder
circuit. The operation of the D/A converter is as follows:
1. Switches set the digital word, i.e., switch is closed for
logic ONE and switch is grounded for logic ZERO.
2. The weighted resistors determine the amount of voltage VOA at the output.
For each of the resistors in the network, when its corresponding switch is on, the operational amplifier adds a voltage to Vout , which is inversely proportional to the value of
the resistor and directly proportional to the reference voltage
and the feedback resistor (R). For example, for the 2R resistor
the operational amplifier adds the following value to Vout:
V ref
R
V out = V ref ------- = ------2R
2
Dn1
127
1.9(1)
1.9(2)
where Dn1, Dn2, etc. represent the values of the bits of the
binary number to be converted. In this formula each active
bit contributes to Vout with a value proportional to its weight
in the binary number, and thus the output voltage generated
by the DAC is proportional to the value of the input binary
number.
128
1
I
7
2I
7
6I
7
Constant Current
Sources
FIG. 1.9e
A 3-bit weighted current DAC.
(all switches open), resulting particularly at higher temperatures. This type of D/A conversion is suitable for low to
medium accuracy and can be used when a high rate of conversion is necessary.
A/D Converters
ADCs and DACs provide the interface between the analog
world (the real world) and the world of digital computation
and data processing. Many of the applications for A/D interfaces are quite evident as we use them in our daily lives.
Temperature controllers, computers and related peripherals,
electronic fuel injection, and CD music systems are just a
few examples of the typical applications that require A/D
interfaces.
The analog signals converted to digital form can arise
mainly from sensors (or transducers) measuring a myriad of
Comparator
Volts
Clock
VOA
G1
VIA
Reset
VOA
D/A
decoder
Counting
Counter
t0
Vref
FIG. 1.9f
Counter ramp ADC.
Parallel output
Stop
Counting
Analog
Input
129
Vref
Volts
DAC
Analog
Input
Digital
Output
Clock
Successive
Approximation
Register
Time
1 0 1 0 0 1 0 Digital Output
FIG. 1.9g
(Left) Scheme of a successive approximation ADC. (Right) Output bit generation in the successive approximation process.
3. The SAR then goes to the next bit and tries logic ONE
for that bit and the process of comparison is repeated
until the signal has been converted.
Figure 1.9g (right) shows the conversion process of a
value of an analog input. Only the calculation of the five most
significant bits of the digital output is shown. The first comparison is carried out with the binary number 1000, which
is stored in the SAR. Then as the analog input is greater than
the voltage generated by the DAC with this number, the most
significant bit of the SAR is held in 1. Once the first step
is finished, a new comparison is carried out. Then the following bit (the second) of the SAR is set to 1. At that
moment the binary number in the SAR is 110000. Consequently, the value of the analog input is greater than the
voltage generated by the DAC, so the second bit of the output
is set to 0. This process continues in the same way until
the n bits of the output are calculated.
Again, the analog input is sampled and held at the comparator. This means that the conversion sample rate is limited
by the fact that each bit must be tested before the conversion
of the word is completed.
The speed of the conversion is much greater than that of
the counter ramp, but the trade-off for speed is complexity,
especially with the programmer logic, which has the job of
taking the D/A decoder through different steps of the successive approximation process.
130
Comparator 1
VIN
VR1
Comparator 2
VR2
Comparator 3
VR3
Comparator 2n1
E
N
C
O
D
I
N
G
Digital
Output
L
O
G
I
C
Single-Channel Systems
VR(2n1)
FIG. 1.9h
Flash ADC.
Measurement
Process
Sensor
Analog Signal Conditioning In a great number of applications, the adaptation between the analog signal generated by
a sensor and the type of input demanded by an ADC requires
two basic operations: amplification and filtering.
Amplification is used to adapt the amplitude range of the
signal generated by a sensor to the amplitude range of the
ADC receiving the signal. This is because the voltage ranges
generated by sensors are much smaller than those managed
by ADCs, which are normally 0 to 5 V or 0 to 10 V. In
addition, the input of an ADC is unipolar, that is, one of the
terminals of the ADC is connected to the reference terminal.
However, if the signal provided by the sensor is differential,
the amplifier must convert this signal into unipolar form. In
this case a differential amplifier must be used.
Filtering is used to modify the frequency spectrum of the
signal generated by a sensor. There are two basic reasons for
using filters in data-acquisition systems: to reduce any type
of interference, for example, that produced by the electric
Amplifier
Filter
FIG. 1.9i
Basic structure and functions of a single-channel data-acquisition system.
Sampling
S/H
A/D Conversion
ADC
Digital
Output
1.9(3)
Multichannel Systems
where n is the number of bits of the converter, t c the conversion time, and FS the full-scale value. This formula indicates
that even in the case of slow evolution signals, full conversion
accuracy cannot be obtained. To overcome this difficulty, a
sample-and-hold (S/H) circuit is utilized. The S/H circuit
acquires the value of the input analog signal (sample) and
holds it throughout the conversion process. Thus, a fixed level
of voltage is provided to the converter during the conversion
process and the uncertainty provoked by the variation of the
input voltage is eliminated.
Figure 1.9j shows the basic structure of an S/H circuit.
It is made up of a capacitor, a switch with its corresponding
When there are several channels in a data-acquisition, frequently all the channels share one or more resources of the
system. In this case, a switch to assign the common resource
alternately to each channel is required. The function carried
out by this switch is called multiplexing. Two approaches
exist to achieve the multiplexing function: analog and digital
multiplexing.
Analog Multiplexing Analog multiplexing means that the
multiplexing function is carried out on analog signals.
Figure 1.9k shows the most common configuration of an
S1
Analog
Input
S/H
Output
+1
+1
Ch
Control
Circuit
FIG. 1.9j
Basic structure of a sample-and-hold circuit.
Channel N
Sensor
Signal
Conditioner
Analog
Multiplexer
Channel 2
Sensor
Signal
Conditioner
Channel 1
Sensor
Signal
Conditioner
FIG. 1.9k
Multichannel data-acquisition system with analog multiplexing.
131
S/H
ADC
Digital
Output
132
Ch 1
Sensor
Signal
Conditioner
S/H
ADC
Interface
Ch 2
Sensor
Signal
Conditioner
S/H
ADC
Interface
Digital
Processor
Ch N
Sensor
Signal
Conditioner
S/H
Interface
ADC
BUS
FIG. 1.9l
Multichannel data-acquisition system with digital multiplexing.
ANALOG
Input 1
Input 2
Input 3
Analog
Multiplexer
Input N
FIG. 1.9m
Input system of a data-acquisition board.
Amplifier
S/H
ADC
Digital
Output
133
134
Star Topology
Bus Topology
Tree Topology
Server
Client
FIG. 1.9n
Examples of network topology.
TABLE 1.9o
ISO Reference Model Protocol
1
2 Layer
3 Application
Physical
Link
Network
Transport
Session
Presentation
Application
4 Protocols
Two important limitations of RS-232-C are the low transfer rates (typically 20 kb/s) and the maximum length of the
wires (around 16 m). To overcome these limitations, the new
standards RS449 (mechanical) and RS423 (electrical) have
been defined. These new standards are upward compatible
with RS-232-C and can operate at data rates up to 10 Mb/s
and at distances of up to 1200 m. However, changing to a
new standard is a long and costly process, so the penetration
of this new standard in the market is, as yet, very limited.
Despite its limitations, RS-232-C communications are
widely used, especially in low-cost installations. However, if
more-sophisticated communications are required, more specialized buses, such as the GPIB or fieldbuses must be used.
Controller,
Talker,
Listener
FIG. 1.9p
General GPIB structure.
Talker,
Listener
Talker
Only
135
Listener
Only
Data Input/Output
Data Bus
Data Byte
Transfer
Control
ATN (Attention)
IFC (Interface Clear)
SRQ (Service Request)
REN (Remote Enable)
EOI (End Or Identify)
General
Interface
Management
136
and cabling of the field devices the cost advantage is particularly clear. Instead of thick bundles of cables, just one twowire bus cable is laid. In addition to saving time and material,
a further benefit is that the likelihood of wiring errors is
drastically reduced.
In operation, the benefits of fieldbus solutions are seen
primarily in troubleshooting and maintenance. Errors can be
more easily detected, analyzed, and localized, and the stocking of spares is simplified. When subsequent plant upgrades
arise, the fieldbus is the better choice, too. Instead of complex
recabling or utilization of expensive cable reserves, the existing bus is simply extended to the new field device.
During the 1990s, a significant number of fieldbus definitions were achieved. However, each bus definition presents
particular characteristics and, consequently, some buses are
more suitable for determined installations than others. For
example, the AS-I bus (1993) is oriented to low-level communications, connecting the sensors and actuators of a plant with
its automation system. Other buses are devoted to managing
higher-level communications, such as PROFIBUS (1994/1995),
which allows communication among PLCs, drive units, I/O
modules, and industrial computers. A particular type of fieldbus is the CAN bus (1995), which was specifically developed
for the automotive industry. The CAN bus is used to communicate and control the great number of digital devices,
which can be found in a vehicle: ABS breaks, air bags,
electric windows, etc. Other important examples of fieldbuses
on the market are INTERBUS-S (1984), DeviceNet (1994)
and the Foundation Fieldbus H1 (1995).
The Fieldbuses
Virtual Instruments
137
Software for Virtual Instrumentation To develop the software of a virtual instrumentation system a programming language or a special software package must be utilized. However,
the option of using a traditional programming language (C, for
example) can generate several problems. One of them is that
it may be very difficult to program the graphical elements of
a virtual instrumentation system using C. Another disadvantage is that it is not an easy language to learn, and the engineer
designing the virtual instrument should also be an experienced
programmer.
Today, a more utilized option is the Microsoft Visual
Basic programming language, which runs under the Windows operating system. Visual Basic has become quite popular in the development of virtual instrumentation systems,
because it combines the simplicity of the Basic programming
language with the graphical capabilities of Windows.
Another important reason for its popularity is that it is an
open language, meaning that it is easy for third-party vendors to develop products that engineers can use with their
Visual Basic programs. Several companies now sell
Dynamic Link Libraries (DLLs), which add custom controls,
displays, and analysis functions to Visual Basic. The controls
and displays mimic similar functions found on stand-alone
instruments, such as toggle switches, slide controls, meters,
and light-emitting diodes (LEDs). By combining various
controls and displays, any virtual instrument can easily be
programmed.
A third option for developing virtual instrumentation systems is to use a software package specifically designed for
the development of these systems. The crucial advantage of
these packages is that it is not necessary to be a Windows
programmer to use them. Several packages of this type exist,
but only one of them has reached great diffusion, the LabVIEW. National Instruments developed this package.
LabVIEW was designed to be extendible, so new functional modules can be added to a LabVIEW program. For
example, a manufacturer of an interface card may provide
the user with a LabVIEW driver, which appears as a virtual
instrument representing the card and its functionality in the
LabVIEW environment. LabVIEW modules can also be written using general-purpose languages, such as C or C++.
These languages provide great flexibility to program functions that perform complex numerical operations with the
data received by a virtual instrument.
138
X(t)
t
(a)
P(t)
t
0 T 2T 3T . . . . . . . . . . . . . . . . . . .15T
(b)
XP(t)
t
(c)
FIG. 1.9q
(a) Representation of an analog signal. (b) Train of impulses to
sample the analog signal. (c) The sampled signal, which is a train
of impulses, modulated in amplitude.
Quantization
Amplitude quantization is defined as the process by which a
signal with a continuous range of amplitudes is transformed
into a signal with a discrete amplitudes taken from a finite
set of possible amplitudes. The quantization process used in
practice is usually memoryless. That is, the quantizer does
not depend on previous sample values to predict the next
value. Although this is not an optimal solution, it is commonly used in practice.
The precision of the quantizer is limited by the number
of discrete amplitude levels available for the quantizer to
approximate the continuous signal amplitudes. These levels
are referred to as representation or reconstruction levels and
the spacing between two representation levels is called a step
size.
Uniform quantizers are a family of quantizers that have
evenly spaced representation levels. Two types of uniform quantizers are midtread and midrise quantizers. These are shown in
Figure 1.9s.
Despite that uniform quantizers are more commonly used,
depending on the application, there are circumstances that
make it more convenient to use non-uniform quantizers. For
example, the ranges of amplitudes covered by voice signals,
from passages of loud talk contrasted to passages of weak talk
is on the order of 1000 to 1. For this reason, a non-uniform
quantizer with the feature that the step size increases as amplitude increases. Therefore, infrequently occurring loud talk is
catered to, but weak passages of talk are more favored with
smaller step sizes.
The use of quantization introduces an error between the
continuous amplitude input and the quantized output, which
is referred to as quantization noise. Quantization noise is both
nonlinear and signal dependent; thus, quantization noise cannot be alleviated by simple means. However, provided that
the step size is sufficiently small, it is reasonable to assume
that the quantization error is a uniformly distributed random
variable, and, therefore, the effect of quantization noise is
similar to that of thermal noise.
By modeling the quantization noise as a uniformly distributed random variable, it is possible to ascertain a signalto-noise ratio (SNR) for the quantizer. As stated earlier, the
precision of the quantizer is dependent on the number of
representation levels available. This also corresponds to the
number of bits per sample R (the number of representation
139
Xp(f)
fM
fM
FIG. 1.9r
Representation of the aliasing phenomena.
Output
level
Output
level
Input
level
Input
level
4
(a)
(b)
FIG. 1.9s
Types of uniform quantizers(a) midrise and (b) midtread.
Unipolar Codes Unipolar codes are used to represent unipolar quantities, that is, quantities with a predefined sign
(positive or negative). The most common unipolar codes are
natural binary, BCD (binary-coded decimal), and Gray. To
illustrate the coding process, the natural binary code is
described below.
In the natural binary code, each bit of a number represents
a successive power of 2 according to the position that the bit
occupies in the number. Given a number of n digits (represented
by Dn1, Dn2 ,D1 and D0), the value of the number is determined by the following expression:
Coding
Coding is the process of representing the finite output states
of a quantizer using sequences of n bits: a different sequence
n
of bits is assigned to each output state. For n bits 2 different
D n1 D n2 D 1 D 0 = D n1 2
n1
1
+ D n2 2
+ D1 2 + D0 2
n1
+
1.9(4)
140
1010101 = 1 2 + 1 2 + 1 2 + 1 2 = 85
1.9(5)
+ D1 2
1n
+ D0 2
1.9(6)
= 0.6640625
1.9(7)
V o = V FE
( Di /2
ni
1.9(8)
i=0
V o = 10 ( 2 + 2 + 2 ) = 8.125 V
1.9(9)
BIBLIOGRAPHY
141