Академический Документы
Профессиональный Документы
Культура Документы
1. INTRODUCTION
1
ECG Data Acquisition Using Lab VIEW
2. ELECTROCARDIOGRAM
2
ECG Data Acquisition Using Lab VIEW
The action potential in the heart originates near the top of the
right atrium at a point called the pacemaker or sinoatrial (SA) mode.
The pacemaker is a group of specialized cells that spontaneously
generate action potentials at regular rate. To initiate the heart beat,
the action potentials generated by the pacemaker propagate in all
directions along the surface of both atria.
3
ECG Data Acquisition Using Lab VIEW
Duration
P-R interval : 0.12 -0.20sec
Q-T interval : 0.35 -0.44sec
S-T interval : 0.05 – 0.15sec
P wave : 0.11sec
QRS complex : 0.09sec
TYPES OF ELECTRODES:
1. LIMBS ELECTRODES
2. FLOATING ELECTRODES
3. PREGELLED DISPOSABLE ELECTRODES
4. PASTELESS ELECTRODES
4
ECG Data Acquisition Using Lab VIEW
1. LIMBS ELECTRODES:
The most common type of electrodes routinely used for
recording ECG is rectangular or circular surface electrode. The
material used is german silver, nickel silver or nickel plated steel.
They are applied to the surface of the body with electrode jelly. The
typical value of the contact impedance of these electrodes, which are
of normal size, is nearly 2 to 5 KΩ when measured at 10 Hz. The
electrodes are held in position by elastic straps. The size of the limb
electrodes is usually 3*5cm and they are generally made of german
silver, an alloy of zinc, cooper and nickel. They are reusable and last
several years. Limb ectrodes are generally preferred for use during
surgery because the patient‘s limbs are relatively immobile. Moreover,
chest electrodes cannot be used as they would interface with the
surgery.
Limb electrodes are not suitable for use in long term patient
monitoring because the long flowing leads are convenient to the
patient. Suction cup electrode is commonly used to record the
unipolar chest leads. It has high contact impedance as only the rim of
electrode is in contact with the skin. The electrode is popular for it‘s
practically, being easily attachable to fleshy parts of the body.
Electrode jelly forms the vacuum seal.
2. FLOATING ELECTRODES:
Limbs electrodes generally suffer from what is known as motion
artifacts caused due to the relative motion at the interface between the
metal electrode and the adjacent layer of electrode jelly. The interface
can be stabilized by the use of floating electrodes in which the metal
electrode does not make direct contact with the skin. The electrode
consist of a light weight metalled screen or plate held away from the
subject by a flat washer which is connected to the skin. Floating
electrodes can be recharged, i.e. the jelly in the electrodes can be
replenished if desired.
5
ECG Data Acquisition Using Lab VIEW
6
ECG Data Acquisition Using Lab VIEW
4. PASTELESS ELECTRODES:
ECG monitoring electrodes, in a majority of the cases, are metal
plates applied to the skin after cleaning and application of a coupling
electrolyte in the form of an electrode paste or jelly. Such preliminary
preparation can be sometimes irritating and time consuming. Also, it
is often not done satisfactorily, resulting in problems like poor quality
signals and baseline drift, etc. Another disadvantage of using electrode
jelly is that during long term monitoring there is likely to be patient
skin reactions as the electrode skin interface dries out in a matter of a
few hours. The electrodes need to be periodically removed for jelly
replenishments, thus causing further discomfort due to repetitive skin
preparation. In addition, bacterial and fungal growth can take place
under electrodes worn over long periods. Also, in conductive
electrodes, shifts in electrode position at the electrode skin interface
appear as baseline drift, particularly when the subject moves.
Therefore, any attempt of using a dry electrode that may dispense with
the practice of skin preparation would look attractive.
(3) LIMBS ELECTRODES (4) FLOATING ELECTRODES
7
ECG Data Acquisition Using Lab VIEW
3.BLOCK DIAGRAM
8
ECG Data Acquisition Using Lab VIEW
Finally the acquired ECG signals and the filtered ECG signals
are represented on the graph in front panel.
9
ECG Data Acquisition Using Lab VIEW
10
ECG Data Acquisition Using Lab VIEW
PRODUCT HIGHLIGHTS
1. The AD625 affords up to 16-bit precision for user selected fixed
gains from 1 to 10,000. Any gain in this range can be
programmed by 3 external resistors.
2. A 12-bit software programmable gain amplifier can be
configured using the AD625, a CMOS multiplexer and a resistor
network. Unlike previous instrumentation amplifier designs, the
ON resistance of a CMOS switch does not affect the gain
accuracy.
3. The gain accuracy and gain temperature coefficient of the
amplifier circuit are primarily dependent on the user selected
external resistors.
4. The AD625 provides totally independent input and output offset
nulling terminals for high precision applications. This minimizes
the effects of offset voltage in gain-ranging applications.
5. The proprietary design of the AD625 provides input voltage
noise of 4 nV/√Hz at 1 kHz.
6. External resistor matching is not required to maintain high
common-mode rejection.
AD625
11
ECG Data Acquisition Using Lab VIEW
12
ECG Data Acquisition Using Lab VIEW
13
ECG Data Acquisition Using Lab VIEW
14
ECG Data Acquisition Using Lab VIEW
15
ECG Data Acquisition Using Lab VIEW
Summed-up Features:
Internal Frequency Compensation
Short Circuit Protection
Offset voltage null capability
Excellent temperature stability
High input voltage range
NO latch-up
16
ECG Data Acquisition Using Lab VIEW
Pin 1 & 5 (Offset Null): Since the op-amp is the differential type, input
offset voltage must be controlled so as to minimize offset. Offset
voltage is nulled by application of a voltage of opposite polarity to the
offset. An offset null-adjustment potentiometer may be used to
compensate for offset voltage. The null-offset potentiometer also
compensates for irregularities in the operational amplifier
manufacturing process which may cause an offset. Consequently, the
null potentiometer is recommended for critical applications.
Pin 2 (Inverted Input): All input signals at this pin will be inverted at
output pin 6. Pins 2 and 3 are very important (obviously) to get the
correct input signals or the op amp can not do its work.
Pin 4 (-V): The V- pin (also referred to as Vss) is the negative supply
voltage terminal. Supply-voltage operating range for the 741 is -4.5
volts (minimum) to -18 volts (max), and it is specified for operation
between -5 and -15 Vdc. The device will operate essentially the same
over this range of voltages without change in timing period. Sensitivity
of time interval to supply voltage change is low, typically 0.1% per
volt. (Note: Do not confuse the -V with ground).
Pin 7 (posV): The V+ pin (also referred to as Vcc) is the positive supply
voltage terminal of the 741 Op-Amp IC. Supply-voltage operating
17
ECG Data Acquisition Using Lab VIEW
range for the 741 is +4.5 volts (minimum) to +18 volts (maximum),
and it is specified for operation between +5 and +15 Vdc. The device
will operate essentially the same over this range of voltages without
change in timing period. Actually, the most significant operational
difference is the output drive capability, which increases for both
current and voltage range as the supply voltage is increased.
Sensitivity of time interval to supply voltage change is low, typically
0.1% per volt.
Pin 8 (N/C): The 'N/C' stands for 'Not Connected'. There is no other
explanation. There is nothing connected to this pin, it is just there to
make it a standard 8-pin package.
(a)
18
ECG Data Acquisition Using Lab VIEW
(b)
Filter Design: -
* Active Filter:
Active filter circuit use the active elements such as Op-amp,
transistor, along with the resistors ,inductors and capacitor. Modern
active filter do not use inductors as the inductors are bulky, heavy
and non-linear. The indicator generates the stray magnetic fields. The
indicators dissipates considerable amount of power.
19
ECG Data Acquisition Using Lab VIEW
Disadvantages:
1) The finite bandwidth the active devices places limit on highest
frequency at operation.
2) The active elements are much more sensitive to environmental
& temperature changes then the passive element.
20
ECG Data Acquisition Using Lab VIEW
21
ECG Data Acquisition Using Lab VIEW
decreases at a higher rate. After the end of transition band, the gain
becomes zero.
Using proper design techniques, precision component values
and high speed op-amps, the practical response can be obtained very
close to ideal response.
High pass Filter:
Below fig. Shows frequency response of high pass filter for a
high pass filter, fL is low cut-off frequency. The range of frequency 0
< f < fL is stop band where f is the operating frequency. While range at
frequency f > fL is the pass band. The fig (14.a) shows ideal high
pass filter characteristics while fig (14.b) shows the practical high pass
filter characteristics.
22
ECG Data Acquisition Using Lab VIEW
Below fig shows characteristics of band pass filter. The band pass
filter has two stop bands. The range of frequency 0< f< fL and the
range of frequency fH < f< are two stop bands while the range fL <
f< fH is the pass band. The bandwidth is thus fH-fL and the fig. 15(a)
shows the ideal characteristics while 15(b) shows practical character.
The low pass filter passes only lower frequency range, the high
pass filter passes only higher frequency range while the band pass
filter only passes a band of frequency between the low and high
frequency limits difference by fH and fL.
23
ECG Data Acquisition Using Lab VIEW
The two range 0<f< fL and fH < f< are two pass bands. The
frequency response characteristic of band elimination filter is shown
in fig 16(a) shows the ideal response whole in fig 16(b) shows practical
response.
The analysis, design and the scaling procedure for this filter is
exactly same as that of second order low pass Butterworth filter.
25
ECG Data Acquisition Using Lab VIEW
(a)
Fig 18: (a) Second order high pass Butterworth filter
f= Input frequency in Hz
fL = lower cut-off frequency in Hz = 1/ 2 (R2R3C2C3)
For R2= R3=R and C2=C3=C, fc = 1/2RC
AF = Pass band gain
The frequency response of this filter is shown in fig 18(b).
26
ECG Data Acquisition Using Lab VIEW
(b)
Fig 18: (b) Frequency response of 2nd order high pass Butterworth
filter
(c)
Fig 18: (c) Ckt. Diagram of required high pass filter
27
ECG Data Acquisition Using Lab VIEW
28
ECG Data Acquisition Using Lab VIEW
(a)
Fig 20: (a) 2nd order low pass Butterworth filter
29
ECG Data Acquisition Using Lab VIEW
(b)
30
ECG Data Acquisition Using Lab VIEW
(c)
Fig 20: (c) Required low pass filter design
31
ECG Data Acquisition Using Lab VIEW
4. NI ELVIS OVERVIEW
(a)
32
ECG Data Acquisition Using Lab VIEW
(b)
Fig 21(a&b): Shows the NI ELVIS Bench top workstation &
Prototyping Board
SFP Instruments
NI ELVIS Traditional ships with the SFP instruments, created in
Lab VIEW and the source code for the instruments. You cannot
33
ECG Data Acquisition Using Lab VIEW
directly modify the executable files, but you can modify or enhance
the functionality of these instruments by modifying the LabVIEW
code. The instruments are virtual instruments (VIs) that are necessary
in typical laboratory applications.
Instrument Launcher
The NI ELVIS Instrument Launcher provides access to the NI
ELVIS Traditional SFP instruments. Launch the NI ELVIS Traditional
Instrument Launcher by double-clicking the NI ELVIS desktop icon or
navigate to Start»All Program Files»National Instruments»NI ELVIS 3.0»
NI ELVIS. After initializing, the suite of LabVIEW SFP instruments
opens. To launch an instrument, click the button corresponding to the
desired instrument. If the NI ELVIS Traditional software is properly
configured and the benchtop workstation is cabled to the appropriate
DAQ device, all buttons should be enabled.
34
ECG Data Acquisition Using Lab VIEW
35
ECG Data Acquisition Using Lab VIEW
Bode Analyzer
By combining the frequency sweep feature of the function
generator and the AI capability of the DAQ device, a full-function.
Bode Analyzer is available with NI ELVIS Traditional. You can set the
frequency range of the instrument and choose between linear and
logarithmic display scales.
36
ECG Data Acquisition Using Lab VIEW
• DC voltage
• AC voltage
• Current (DC and AC)
• Resistance
• Capacitance
• Inductance
• Diode test
• Audible continuity
37
ECG Data Acquisition Using Lab VIEW
Impedance Analyzer
This instrument is a basic impedance analyzer that is capable of
measuring the resistance and reactance for passive two-wire elements
at a given frequency.
Oscilloscope (Scope)
This instrument provides the functionality of the standard
desktop oscilloscope found in typical undergraduate laboratories. The
NI ELVIS Traditional - Scope SFP has two channels and provides
scaling and position adjustment knobs along with a modifiable time
base. You can also choose trigger source and mode settings. The auto
scale feature allows you to adjust the voltage display scale based on
the peak-to-peak voltage of the AC signal for the best display of the
signal. Depending on the DAQ device cabled to the NI ELVIS
hardware, you can choose between digital or analog hardware
triggering. You can connect to the NI ELVIS Traditional - Scope SFP
from the NI ELVIS Prototyping Board or from the BNC connectors on
the front panel of the benchtop workstation.
38
ECG Data Acquisition Using Lab VIEW
39
ECG Data Acquisition Using Lab VIEW
NI ELVIS in Engineering
NI ELVIS is suited for teaching basic electronics and circuit
design to students in electrical engineering, mechanical engineering,
and biomedical engineering. The suite offers full testing,
measurement, and data-saving capabilities needed for such training.
Students can use the removable prototyping board at home to build
circuits, thus using laboratory time more effectively.
40
ECG Data Acquisition Using Lab VIEW
41
ECG Data Acquisition Using Lab VIEW
42
ECG Data Acquisition Using Lab VIEW
DAQ Hardware
The NI ELVIS workstation is designed to work with National
Instruments M Series DAQ devices, which are high-performance,
multifunction analog, digital, and timing I/O devices for PCI bus
computers. Supported functions on DAQ devices include AI, AO, DIO,
and timing I/O (TIO).
– SHC68-68-EPM
– SHC68-68
– RC68-68
– SH68-68-EP
NI-DAQ Software
National Instruments measurement devices are packaged with
NI-DAQ driver software, an extensive library of VIs and ANSI C
functions you can call from your application software, such as Lab
VIEW or Lab Windows™/CVI™, to program your NI measurement
devices, such as the M Series multifunction I/O (MIO) DAQ devices,
signal conditioning modules, and switch modules. Driver software has
an application programming interface (API), which is a library of VIs,
functions, classes, attributes, and properties for creating applications
43
ECG Data Acquisition Using Lab VIEW
for your device. NI-DAQ 7.x and later includes two NI-DAQ drivers,
each with its own APIs, hardware configuration, and software
configuration. NI-DAQmx is the latest NI-DAQ driver with the following
advantages over Traditional NI-DAQ (Legacy).
44
ECG Data Acquisition Using Lab VIEW
6. INTRODUCTION TO LABVIEW
45
ECG Data Acquisition Using Lab VIEW
Front Panel
You build the front panel using controls and indicators, which
are the interactive input and output terminals of the VI, respectively.
Controls are knobs, push buttons, dials, and other input
mechanisms. Indicators are graphs, LEDs, and other displays.
Controls simulate instrument input mechanisms and supply data to
the block diagram of the VI. Indicators simulate instruments output
mechanisms and display data the block diagram acquires or generate
You build the front panel with controls and indicators, which
are the interactive input and output terminals of the VI, respectively.
Controls are knobs, push buttons, dials, and other input devices.
Indicators are graphs, LEDs, and other displays. Controls simulate
instrument input devices and supply data to the block diagram of the
46
ECG Data Acquisition Using Lab VIEW
Block Diagram
After you build the front panel, you add code using graphical
representations of functions to control the front panel objects. The
block diagram contains this graphical source code, also known as G
code or block diagram code. Front panel objects appear as terminals
on the block diagram. Block diagram objects include terminals,
subVIs, functions, constants, structures, and wires, which transfer
data among other block diagram objects.
Functions Palette
47
ECG Data Acquisition Using Lab VIEW
Tack down the Functions palette by clicking the thumbtack on the top
left corner of the palette. By default, the Functions palette starts in
the Express view.
After you build a VI front panel and block diagram, build the
icon and the connecter pane so you can use the VI as a sub VI. The
icon and connecter pane correspond to the function prototype in text -
based programming languages. Every VI displays an icon, such as the
one shown as follows, in the upper right corner of the front panel and
block diagram windows. An icon is a graphical representation of a VI.
It can contain text, images, or a combination of both. If you use a VI
as a subVI, the icon identifies the subVI on the block diagram of the
VI. You can double-click the icon to customize or edit it.
48
ECG Data Acquisition Using Lab VIEW
Digital filters:
The function of a digital filter is the same as its analog counter
part, but its implementation is very difficult. Analog filters are
implemented using either active or passive electronics circuits, and
they operate on continuous waveforms. Digital filter, on the other
hand are implemented using either a digital logic circuit or a computer
program and they operate on a sequence of numbers that are obtained
by sampling the continuous waveform. The use of digital filters is
widespread today because of the easy availability of computers. The
computer program can be written to implement almost any kind of
digital filter as shown in figure (25) in Lab VIEW.
49
ECG Data Acquisition Using Lab VIEW
50
ECG Data Acquisition Using Lab VIEW
51
ECG Data Acquisition Using Lab VIEW
Fig 27: Acquired & Filtered ECG signals obtained by real time
monitoring
52
ECG Data Acquisition Using Lab VIEW
53
ECG Data Acquisition Using Lab VIEW
Fig 29: Acquired & Filtered ECG signals obtained by reading the
stored data
54
ECG Data Acquisition Using Lab VIEW
55
ECG Data Acquisition Using Lab VIEW
56
ECG Data Acquisition Using Lab VIEW
57
ECG Data Acquisition Using Lab VIEW
8. FUTURE ASPECTS
signals and generate the report. After generating the report. This can
be sent back to the doctor using the GPRS mobile technology. We can
also interface the RTC (real time clock) and configure the device to
send the data in the set time. So using this project any doctor can
configure his phone number in this device and can monitor his
58
ECG Data Acquisition Using Lab VIEW
9. CONCLUSION
modifications may be :
• Some more functions may be added for blocks interval like QT,
PQ etc.
• Auto diagnosis
• Remote monitoring
59
ECG Data Acquisition Using Lab VIEW
REFERNCES
60
ECG Data Acquisition Using Lab VIEW
APPENDIX
61
ECG Data Acquisition Using Lab VIEW
62
ECG Data Acquisition Using Lab VIEW
63
ECG Data Acquisition Using Lab VIEW
64
ECG Data Acquisition Using Lab VIEW
65
ECG Data Acquisition Using Lab VIEW
66
ECG Data Acquisition Using Lab VIEW
67
ECG Data Acquisition Using Lab VIEW
68
ECG Data Acquisition Using Lab VIEW
69
ECG Data Acquisition Using Lab VIEW
70
ECG Data Acquisition Using Lab VIEW
71
ECG Data Acquisition Using Lab VIEW
72
ECG Data Acquisition Using Lab VIEW
73
ECG Data Acquisition Using Lab VIEW
74
ECG Data Acquisition Using Lab VIEW
75
ECG Data Acquisition Using Lab VIEW
76