High-speed, multi-path and synchronous acquisition system of acupuncture body surface electric signals
Technical field
The present invention relates to a kind of high-speed, multi-path and synchronous acquisition system of acupuncture body surface electric signals, can be simultaneously to the brain electricity, electrocardio and electromyographic signal are gathered.
Background technology
The general structure of body surface electric signals acquisition system as shown in Figure 1 at present.This type of acquisition system realizes that the key of multichannel synchronous acquisition is that every road is passed through T/H sampling holder 9 earlier through the body surface electric signals of nursing one's health, then through behind the multiway analog switch 10 by microprocessor 5 controls, by analog-digital converter 11 analog quantity is converted into digital quantity, by microprocessor 5 collection result is uploaded to via RS232 module 12 at last that host computer shows and storage.There is following deficiency in such system:
1, sampling rate is not high: limited the frequency of sampling the stabilization time that the aperture time of sampling holder, the switch speed of multiway analog switch and passage switch, be difficult to finish the collection of high frequency body surface electric signals;
2, certainty of measurement is not high: the shake that the conducting resistance of multiway analog switch and passage switch all can influence the measurement of body surface electric signals;
3, the port number of Cai Jiing is low: at present, the acquisition channel number of most of body surface electric signals collecting device mostly is in 16 passages, and this research to collaterals of human in the acupuncture and conduction brings inconvenience;
4, use inconvenience: the multichannel body surface electric signals acquisition system that does not aim at the acupuncture development now, many R﹠D institutions need be equipped with the electrocardio checkout equipment, brain electro-detection equipment and checking with EMG method equipment simultaneously when applying acupuncture experiment, cause equipment numerous, operation inconvenience;
5, the acquisition channel number is fixed, the expansion difficulty.
Summary of the invention
The purpose of this invention is to provide a kind of high-speed, multi-path and synchronous acquisition system of acupuncture body surface electric signals, remedy the at present domestic blank that does not have special-purpose acupuncture body surface electric signals grapher, realize the high-speed, multi-path synchronous acquisition of acupuncture body surface electric signals.
For achieving the above object, the technical solution used in the present invention provides a kind of high-speed, multi-path and synchronous acquisition system of acupuncture body surface electric signals, and wherein: this system includes collection plate, system acquisition and panel, usb data transmission engine and the upper computer software of mutual electrical connection; Described collection plate is the collection plate of the identical body surface electric signals of the polylith of electrical connection mutually, every collection plate includes overvoltage crowbar, filter circuit, amplifying circuit module and the data-acquisition system DAS of mutual electrical connection, collection plate is by overvoltage crowbar, filter circuit, amplifying circuit, body surface electric signals converted to gather signal after the required conditioning; This signal is converted to digital signal through the data-acquisition system DAS by microcontroller MCU control, and be temporarily stored among the FIFO memorizer of system acquisition and panel, the digital signal of storing in the FIFO memorizer is uploaded to upper computer software by the usb data transmission engine of microcontroller MCU operation then; Last upper computer software is with the data show received and be stored as ASCII coding system file.
The invention has the beneficial effects as follows: 1, the present domestic blank that does not have special-purpose acupuncture signal of telecommunication grapher has been filled up by this system; 2, simplified the structure of present body surface electric signals acquisition system, employing device has still less been realized high speed, multichannel, synchronous acquisition and has been improved the sample frequency upper limit of acquisition system; 3, the acquisition channel expansion for interface quantity is convenient, and collection plate of every increase will increase by four road acquisition channels; 4, the amplification of every collection plate software set according to the actual requirements; 5, adopt the USB2.0 transmission engine to replace traditional RS232 transmission, improved the uploading speed of data greatly.This acquisition system has higher sample frequency (every passage can reach 20KHz), the certainty of measurement height, and the acquisition channel expansion for interface quantity is convenient, is up to 256 tunnel acquisition channel.The software of this acquisition system can be set the amplification of each collection plate, can gather multiple body surface electric signals simultaneously, as brain electricity, electrocardio, myoelectricity etc.
Description of drawings
Fig. 1 is the structure chart of traditional body surface electrical signal collection system;
Fig. 2 is the structure diagram of body surface electric signals acquisition system of the present invention;
Fig. 3 is body surface electric signals acquisition system overall structure figure of the present invention.
Among the figure:
1, collection plate 2, system acquisition and panel 3, usb data transmission engine 4, host computer 5, microprocessor 6, general programmable interface 7, FIFO memorizer 8, common input/output interface 9, sampling holder 10, multiway analog switch 11, analog-digital converter
12, RS232 module 13, overvoltage crowbar 14, filter circuit 15, amplifying circuit 16, system DAS 17, Logic control module 18, comparator 19, successive approximation register SAR20, D/A converter module 21, RAM memorizer
The specific embodiment
Below in conjunction with accompanying drawing and instantiation high-speed, multi-path and synchronous acquisition system of acupuncture body surface electric signals of the present invention is described further.High-speed, multi-path and synchronous acquisition system of acupuncture body surface electric signals, this system includes collection plate 1, system acquisition and panel 2, usb data transmission engine 3 and the upper computer software 4 of mutual electrical connection; Described collection plate 1 is the collection plate of the identical body surface electric signals of the polylith of electrical connection mutually, every collection plate 1 includes overvoltage crowbar 13, filter circuit 14, amplifying circuit 15 modules and the data-acquisition system DAS16 of mutual electrical connection, collection plate 1 is by overvoltage crowbar 13, filter circuit 14, amplifying circuit 15, body surface electric signals converted to gather signal after the required conditioning; This signal is converted to digital signal through the data-acquisition system DAS16 by microcontroller MCU5 control, and be temporarily stored among the FIFO memorizer 7 of system acquisition and panel 2, the digital signal of storage is uploaded to upper computer software 4 by the usb data transmission engine 3 that microcontroller MCU5 operates in the FIFO memorizer 7 then; Last upper computer software 4 is with the data show received and be stored as ASCII coding system file.
The USB connecting line of described upper computer software 4 by being connected to system acquisition and panel 2 by computer downloads to the amplification of polylith collection plate 1 among the RAM of system acquisition and panel 2, system acquisition and panel 2 are set the output valve of IO mouth according to these amplifications, thereby the amplification of the programmable gain amplifier PGA on the control collection plate 1, make high-speed, multi-path and synchronous acquisition system of acupuncture body surface electric signals can gather brain simultaneously, the electro-physiological signals of the different amplitudes of electrocardio and myoelectricity, the body surface electric signals of described collection plate 1 is the signal of telecommunication of uV level.
Described polylith collection plate 1 can reach 64, all is connected with control bus by data/address bus with panel 2 with collection, and the acquisition channel number can extend to 256 the tunnel.Described usb data transmission engine 3 adopts USB2.0 mode and upper computer software 4 to carry out communication, control transmission and piece with usb protocol are transmitted as data transfer mode, the sampling channel number of high-speed, multi-path and synchronous acquisition system of acupuncture body surface electric signals can extend to 256 the tunnel, and each road sample frequency can reach 20KHz.The software that described upper computer software 4 adopts Visual C++ to write is used the general driving program that EZ-USB provides, and realizes that the basic parameter of multichannel acquisition system of acupuncture body surface electric signals is set, the real-time demonstration and the record of data.
High-speed, multi-path and synchronous acquisition system of acupuncture body surface electric signals function of the present invention is achieved in that
One, conditioning of signal-gather-upload-show and the integral body that writes down realize
As shown in Figure 2; brain; body surface electric signals such as electrocardio and myoelectricity is connected on the body surface electric signals collection plate 1 by external electrode; through overvoltage crowbar 13; filter circuit 14; processing such as amplifying circuit 15 obtain nursing one's health the back signal; conversion of signals after the data-acquisition system DAS16 that is controlled by microprocessor 5 will nurse one's health again is a digital signal; and be stored in the FIFO memorizer 7 of panel; upload to upper computer software 4 by usb data transmission engine 3 then; and in host computer, show and storage, thereby realize the conditioning of whole body surface electric signals-gather-upload-show and recording process.
Two, the population structure of high-speed, multi-path and synchronous acquisition system of acupuncture body surface electric signals
As shown in Figure 3, this system of this high-speed, multi-path and synchronous acquisition system of acupuncture body surface electric signals comprises 4 parts: the collection plate 1 of body surface electric signals, system acquisition and panel 2, usb data transmission engine 3 and upper computer software 4.Body surface electric signals collection plate 1 is used for the filtering of body surface electric signals, amplifies and shaping, converts the body surface electric signals of uV level to after the conditioning of satisfying data-acquisition system DAS16 input range signal; System acquisition and panel 2 are used to control each piece collection plate and carry out analog digital conversion simultaneously, and the sampled data after will changing reads in the FIFO FIFO memorizer 7 of microcontroller MCU5 successively; The sampled data that usb data transmission engine 3 is used for being temporarily stored in FIFO memorizer 7 uploads in the host computer by the USB engine; Upper computer software 4 is used to set sampling parameter, control usb data upload procedure, the result of storage and demonstration image data.Wherein, collection plate 1 part of body surface electric signals can be expanded according to the actual needs, increases the port number of sampling.
Body surface electric signals is via the overvoltage crowbar 13 of collection plate 1, and filter circuit 14 converts to after the modules such as amplifying circuit 15 and gathers signal after the required conditioning; Signal after the conditioning is through passing through general programmable interface 6 and common input/output interface 8 by microcontroller MCU5, the data-acquisition system DAS16 that is controlled be converted to digital signal and be temporarily stored in system acquisition and the FIFO memorizer 7 of panel 2 among, the usb data transmission engine 3 of the digital signal of storage by microprocessor 5 control is uploaded to upper computer software 4 in the FIFO memorizer 7 then; Last upper computer software 4 is with data show of receiving and the system file that is stored as the ASCII coding.
Three, high speed acquisition
As shown in Figure 3, native system has removed discrete sampling holder 9 and multiway analog switch 10 then has utilized data-acquisition system DAS16 to realize the high-speed synchronous collection.Logic control module 17 control sampling holders are simultaneously to the input signal maintenance of sampling in the DAS system, and then control multiway analog switch 10 is incorporated into the signal of each passage in the comparator 18 successively, the output valve of input signal and D/A converter module 20 is compared, when the output valve of input signal and D/A converter module 20 equates, successive approximation register SAR 19 is deposited into the result in the RAM memorizer 21, thereby has realized the conversion of body surface electric analoging signal to digital signal.Devices such as discrete sampling holder and multiway analog switch are integrated into the DAS16 of system, can reduce the sample frequency upper limit and its disturbance that causes of limiting by passage switching time and stabilization time greatly, thereby realized high-precision multichannel, the synchronous high-speed collection.The sample frequency on the present every road of this acquisition system can reach 20kHz (by 14 calculating), and according to sampling thheorem, the signal highest frequency that can gather in theory is 10kHz.And be example with present traditional data collecting system that constitutes via single channel AD by sampling holder and multiway analog switch, suppose that the sampling holder chip is AD582, according to the aperture time of AD582, can calculate the highest sample frequency that every road reaches and only be 194Hz, calculate by 14 AD, the signal highest frequency that can gather in theory is 97Hz.As seen, native system obviously is better than conventional data collecting system.
Four, highly integrated, expansion convenience
Native system can be expanded the acquisition channel number easily by the collection plate 1 that expands body surface electric signals, and every collection plate can come the software set amplification according to the collection needs of reality, so native system can be gathered brain electricity, body surface electric signals such as electrocardio and myoelectricity as required simultaneously.
Five, multipath high-speed transmission
As shown in Figure 3, the body surface electric signals of every four-way enters a block table electrical signal collection plate 1, all collection plate common data bus and control bus.Microprocessor 5 by control each piece collection plate 1 successively with the data read that collects in FIFO memorizer 7, this time of reading data is nanosecond, can ignore substantially than the AD transformation process.Suppose that the highest transfer rate of USB is 480Mb/s, utilize 64 collection plates, can realize 256 tunnel high-speed synchronous collection, the sample frequency of every passage can be up to 20KHz.