CN102495387B - Method for automatically calibrating direct current accuracy of digital oscilloscope on basis of binary search - Google Patents

Method for automatically calibrating direct current accuracy of digital oscilloscope on basis of binary search Download PDF

Info

Publication number
CN102495387B
CN102495387B CN 201110432451 CN201110432451A CN102495387B CN 102495387 B CN102495387 B CN 102495387B CN 201110432451 CN201110432451 CN 201110432451 CN 201110432451 A CN201110432451 A CN 201110432451A CN 102495387 B CN102495387 B CN 102495387B
Authority
CN
China
Prior art keywords
exp
max
host computer
digital oscilloscope
avg
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN 201110432451
Other languages
Chinese (zh)
Other versions
CN102495387A (en
Inventor
刘家玮
邹璞
胡志臣
杨立杰
栾天
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Aerospace Measurement and Control Technology Co Ltd
Original Assignee
Beijing Aerospace Measurement and Control Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Aerospace Measurement and Control Technology Co Ltd filed Critical Beijing Aerospace Measurement and Control Technology Co Ltd
Priority to CN 201110432451 priority Critical patent/CN102495387B/en
Publication of CN102495387A publication Critical patent/CN102495387A/en
Application granted granted Critical
Publication of CN102495387B publication Critical patent/CN102495387B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Measurement Of Current Or Voltage (AREA)

Abstract

The invention discloses a method for automatically calibrating the direct current accuracy of a digital oscilloscope on the basis of the binary search. After the method is adopted, the aims of reducing the calibrating time of the digital oscilloscope and improving the calibrating accuracy can be fulfilled. Specifically, the method comprises the following steps: a user sets a corrected value of anadder of a front-end conditioning circuit, a channel and a range of the digital oscilloscope, a calibration error limit epsilon and a voltage amplitude Dexp of a calibration target analog voltage signal; when the corrected value of the adder is set into Vmin, the digital oscilloscope starts to acquire to obtain an average value Dmin corresponding to the Vmin; likewise, the corrected value of the adder is set into Vmax, an average value Dmax corresponding to the Vmax is obtained; an upper computer carries out data processing by adopting a binary search algorithm and generates a calibrating result Vexp according to the Dmin, the Dmax, the Dexp and the epsilon; the upper computer sends the Vexp to a storage and resets the digital oscilloscope; and when the user restarts the upper computer, the upper computer reads the calibrating result from the storage and writes the calibrating result into the adder in the front-end conditioning circuit, wherein the calibrating result is used for correcting a direct current error generated by the front-end conditioning circuit.

Description

A kind of digital oscilloscope DC precision automatic calibrating method based on searching for by half
Technical field
The invention belongs to the digital oscilloscope field, be specifically related to a kind of digital oscilloscope DC precision automatic calibrating method based on searching for by half.
Background technology
Since U.S. Nicolet Plastique Ltee in 1972 succeeded in developing in the world first number of units word oscillograph, the development through for many years had a very wide range of applications in all trades and professions.Its principle of work is for input signal, by time base circuit control, samples by the certain hour interval, quantizes by A/D converter again, and these instantaneous values or sampled value are carried out conversion.Because the difference of every number of units word oscillograph self hardware circuit characteristic, signal will be introduced the uncertain dc error of amplitude after by the conditioning of oscillograph front end modulate circuit, this just need to revise dc error by increase adding circuit in the front end modulate circuit.Obtaining the modified value that totalizer need to write in the situation that all passages, range and input impedance are determined, is the work that the calibration of oscillograph DC precision need to be finished.
Yet in the actual alignment process, normally by the designer according to self experience, obtain the modified value of totalizer by the method for progressively attempting, can expend a large amount of manpowers and time like this.Because A/D converter has the monotonicity characteristics, designs method provided by the present invention in conjunction with these monotonicity characteristics.
Summary of the invention
In view of this, the invention provides a kind of digital oscilloscope DC precision automatic calibrating method based on searching for by half, can be so that the user can flexible configuration calibrate parameter, to reach the purpose of the calibration accuracy that improves digital oscilloscope.
The present invention adopts following technical scheme for achieving the above object:
A kind of digital oscilloscope DC precision automatic calibrating method based on searching for by half, described digital oscilloscope comprises: front end modulate circuit, A/D translation circuit, storer, processor, trigger control circuit and clock control and modulate circuit, wherein, the front end modulate circuit links to each other with storer by A/D translation circuit, processor respectively, trigger control circuit connects respectively processor, clock control and modulate circuit, clock control is connected the A/D translation circuit with modulate circuit, processor connects host computer.The method is carried out following calibration steps for each passage in the digital oscilloscope:
S00, passage to be calibrated and range in the digital oscilloscope are set, from described range, choose a voltage magnitude as the voltage amplitude D of the target simulation voltage signal of passage to be calibrated Exp, simultaneously, according to the totalizer type of the passage to be calibrated of front end modulate circuit inside in the digital oscilloscope, the scope that the modified value of totalizer is set by host computer is [V Min, V Max], calibration error is limited to ε.
S01, host computer arrange totalizer by processor and use modified value V Min, sending to the front end modulate circuit by the data of passage input to be calibrated, the totalizer in the front end modulate circuit is carried out additive operation, and described front end modulate circuit produces the analog voltage signal of corresponding amplitude and is sent to the A/D translation circuit.Simultaneously, the host computer time-delay set time, namely behind 50ms~1s, produce trigger pip and be sent to clock control and modulate circuit by processor control trigger control circuit, clock control and modulate circuit produce sampling clock and are sent to the A/D translation circuit.
S02, A/D translation circuit carry out the A/D conversion and produce digital voltage signal described analog voltage signal according to described sampling clock, and this digital voltage signal is sent in the storer, treat that 1000 data storages are complete, stop to gather.Processor obtains digital voltage signal and is transferred to host computer by data bus from storer, host computer carries out the D/A conversion to described digital voltage signal and averages, and is designated as D Min
S03, host computer arrange totalizer by processor and use modified value V Max, carry out the process of step S01~S02, in host computer, obtain V MaxCorresponding mean value D Max
S04, host computer are according to D Min, D Max, D Exp, ε, adopt the algorithm of by half search to carry out data and process and produce calibration result V Exp
The described by half algorithm of search is:
1) host computer arranges totalizer by processor and uses modified value V Avg, V Avg=(V Min+ V Max)/2, V AvgRound downwards, and make totalizer carry out additive operation, digital oscilloscope carries out data acquisition and obtains V AvgCorresponding mean value D AvgAnd be sent to host computer.
2) if | D Min-D Exp|<ε, then calibration value V Exp=V Min, go to 7), otherwise go to 3).
3) if | D Max-D Exp|<ε, then calibration value V Exp=V Max, go to 7), otherwise go to 4).
4) if (V Max-V Min)=1, then incite somebody to action | D Min-D Exp|, | D Max-D Exp| compare, if | D Max-D Exp|<| D Min-D Exp|, V then Exp=V MaxIf | D Max-D Exp|>| D Min-D Exp|, V then Exp=V Min, go to 7); If (V Max-V Min) be not 1, then go to 5).
5) if (D Avg-D Exp) * (D Min-D Exp)<0, then V ExpBe positioned at V AvgAnd V MinBetween, this seasonal V Max=V Avg, redirect 1), otherwise redirect 6).
6) if (D Avg-D Exp) * (D Min-D Exp)>0, then V ExpBe positioned at V AvgAnd V MaxBetween, this seasonal V Min=V Avg, redirect 1).
7) calibration finishes.
S05, host computer are with calibration result V ExpBe sent to storer by processor, and the digital oscilloscope that resets.
When S06, host computer were restarted again, host computer read calibration result and this calibration result is write to totalizer in the front end modulate circuit by processor from storer, and this calibration result is as the totalizer modified value.
Beneficial effect:
(1) method provided by the present invention adopts the by half algorithm of search, according to the totalizer modified value that the user arranges, carries out repeatedly iteration, has improved the calibration accuracy of digital oscilloscope, thereby has reduced human cost, has improved productibility.
(2) method provided by the present invention can according to user's different needs, carry out the setting of the voltage amplitude of calibration error limit and target simulation voltage signal, and the calibration result in the combined memory can satisfy the different production of user and debugging demand.
Description of drawings
Fig. 1 is the composition frame chart of digital oscilloscope used in the present invention.
Embodiment
Below in conjunction with the accompanying drawing embodiment that develops simultaneously, describe the present invention.
When the user uses digital oscilloscope, if the voltage signal of the parameter generating that digital oscilloscope arranges according to the user and voltage signal that digital oscilloscope collects when there is any discrepancy, need to be calibrated digital oscilloscope.The invention provides a kind of digital oscilloscope direct current biasing automatic calibrating method based on searching for by half.
The composition frame chart of Fig. 1 digital oscilloscope used in the present invention.This digital oscilloscope comprises: front end modulate circuit, A/D translation circuit, storer, processor, trigger control circuit and clock control and modulate circuit.The annexation of each building block is: the front end modulate circuit links to each other with storer by A/D translation circuit, processor respectively, trigger control circuit connects respectively processor, clock control and modulate circuit, clock control is connected the A/D translation circuit with modulate circuit, processor connects host computer.
The concrete steps of method provided by the present invention are:
S00, user can arrange the passage to be calibrated of digital oscilloscope, such as passage 1:CH1, and arrange range for-5V~+ 5V:1V/div, the voltage amplitude D of Offered target analog voltage signal Exp=0.The user is according to the type (such as 10,12) of the totalizer of front end modulate circuit inside, and the scope that the totalizer modified value is set by host computer is [V Min, V Max], calibration error is limited to ε.
S01, host computer arrange totalizer by processor and use modified value V MinData by passage input to be calibrated send to the front end modulate circuit, totalizer in the front end modulate circuit is carried out additive operation, the front end modulate circuit according to the user arrange generation-5V~+ aanalogvoltage (level) signal in the 5V amplitude range and be sent to the A/D translation circuit.Simultaneously, the host computer time-delay set time (is generally 500ms, the analog voltage signal that this moment, the front end modulate circuit produced is stable) after, host computer produces trigger pip and is sent to clock control and modulate circuit by processor control trigger control circuit, and clock control and modulate circuit produce sampling clock and be sent to the A/D translation circuit.
S02, digital oscilloscope begin to gather: the A/D translation circuit is according to described sampling clock, described analog voltage signal is carried out the A/D conversion, after the A/D conversion, produce digital voltage signal and be sent in the storer, treat that 1000 data storages are complete, stop to gather.Processor obtains digital voltage signal and is transferred to host computer by data bus from storer, host computer is changed described digital voltage signal and averaged, and is designated as D Min
S03, similarly, host computer arranges totalizer by processor and uses modified value V Max, carry out the process of step S01~S02, in host computer, obtain V MaxCorresponding mean value is D Max
S04, host computer are according to D Min, D Max, D Exp, ε, adopt the algorithm of by half search to carry out data and process and produce calibration result V Exp
The described by half algorithm of search is:
1) host computer arranges totalizer by processor and uses modified value V Avg, V Avg=(V Min+ V Max)/2 (rounding downwards), and make totalizer carry out additive operation, digital oscilloscope carries out data acquisition and obtain V in host computer AvgCorresponding mean value D Avg
2) if | D Min-D Exp|<ε, then calibration value V Exp=V Min, go to 7), otherwise go to 3).
3) if | D Max-D Exp|<ε, then calibration value V Exp=V Max, go to 7), otherwise go to 4).
4) if (V Max-V Min)=1, then incite somebody to action | D Min-D Exp|, | D Max-D Exp| compare, if | D Max-D Exp|<| D Min-D Exp|, V then Exp=V MaxIf | D Max-D Exp|>| D Min-D Exp|, V then Exp=V Min, go to 7); If (V Max-V Min) be not 1, then go to 5).
5) if (D Avg-D Exp) * (D Min-D Exp)<0, then V ExpBe positioned at V AvgAnd V MinBetween, this seasonal V Max=V Avg, redirect 1), otherwise redirect 6).
6) if (D Avg-D Exp) * (D Min-D Exp)>0, then V ExpBe positioned at V AvgAnd V MaxBetween, this seasonal V Min=V Avg, redirect 1).
7) calibration finishes.
S05, host computer are with calibration result V ExpBe sent to storer by processor, and the digital oscilloscope that resets.
S06, when host computer is restarted host computer again, host computer reads calibration result and this calibration result is write to totalizer in the front end modulate circuit by processor from storer, this calibration result is as the totalizer modified value, so that the dc error of digital oscilloscope is less than described calibration error limit ε, thereby so that the set voltage signal of the voltage signal that digital oscilloscope finally collects and user is consistent, realized the oscillographic calibration of numeral.
In sum, above is preferred embodiment of the present invention only, is not for limiting protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (2)

