Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of waveform processing method based on the infrared test platform, is intended to solve the problem that waveform processing method of the prior art can't be reduced into the waveform of storage analog data signal output.
The embodiment of the invention is achieved in that a kind of method of the waveform processing based on the infrared test platform, and described method comprises the steps:
Obtain the sampling rate of stored waveform and this waveform;
According to the beat of this sampling rate setting timer, the data of reading this stored waveform by this beat;
The Wave data of reading is carried out obtaining simulating signal after the digital-to-analog conversion, and with this simulating signal output.
The present invention also provides a kind of system of the waveform processing based on the infrared test platform, and described system comprises:
Acquiring unit is used to obtain the sampling rate of stored waveform and this waveform;
Sensing element is used for the beat according to this sampling rate setting timer, the data of reading this stored waveform by this beat;
The conversion output unit, the Wave data that is used for reading carries out obtaining simulating signal after the digital-to-analog conversion, and with this simulating signal output.
The present invention also provides a kind of infrared test platform, and described infrared test platform comprises the system of above-mentioned waveform processing based on the infrared test platform.
The embodiment of the invention compared with prior art, beneficial effect is: technical scheme provided by the invention obtains the sampling rate of the stored waveform that gets access to the beat of timer, and according to after this beat sense data, carry out digital-to-analog conversion and obtain simulating signal, with this simulating signal output, so this method has the advantage that stored waveform is reduced into simulating signal output.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The invention provides a kind of waveform processing method based on the infrared test platform, this method is finished by the infrared test platform, this method as shown in Figure 1, dotted line is represented optional step among Fig. 1, specifically comprises:
S11, obtain the sampling rate of stored waveform and this waveform;
S12, set the beat of timer, the data of reading this stored waveform according to this beat according to this sampling rate;
S13, the Wave data of reading is carried out obtaining simulating signal after the digital-to-analog conversion, and with this simulating signal output.
Need to prove that said method can also comprise after S13:
S14, with output simulating signal carry out obtaining digital signal after the analog to digital conversion;
S15, obtain the waveform after the emulation after this digital signal handled, show simulation waveform, show stored waveform simultaneously.
Said method can also comprise: the operation of circulation S14 and S15.
The method that present embodiment provides obtains the sampling rate of the stored waveform that gets access to the beat of timer, and after reading waveform data according to this beat, carry out digital-to-analog conversion and obtain simulating signal, with this simulating signal output, so this method has the advantage that stored waveform is reduced into simulating signal output, and this method also carries out forming after the analog to digital conversion waveform after the emulation to the simulating signal of output, and show simulation waveform and stored waveform simultaneously, make the user to judge whether the reduction of this passive infrared detection equipment and acquisition process be correct by the difference of contrast simulation waveform and stored waveform.
Embodiment one:
Present embodiment provides a kind of waveform processing method based on the infrared test platform, the technology scene that present embodiment is realized is: the method that present embodiment provides is finished by the infrared test platform, the concrete structure of this infrared test platform as shown in Figure 2, the method that present embodiment provides specifically comprises the steps: as shown in Figure 3
S31, host computer send to slave computer with the sampling rate of stored waveform and this waveform;
S32, slave computer are provided with the beat of sample clock generator and the data of reading stored waveform according to the beat of timer according to this sampling rate;
Need to prove, be provided with according to this sampling rate sample clock generator beat concrete grammar can for: the beat of sample clock generator is arranged to the inverse of sampling rate, and for example sampling rate is 1000H
ZThe time, just the beat of sample clock generator is arranged to 1ms.
The digital-to-analog conversion card of S33, slave computer carries out obtaining output waveform after the digital-to-analog conversion to the Wave data of reading, and output waveform is sent to the analog-to-digital conversion card of slave computer;
Need to prove, above-mentioned output waveform can for, with the infrared data simulating signal after the stored waveform among the S31 reduction.
S34, digital-to-analog conversion card convert digital signal to after this output waveform is sampled by this sampling rate, and this digital signal is sent to host computer;
S35, host computer are handled the back to this digital signal and are shown simulation waveform, show stored waveform simultaneously.
Need to prove that above-mentioned analog-to-digital conversion card and digital-to-analog conversion are stuck in the actual conditions and also can be incorporated in the transition card.
After the Wave data digital-to-analog conversion that the method that present embodiment provides is received by the digital-to-analog conversion card docking in the slave computer, data after the conversion are sent in the analog-to-digital conversion card, analog-to-digital conversion card will be changed the back data and carry out forming simulation waveform by host computer after the analog to digital conversion, and this simulation waveform and stored waveform shown jointly, so this method can not only be reduced into original waveform analog data signal output, can also know whether the reduction of this passive infrared detection equipment and acquisition process be correct by the difference of contrast simulation waveform and stored waveform.
The invention provides a kind of system of the waveform processing based on the infrared test platform, this system specifically comprises as shown in Figure 4:
Acquiring unit 41 obtains the sampling rate of stored waveform and this waveform;
Sensing element 42 is according to the beat of this sampling rate setting timer, the data of reading this stored waveform by this beat;
Conversion output unit 43 carries out the Wave data of reading to obtain simulating signal after the digital-to-analog conversion, and with this simulating signal output.
Optionally, above-mentioned conversion output unit 43 also carries out the simulating signal of output to obtain digital signal after the analog to digital conversion; Described system also comprises:
Obtain the waveform after the emulation after emulation display unit 44 is handled this digital signal, show simulation waveform and stored waveform.
Optionally, sensing element 42 specifically can comprise:
Setting module 421 is set the beat of timer for the inverse of this sampling rate;
Read module 422 and read the data of stored waveform by this beat.
Optionally, said system can also comprise:
Cycling element 45 triggers conversion output unit 43 and emulation display unit 44 carries out cycling.
The system that present embodiment provides carries out the stored waveform that gets access to obtain simulating signal after the digital-to-analog conversion, with this simulating signal output, so this system has the advantage that stored waveform is reduced into simulating signal output, and should hero also the simulating signal of output be carried out forming after the analog to digital conversion waveform after the emulation, and show simulation waveform and stored waveform simultaneously, make the user to judge whether the reduction of this passive infrared detection equipment and acquisition process be correct by the difference of contrast simulation waveform and stored waveform.
The present invention also provides a kind of infrared test platform, and this infrared test platform comprises the system of above-mentioned waveform processing based on the infrared test platform.
It should be noted that among the said system embodiment that each included unit is just divided according to function logic, but is not limited to above-mentioned division, as long as can realize function corresponding; In addition, the concrete title of each functional unit also just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
In addition, one of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, corresponding program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be a ROM (read-only memory), disk or CD etc.
In sum, technical scheme provided by the invention has the advantage that stored waveform is reduced into simulating signal output.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.