Download Graphical Programming based Biomedical Signal Acquisition and
Transcript
INTERNATIONAL JOURNAL OF CIRCUITS, SYSTEMS AND SIGNAL PROCESSING (ADC) resolution. With the proper gain setting, you can use the full resolution of the ADC to measure the input signal. Because it was not possible to make an acquisition of a biomedical signal in real time, we have studied at the beginning the possibility for an electrocardiograph realisation, that means the acquisition of a sinusoidal signal with an amplitude of 1 mV and frequency of 1-2Hz from a function generator. Then we have done the acquisition of an equivalent signal for a biomedical signal that is specific for the heart activity. Using the following block diagram from Fig.5, we have an acquisition and a visualisation of the real signal and the processed signal. Because there are a lot of imperfect connexions from an electronic point of view, and there are a lot of long linking wires in a polluted electromagnetic waves environment and the input impedance is high the acquired signal is noise disturbed. For filtering the disturbed signal it is necessary to cascade two filters: the first filter is a low-pass having a cutt-off frequency of 40Hz and the second filter is an averaging Hanning filter [2]. When an ensemble of several realizations of an event is not available, synchronized averaging will not be possible. We are then forced to consider temporal averaging for noise removal, with the assumption that the processes involved are ergodic that is temporal statistics, may be used instead of ensemble statistics. As temporal statistics are computed using a few samples of the signal along the time axis and the temporal window of samples is moved to obtain the output at various points of time, such a filtering procedure is called a movingwindow averaging filter and is implemented in LabVIEW by help of shift-registers. Such a filtering procedure is called a moving-window averaging filter in general; the term movingaverage (MA) filter is commonly used. The general form of an MA filter is: y (n ) = above block diagram communicates with the data acquisition system and makes the acquisition of an external signal. We use an analog channel with following characteristics: the name of the channel Ecg1; the channel is programmed for signal input Reference Single Ended (unipolar signal); the input range is [ − 5 mV , + 5 mV ] ; the number of samples inside one acquisition is 100; the sampling frequency is 200 Hz . Fig. 5. Part of electrocardiogram acquisition and processing. N ∑ bk x(n − k ) , The first three characteristics are appointed by MAX, that is capable to communicate to any National Instruments data acquisition card. The last two properties are introduced with LabVIEW, that means the values and the name of the channel are selected from the controls belonging to the front panel; the terminal sources from the diagram block take these new values and channel name and actualize the acquisition. After running the above program we can indicate the three graphs that meet the necessity to publish the input signal, the low-pass filtered signal and the averaging with the Hanning filter. The signals that have been acquisitioned and processed as in the above presented theory are visualised in following figures Fig.6. and Fig.7. Two acquisitions, for two different electrocardiograms are done with the PCI-6023E card. The easiest way to acquire a single waveform from a single channel is to use the AI Acquire Waveform virtual instrument [1]. Using this virtual instrument it is necessary to specify a device and/or channel, the number of samples to acquire from the channel and the sample rate measured in samples per second. It is also possible to set programmatically the gain by (1) k =0 where x and y are the input and output of the filter, respectively. The bk values are the filter coefficients or tap weights, k = 0, 1, 2,..., N, where N is the order of the filter. The effect of division by the number of samples used (N+1) is included in the values of the filter coefficients. Applying the z-transform, we get the transfer function H(z) of the filter as: H (z ) = Y (z) N = ∑bk z −k = b0 + b1z −1 + ...+bN z −N X (z) k =0 (2) where X(z) and Y(z) are the z-transforms of x(n) and y(n), respectively. A simple MA filter for filtering noise is the von Hann or Hanning filter [2], given by y (n ) = 1 [x(n ) + 2 x(n − 1) + x(n − 2)]. 4 (3) The Analog Input Multipoint Block that was used in the Issue 4, Volume 1, 2007 319