1. one kind based on the digital oscilloscope DC precision automatic calibrating method of search by half, described digital oscilloscope comprises: front end modulate circuit, A/D translation circuit, storer, processor, trigger control circuit and clock control and modulate circuit, wherein, the front end modulate circuit links to each other with storer by A/D translation circuit, processor respectively, trigger control circuit connects respectively processor, clock control and modulate circuit, clock control is connected the A/D translation circuit with modulate circuit, processor connects host computer; It is characterized in that, the method is carried out following calibration steps for each passage in the digital oscilloscope:
S00, passage to be calibrated and range in the digital oscilloscope are set, from described range, choose a voltage magnitude as the voltage amplitude D of the target simulation voltage signal of passage to be calibrated Exp, simultaneously, according to the totalizer type of the passage to be calibrated of front end modulate circuit inside in the digital oscilloscope, the scope that the modified value of totalizer is set by host computer is [V Min, V Max], calibration error is limited to ε;
S01, host computer arrange totalizer by processor and use modified value V Min, sending to the front end modulate circuit by the data of passage input to be calibrated, the totalizer in the front end modulate circuit is carried out additive operation, and described front end modulate circuit produces the analog voltage signal of corresponding amplitude and is sent to the A/D translation circuit; Simultaneously, host computer produced trigger pip and is sent to clock control and modulate circuit by processor control trigger control circuit after the time-delay set time, and clock control and modulate circuit produce sampling clock and be sent to the A/D translation circuit;
S02, A/D translation circuit carry out the A/D conversion and produce digital voltage signal described analog voltage signal according to described sampling clock, and this digital voltage signal is sent in the storer, treat that 1000 data storages are complete, stop to gather; Processor obtains digital voltage signal and is transferred to host computer by data bus from storer, host computer carries out the D/A conversion to described digital voltage signal and averages, and is designated as D Min
S03, host computer arrange totalizer by processor and use modified value V Max, carry out the process of step S01~S02, in host computer, obtain V MaxCorresponding mean value D Max
S04, host computer are according to D Min, D Max, D Exp, ε, adopt the algorithm of by half search to carry out data and process and produce calibration result V Exp
The described by half algorithm of search is:
1) host computer arranges totalizer by processor and uses modified value V Avg, V Avg=(V Min+ V Max)/2, V AvgRound downwards, and make totalizer carry out additive operation, digital oscilloscope carries out data acquisition and obtains V AvgCorresponding mean value D AvgAnd be sent to host computer;
2) if | D Min-D Exp|<ε, then calibration value V Exp=V Min, go to 7), otherwise go to 3);
3) if | D Max-D Exp|<ε, then calibration value V Exp=V Max, go to 7), otherwise go to 4);
4) if (V Max-V Min)=1, then incite somebody to action | D Min-D Exp|, | D Max-D Exp| compare, if | D Max-D Exp|<| D Min-D Exp|, V then Exp=V MaxIf | D Max-D Exp|>| D Min-D Exp|, V then Exp=V Min, go to 7); If (V Max-V Min) be not 1, then go to 5);
5) if (D Avg-D Exp) * (D Min-D Exp)<0, then V ExpBe positioned at V AvgAnd V MinBetween, this seasonal V Max=V Avg, redirect 1), otherwise redirect 6);
6) if (D Avg-D Exp) * (D Min-D Exp)>0, then V ExpBe positioned at V AvgAnd V MaxBetween, this seasonal V Min=V Avg, redirect 1);
7) calibration finishes;
S05, host computer are with calibration result V ExpBe sent to storer by processor, and the digital oscilloscope that resets;
S06, when host computer is restarted again, host computer reads calibration result and this calibration result is write to totalizer in the front end modulate circuit by processor from storer, this calibration result is as the totalizer modified value.
2. the method for claim 1 is characterized in that, the described set time is 50ms~1s.
CN 201110432451 2011-12-21 2011-12-21 Method for automatically calibrating direct current accuracy of digital oscilloscope on basis of binary search Active CN102495387B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110432451 CN102495387B (en) 2011-12-21 2011-12-21 Method for automatically calibrating direct current accuracy of digital oscilloscope on basis of binary search

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110432451 CN102495387B (en) 2011-12-21 2011-12-21 Method for automatically calibrating direct current accuracy of digital oscilloscope on basis of binary search

