A kind of method and apparatus for improving signal triggering precisionTechnical field
The application is related to Electronic Testing fields of measurement, more particularly to a kind of method and apparatus for improving signal triggering precision.
Background technology
Occasion is measured in Electronic Testing, the problems such as engineers are frequently necessary to pay close attention to the shake of measured signal, is come with this trueDetermine the stability of signal in itself.And measuring instrument such as oscillograph as observation signal etc., the triggering precision of its signal just becomeIt is critically important because when with the shakes of the measurement signals such as oscillograph, if the signal triggering precision of oscillograph in itself with regard to bad, willTriggering shipment is introduced, so as to which measurement result is also inaccurate.
Technical scheme as shown in Figure 1, the program realize signal using traditional time-digital conversion circuit (TDC)Triggering correction.The analog signal of input is obtained serial compared with simulation comparative level is in analog comparator firstHigh level or low level (digital level), to give the time-data-converting block;Then time-data-converting block profitThe calculating of triggering corrected value is realized with time-digital conversion circuit;Last signal triggering correction module is turned using time-numeralThe corrected value of mold changing block output is corrected to the data signal collected by data acquisition and control module, and it is defeated to correct resultGo out to follow-up display module.Fig. 1 oscillograph based on time-digital conversion technique, when signal triggering precision is limited toBetween-conversion accuracy and conversion time of digital conversion circuit (TDC), realize that the triggering of signal correction has perhaps using the technologyMore shortcomings:
1st, the conversion time length of time-digital conversion circuit (TDC), completing once conversion needs several delicate times,And then influence the capture rate of signal;
2nd, the conversion accuracy of time-digital conversion circuit (TDC) is limited, because conversion accuracy is limited to use processingThe frequency of clock, and the clock frequency is general all in 100MHz or so, therefore conversion accuracy can only often arrive ns;
3rd, because time-digital conversion circuit (TDC) is analog circuit, therefore cost is higher.
The content of the invention
In order to solve the problems, such as traditional signal triggering correction, time-consuming, precision is low and cost is high, and the application provides a kind ofImprove the method and apparatus of signal triggering precision.
According to the application's in a first aspect, the application provides a kind of method for improving signal triggering precision, including following stepSuddenly:
Analog signal analog-to-digital conversion step to be measured:Analog signal to be measured is received, converts thereof into data signal to be measuredAfter export;
Trigger data extraction step:The bag of extraction one in the data signal exported from analog signal analog-to-digital conversion step to be measuredSignal containing trigger data is simultaneously cached;
Signal reconstruction step:Obtain the signal comprising trigger data in trigger data extraction step and signal weight is carried out to itStructure, to improve the equivalent sampling rate of this signal;
Trigger search step:Triggering search is carried out simultaneously to the signal comprising trigger data after being reconstructed in signal reconstruction stepOutput one includes the signal of triggering correcting value data;
Digital signal acquiring step to be measured:Gather and store the numeral letter exported in analog signal analog-to-digital conversion step to be measuredNumber;
Signal triggers aligning step:The data signal stored in digital signal acquiring step to be measured is obtained, and is searched with triggeringThe signal comprising triggering correcting value data exported in rope step carries out signal triggering correction to the data signal of the acquisition.
More preferably, the method for above-mentioned raising signal triggering precision also includes digital triggering step:From analog signal mould to be measuredTrigger signal is extracted in the data signal exported in number switch process;This trigger signal is used to control in trigger data extraction stepThe extraction of signal comprising trigger data and caching, and for controlling adopting for data signal in digital signal acquiring step to be measuredCollection and storage.
According to the second aspect of the application, the application provides a kind of device for improving signal triggering precision, it is characterised in thatIncluding:
Analog-to-digital conversion module (1), for receiving analog signal to be measured, convert thereof into defeated after data signal to be measuredGo out;
Trigger data extraction module (2), its input are connected with the output end of analog-to-digital conversion module (1), for from modulusA signal comprising trigger data is extracted in the data signal of modular converter (1) output and is cached;
Signal reconstruction module (3), its input is connected with the output end of trigger data extraction module (2), tactile for obtainingThe signal comprising trigger data of the middle caching of hair data extraction module (2) simultaneously carries out signal reconstruction to it, to improve this signalEquivalent sampling rate;
Search module (4) is triggered, its input is connected with the output end of signal reconstruction module (3), for signal reconstructionThe signal comprising trigger data of module (3) output carries out triggering search and exports a signal for including triggering correcting value data;
Digital signal acquiring module (5), its input are connected with the output end of analog-to-digital conversion module (1), for gathering simultaneouslyStore the data signal of analog-to-digital conversion module (1) output;
Signal triggering correction module (6), its input with trigger search module (4), digital signal acquiring module (5) it is defeatedGo out end to be connected, for obtaining the signal and digital signal acquiring that include triggering correcting value data of triggering search module (4) outputThe data signal of module (5) storage, and signal is carried out to the data signal with the signal comprising triggering correcting value dataTriggering correction.
More preferably, the device of above-mentioned raising signal triggering precision, in addition to digital triggering module (7), its input and mouldThe output end of number modular converters (1) is connected, output end and trigger data extraction module (2), digital signal acquiring module (5) it is defeatedEnter end to be connected, carried for extraction trigger signal in the data signal that export from analog-to-digital conversion module (1) and exporting to trigger dataModulus block (2), digital signal acquiring module (5), the trigger signal are used to control trigger data extraction module (2) to comprising tactileExtraction and the caching of the signal of data are sent out, and for controlling collection of the digital signal acquiring module (5) to data signal with depositingStorage.
The beneficial effect of the application is:
Before triggering search is carried out, signal reconstruction first is carried out to the signal comprising trigger data, so that signal triggersPrecision will not be deteriorated with the reduction of sample rate;The application additionally uses digital triggering, takes short, precision height, and cost is low.
Brief description of the drawings
Fig. 1 is a kind of oscillograph that tradition is based on time-digital conversion technique;
Fig. 2 is a kind of schematic diagram of the method for the raising signal triggering precision of embodiment of the application;
Fig. 3 is a kind of structural representation of the device of the raising signal triggering precision of embodiment of the application.
Embodiment
The application is described in further detail below by embodiment combination accompanying drawing.
Fig. 1 is refer to, present embodiment discloses a kind of method for improving signal triggering precision, is comprised the following steps:
Analog signal analog-to-digital conversion step S01 to be measured:Analog signal to be measured is received, converts thereof into numeral letter to be measuredExported after number.
Digital triggering step S102:Triggering is extracted in the data signal exported from analog signal analog-to-digital conversion step to be measuredSignal.This trigger signal is a digital trigger signal, and triggering mode is digital triggering, and it can be from data signal to be measuredObtain required data and a trigger signal is produced by algorithm.
Trigger data extraction step S103:Trigger signal in digital triggering step S102 is from analog signal mould to be measuredA signal comprising trigger data is extracted in the data signal exported in number switch process and is cached.
Signal reconstruction step S104:Obtain the signal comprising trigger data in trigger data extraction step and letter is carried out to itNumber reconstruct, to improve the equivalent sampling rate of this signal.
Trigger search step S105:Triggering is carried out to the signal comprising trigger data after reconstructing in signal reconstruction step to searchRope simultaneously exports a signal for including triggering correcting value data.Triggering search is carried out to the signal comprising trigger data after reconstruct,Specifically carrying out interpolation processing to the signal comprising trigger data after this reconstruct, and a kind of level manner of comparison is takenCalculate it is interpolated after each frame signal for including trigger data data relative offset value, this contains triggering with respect to deviantThe information of correcting value data.
Digital signal acquiring step S106 to be measured:Trigger signal in digital triggering step S102, which is gathered and stored, to be treatedThe data signal exported is surveyed in analog signal analog-to-digital conversion step.
Signal triggering aligning step S107:Obtain the data signal stored in digital signal acquiring step to be measured, and with touchingThe signal comprising triggering correcting value data exported in hair search step carries out signal triggering school to the data signal of the acquisitionJust.
Step display S108:The data signal for triggering correction through signal is carried out to be displayed for user's observation.
Correspondingly, Fig. 2 is refer to, is a kind of device of raising signal accuracy of the application, including:
Analog-to-digital conversion module 1, for receiving analog signal to be measured, exported after converting thereof into data signal to be measured;
Trigger data extraction module 2, its input are connected with the output end of analog-to-digital conversion module 1, for from analog-to-digital conversionA signal comprising trigger data is extracted in the data signal that module 1 exports and is cached;
Signal reconstruction module 3, its input are connected with the output end of trigger data extraction module 2, and number is triggered for obtainingAccording to the signal comprising trigger data cached in extraction module 2 and signal reconstruction is carried out to it, adopted with improving the equivalent of this signalSample rate;
Search module 4 is triggered, its input is connected with the output end of signal reconstruction module 3, for signal reconstruction module 3The signal comprising trigger data of output carries out triggering search and exports a signal for including triggering correcting value data;
Digital signal acquiring module 5, its input are connected with the output end of analog-to-digital conversion module 1, for gathering and storingThe data signal that analog-to-digital conversion module 1 exports;
Signal triggers correction module 6, its input and triggering search module 4, the output end phase of digital signal acquiring module 5Even, the signal comprising triggering correcting value data and digital signal acquisition module 5 for obtaining the triggering output of search module 4 storeData signal, and with this include triggering correcting value data signal data signal is carried out signal triggering correct.
Display module 8, its input are connected with the output end of signal triggering correction module 6, and school is triggered for reception signalWhat positive module 6 exported triggers the data signal of correction through signal and carries out being displayed for user's observation.Certainly, to this through signalBefore the data signal of triggering correction is shown, as required, decision is wanted to carry out it some necessary processing, soWaveform scaling of data signal etc..
In addition, the device of this raising signal accuracy can also include digital triggering module 7, its input and analog-to-digital conversion mouldThe output end of block 1 is connected, and output end is connected with the input of trigger data extraction module 2, digital signal acquiring module 5, is used forTrigger signal is extracted in the data signal exported from analog-to-digital conversion module 1 and is exported to trigger data extraction module 2, data signalAcquisition module 5, trigger signal are used to control extraction and caching of the trigger data extraction module 2 to the signal comprising trigger data,And for controlling collection and storage of the digital signal acquiring module 5 to data signal.
The method and apparatus for the raising signal triggering precision of the application describes in detail above.
Before triggering is searched for, extraction includes directly from the data signal after the conversion of analog-to-digital conversion module 1 touches the applicationThe signal of data is sent out, and signal reconstruction is carried out to it, to improve the equivalent sampling rate of this signal for including trigger data;Again to thisThe signal comprising trigger data after reconstruct carries out triggering search, can obtain precision and be significantly larger than analog-to-digital conversion module 1 samplingThe triggering correcting value data of frequency.The signal output comprising this triggering correcting value data is finally triggered into correction module to signal again6, so as to obtain the high output signal of triggering precision.This is the method that signal reconstruction is carried out using not down-sampled data,So that signal triggering precision is not subject to the reduction of sample rate and is deteriorated, and by the sampling clock cycle of analog-to-digital conversion module 1This precision of equivalent sampling clock cycle that has brought up to after signal reconstruction of this precision.
In above process, signal reconstruction has been carried out before triggering is searched for, the precision of triggering search can be greatly improved,It is deteriorated so as to solve the problems, such as conventional trigger precision to be reduced with sample rate.
Meanwhile trigger the signal that search is directed to include trigger data, rather than Wave data.If triggering search is directed toBe by certain triggering correction data signal to be measured (i.e. by triggering correction Wave data signal), when trigger point does not existWhen observing in its device such as the screen ranges of oscillograph, it is possible to lead to not search effective trigger point, so as to causeIt can not stablize and trigger.As described above, triggering search is directed to include the signal of trigger data, rather than Wave data signal,Triggering search can not search for when solving the problems, such as triggering along not in screen ranges.The application directly stores triggered time pointNeighbouring original sampling data, therefore, no matter horizontal triggering is somewhere, stable triggering can be realized.And the applicationTriggering search is carried out using the initial data triggered near effective time point.
In addition, the application using digital triggering, solves traditional analog triggering method and device, time-consuming, precision is lowWith cost it is high the problem of.
Above content is to combine the further description that specific embodiment is made to the application, it is impossible to assert this ShenSpecific implementation please is confined to these explanations.For the application person of an ordinary skill in the technical field, do not taking offOn the premise of conceiving from the present application, some simple deduction or replace can also be made.