Summary of the invention
The object of this invention is to provide a kind of method of testing of pulse-modulated signal, this kind of method of testing used and realizes with low costly in signal analyzer, and data in arteries and veins are carried out to optionally spectrum analysis or signal analysis, very convenient.
To achieve these goals, the technical solution of employing is in the present invention:
A method of testing for pulse-modulated signal, comprises the following steps:
(1) pulse-modulated signal, through AD sampling unit, is converted to the pulse-modulated signal of simulation the digital signal of sampling;
(2) by digital frequency converter, the digital signal of sampling and clock are carried out to digital mixing filtering with cosine and sine signal frequently, remove pulse carrier in signal, production burst baseband signal, and reduce data rate and be convenient to process;
(3) pulsed base band signal divides two-way to process, the first via is used to form trigger impulse and carries out data segment control and choose, pulsed base band signal is through envelope detection unit, pulse envelope shaping unit and trigger parameter setting unit, chooses control unit to data storage; The second tunnel pulsed base band signal is chosen control unit through data storage and is stored to buffer;
(4) envelope detection unit, generates the profile envelope of whole pulse-modulated signal by maximum detection and low-pass filtering algorithm;
(5) pulse envelope shaping unit, by profile envelope by with the pulse triggering signal that relatively generates standard criterion of predetermined threshold level;
(6) trigger parameter setting unit, the trigger parameter setting by pulse triggering signal through step-by-step counting, time delay, produces trigger data gate-control signal;
(7) control unit is chosen in data storage, under the control of gate-control signal, by the pulsed base band signal of corresponding time period in buffer, exports Analysis of Pulse Parameters unit to; Completed calculating and the analysis of pulsed base band signal by Analysis of Pulse Parameters unit.
Preferably, above-mentioned method of testing, also comprises that step display (8) is shown calculating and analysis result by parameter display unit.
Preferably, described buffer is large capacity SDRAM.
The invention has the beneficial effects as follows:
The realization of invention does not need to add any hardware circuit, do not need outside input triggering signal, can automatically generate required trigger data gate-control signal, pulsed base band signal divides two-way to process, make the moment of gate-control signal respective pulses very accurate, delay and the duration of gate-control signal can arrange by trigger parameter setting unit flexibly simultaneously, thereby realize the accurate location of the interior data of arteries and veins in a series of pulses and choose.The present invention realizes with low cost, and the data in arteries and veins are carried out to optionally spectrum analysis or signal resolution, very convenient.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in detail:
A method of testing for pulse-modulated signal, comprises the following steps:
(1) pulse-modulated signal, through AD sampling unit, is converted to the pulse-modulated signal of simulation the digital signal of sampling.
(2) by digital frequency converter, the digital signal of sampling and clock are carried out to digital mixing filtering with cosine and sine signal frequently, remove pulse carrier in signal, production burst baseband signal, and reduce data rate and be convenient to process.
(3) pulsed base band signal divides two-way to process, the first via is used to form trigger impulse and carries out data segment control and choose, pulsed base band signal is through envelope detection unit, pulse envelope shaping unit and trigger parameter setting unit, chooses control unit to data storage; The second tunnel pulsed base band signal is chosen control unit through data storage and is stored to buffer, the preferably large capacity SDRAM of buffer.
(4) envelope detection unit, generates the profile envelope of whole pulse-modulated signal by maximum detection and low-pass filtering algorithm.
(5) pulse envelope shaping unit, by profile envelope by with the pulse triggering signal that relatively generates standard criterion of predetermined threshold level.
(6) trigger parameter setting unit, the trigger parameter setting by pulse triggering signal through step-by-step counting, time delay, produces trigger data gate-control signal.
(7) control unit is chosen in data storage, under the control of gate-control signal, by the pulsed base band signal of corresponding time period in buffer, exports Analysis of Pulse Parameters unit to; Completed calculating and the analysis of pulsed base band signal by Analysis of Pulse Parameters unit.
(8) by parameter display unit, calculating and analysis result are shown.
The key that the present invention realizes is down-conversion after the pulse-modulated signal sampling of input to obtain base band data, then be divided into two-way, one tunnel is for generation of triggering level, another road is for final signal analysis, produce and trigger gate level by input signal itself, thereby without any need for outer triggering signal, just can realize accurate moment correspondence, carry out signal analysis or spectrum analysis thereby accurately choose the data of some period in arteries and veins.
As shown in Figure 1, pulse-modulated signal is converted to a series of sampled data after AD sampling unit, remove pulse carrier at digital frequency converter through mixing, form pulse base band data, being further divided into two-way processes, one tunnel is used to form trigger impulse carries out data segment control and chooses, and another road deposits buffer in, carries out time delay and storage.One tunnel pulse base band data is process maximum detection and low-pass filtering in envelope detection unit, the external envelope of production burst modulation signal, pass through again pulse envelope shaping unit, be shaped as pulse train triggering level, this level is in the setting of the trigger parameter such as step-by-step counting, time delay setting unit synthetic user many kinds of parameters, form trigger data gate-control signal, this trigger data gate-control signal is used further to data storage and chooses control unit and from buffer, choose data in predetermined arteries and veins and carry out Analysis of Pulse Parameters.
The same pulse base band data in another road is chosen control unit control by data storage, deposits in buffer, then selects corresponding data to output to Analysis of Pulse Parameters unit by the high level of trigger data gate-control signal, realizes the analysis of arteries and veins intrinsic parameter.
Pulse-modulated signal as shown in Figure 2, if adopt traditional signal analyzer, cannot realize selectively signal analysis or the spectrum analysis for pulse inside, more cannot realize optionally signal analysis or the spectrum analysis of some pulse inside.In the present invention, first pulse-modulated signal passes through digital frequency converter, remove carrier frequency and then process envelope detection unit, first remove radio-frequency component through maximum detection and then through low-pass filtering therein, be shaped as a series of pulse signals as shown in Figure 3, pulse in the moment of each pulse and time width corresponding diagram 2, wherein can find out that in Fig. 3, the ripple of pulse is larger.User arranges triggering level, in pulse envelope shaping unit, by an amplitude comparator, paired pulses envelope level and triggering level compare, the signal section higher than this triggering level becomes the high level of pulse, and the part lower than triggering level becomes the low level of pulse, and the ripple in pulse has just been filtered like this, only be left and comprise pulse-triggered level signal corresponding to intrapulse information duration, thereby having produced the pulse triggering signal of standard criterion as shown in Figure 4.
On the basis of generated pulse triggering signal, through step-by-step counting, the trigger parameter setting units such as time delay, a series of time parameters of synthetic user are as time of delay again, pre-trigger arrange pre-set time etc. after, produce trigger data gate-control signal, the high level of this gate-control signal is corresponding to data between data or arteries and veins in the selected arteries and veins of user, data storage choose control unit under the control of gate-control signal by the pulse data of corresponding time period, output to Analysis of Pulse Parameters unit, finally complete the analysis of pulse arteries and veins intrinsic parameter in this unit, analysis result outputs to parameter display unit, finally complete the analysis of user's predetermined pulse intrapulse information.
This invention has ensured the synchronizeing of pulse-modulated signal of gate triggering signal for choosing pulse data and input, and the moment can arrange flexibly relatively, thereby ensure flexibility and the accuracy of the interior data decimation of arteries and veins of pulse, realized the analysis of the interior data of random time section arteries and veins of Pulse of Arbitrary in a series of pulses.
Certainly, above-mentioned explanation is not limitation of the present invention, and the present invention is also not limited in above-mentioned giving an example, and variation, remodeling, interpolation or replacement that those skilled in the art make in essential scope of the present invention, also should belong to protection scope of the present invention.