Publications (2)

Publication Number Publication Date
CN102495387A CN102495387A (en) 2012-06-13
CN102495387B true CN102495387B (en) 2013-10-23

Family

ID=46187227

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110432451 Active CN102495387B (en) 2011-12-21 2011-12-21 Method for automatically calibrating direct current accuracy of digital oscilloscope on basis of binary search

Country Status (1)

Country Link
CN (1) CN102495387B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103543427B (en) * 2013-10-28 2016-05-25 中国电子科技集团公司第四十一研究所 Passive cross modulation test system calibration steps and device based on intelligent search algorithm
CN103697928B (en) * 2013-12-25 2016-05-11 北京航天测控技术有限公司 A kind of instrument calibration method and device
CN103995226B (en) * 2013-12-27 2017-01-04 杭州长川科技股份有限公司 For the method improving analog integrated circuit test system precision
CN106896251B (en) * 2015-12-17 2019-06-04 北京航天测控技术有限公司 A kind of automatic correcting method of oscillograph inband flatness
CN110426545B (en) * 2019-09-27 2019-12-24 深圳市鼎阳科技有限公司 Precision adjusting method based on digital compensation and digital oscilloscope

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4564804A (en) * 1981-06-08 1986-01-14 Tektronix, Inc. Method and apparatus for automatically detecting signal levels
US4779045A (en) * 1987-01-29 1988-10-18 Tektronix, Inc. Automatic peak-to-peak amplitude measurement system
CN101131419B (en) * 2007-09-29 2011-06-08 上海市计量测试技术研究院 Frequency span calibration and detection method for digital oscilloscope
CN101609106B (en) * 2009-05-27 2010-12-08 东南大学 Automatic setting method of digital oscilloscope
CN101655542A (en) * 2009-07-21 2010-02-24 秦轲 Method for calibrating digital oscilloscope
CN102043138B (en) * 2009-10-23 2014-03-26 鸿富锦精密工业(深圳)有限公司 System and method for calibrating channel of oscilloscope

Also Published As

Publication number Publication date
CN102495387A (en) 2012-06-13

Similar Documents

Publication Publication Date Title
CN102495387B (en) Method for automatically calibrating direct current accuracy of digital oscilloscope on basis of binary search
CN114203570A (en) Calibration method of IC chip, related system and device
WO2019095796A1 (en) Method for preloading application, terminal device, and medium
CN101779376A (en) Circuit device and method of measuring clock jitter
CN103051339B (en) A kind of AD sampling value correcting method and system
CN109283967A (en) A kind of micro-control unit MCU clock correcting method and relevant device
CN105388445A (en) Automatic meter calibration method for single-phase electric energy meter
US11783106B2 (en) Circuit testing and manufacture using multiple timing libraries
US20230172555A1 (en) Sensor error mitigation
CN101964660B (en) Self-correcting analog quantity output circuit
CN110211181B (en) Visual positioning method and device, storage medium and electronic equipment
CN114692427A (en) Equipment calibration method and device
CN114676825A (en) Neural network model quantification method, system, device and medium
US9571116B2 (en) Circuit and method of adaptive filtering digital calibration of ADC
CN104467701A (en) A voltage correcting method for a power amplifier and an electronic terminal
CN115118559A (en) Sparse channel estimation method, device, equipment and readable storage medium
CN111077354B (en) Device and method for generating user-defined waveform based on FPGA
CN111783872B (en) Method, device, electronic equipment and computer readable storage medium for training model
CN104915206A (en) Method for managing attributes and data on DSP based on text analysis
CN108845765B (en) NAND data reading method, system, device and storage medium
CN107632785A (en) A kind of collocation method of storage device, device and readable storage medium storing program for executing
CN105158715B (en) A kind of high-accuracy voltage calibration method
CN107562266B (en) Capacitive screen calibration method and device and terminal equipment
CN111061248A (en) Task scheduling system and method based on time slice slicing
CN112599132A (en) Voice processing device and method based on storage and calculation integrated chip and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant