CN110161309A - A kind of method, system and the oscillograph of measuring signal frequency - Google Patents

A kind of method, system and the oscillograph of measuring signal frequency Download PDF

Info

Publication number
CN110161309A
CN110161309A CN201910320201.2A CN201910320201A CN110161309A CN 110161309 A CN110161309 A CN 110161309A CN 201910320201 A CN201910320201 A CN 201910320201A CN 110161309 A CN110161309 A CN 110161309A
Authority
CN
China
Prior art keywords
frequency
signal
reference signal
measured
preset value
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.)
Granted
Application number
CN201910320201.2A
Other languages
Chinese (zh)
Other versions
CN110161309B (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.)
Shenzhen Orbbec Co Ltd
Original Assignee
Shenzhen Orbbec 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 Shenzhen Orbbec Co Ltd filed Critical Shenzhen Orbbec Co Ltd
Priority to CN201910320201.2A priority Critical patent/CN110161309B/en
Publication of CN110161309A publication Critical patent/CN110161309A/en
Application granted granted Critical
Publication of CN110161309B publication Critical patent/CN110161309B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R13/00Arrangements for displaying electric variables or waveforms
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R23/00Arrangements for measuring frequencies; Arrangements for analysing frequency spectra
    • G01R23/02Arrangements for measuring frequency, e.g. pulse repetition rate; Arrangements for measuring period of current or voltage
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R23/00Arrangements for measuring frequencies; Arrangements for analysing frequency spectra
    • G01R23/16Spectrum analysis; Fourier analysis

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Measuring Frequencies, Analyzing Spectra (AREA)

Abstract

A kind of method the present invention provides measuring signal frequency includes the reference signal S for receiving the measured signal S comprising frequency information to be measured and given frequency information0, to received measured signal S and reference signal S0Addition processing is carried out, sum signal S is generated1, with preset sample frequency to sum signal S1It is sampled, the frequency for the sampled signal that measurement sampling obtains, and is denoted as Δ f, wherein Δ f includes measured signal S and reference signal S0Frequency difference, judge measurement frequency difference whether be less than preset value, if measurement frequency difference be less than preset value, adjust reference signal S0Frequency, and frequency difference Δ f is updated, until updated frequency difference Δ f ' is less than preset value, according to reference signal S adjusted0' frequency, the frequency of measured signal S is determined, wherein reference signal S adjusted0' it is corresponding reference signal when making frequency difference Δ f ' less than preset value after adjusting.Through the embodiment of the present invention can be under the premise of not influencing measurement accuracy, cost needed for reducing measuring system.

Description

A kind of method, system and the oscillograph of measuring signal frequency
Technical field
The present invention relates to electronic measuring technology field more particularly to a kind of methods of measuring signal frequency, system, oscillograph And computer readable storage medium.
Background technique
Oscillograph is a kind of electronic measuring instrument that purposes is very extensive, can directly be measured by using oscillograph to be measured The frequency of signal.
In the prior art in order to reach higher measurement accuracy, often using certain dedicated oscillographs, such as using Vertical resolution is higher or the higher oscillograph of performance indicator, and the price of these dedicated oscillographs is often more expensive, no Conducive to the cost reduced needed for measuring.
Therefore it's necessary to propose a new technical scheme, to solve the above technical problems.
Summary of the invention
In consideration of it, the embodiment of the invention provides method, system and the oscillograph of a kind of measuring signal frequency, it can be not Under the premise of influencing measurement accuracy, cost needed for reducing measurement.
The first aspect of the embodiment of the present invention provides a kind of method of measuring signal frequency, comprising:
Receive the reference signal S of the measured signal S comprising frequency information to be measured and given frequency information0
To the received measured signal S and reference signal S0Addition processing is carried out, sum signal S is generated1
With preset sample frequency to the sum signal S1It is sampled;
The frequency for the sampled signal that measurement sampling obtains, and it is denoted as Δ f, wherein the Δ f includes measured signal S and ginseng Examine signal S0Frequency difference;
Judge whether the frequency difference of measurement is less than preset value, if the frequency difference of measurement is less than preset value, adjusts institute State reference signal S0Frequency, and the frequency difference Δ f is updated, until updated frequency difference Δ f ' is less than the preset value;
According to reference signal S adjusted0' frequency, the frequency of the measured signal S is determined, wherein after the adjustment Reference signal S0' it is corresponding reference signal when making the frequency difference Δ f ' less than the preset value after adjusting.
The second aspect of the embodiment of the present invention provides a kind of system of measuring signal frequency, comprising:
Receiving module includes the measured signal S of frequency information to be measured and the reference signal of given frequency information for receiving S0
Signal summation module, for the received measured signal S and reference signal S0Addition processing is carried out, phase is generated Plus signal S1
Sampling module is used for preset sample frequency to the sum signal S1It is sampled;
Frequency difference measurement module for measuring the frequency for the sampled signal that sampling obtains, and is denoted as Δ f, wherein the Δ f packet S containing measured signal and reference signal S0Frequency difference;
Frequency regulation block, for judging whether the frequency difference of measurement is less than preset value, if the frequency difference of measurement is small In preset value, then the reference signal S is adjusted0Frequency, and the frequency difference Δ f is updated, until updated frequency difference Δ f ' small In the preset value;
Determining module, for according to reference signal S adjusted0' frequency, determine the frequency of the measured signal S, Described in reference signal S adjusted0' it is to make the frequency difference Δ f ' corresponding with reference to letter when being less than the preset value after adjusting Number.
The third aspect of the embodiment of the present invention provides a kind of oscillograph, including memory, processor and is stored in storage On device and the computer program that can run on a processor, above-mentioned processor realize above-mentioned first when executing above-mentioned computer program The method that aspect refers to.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage medium Computer program is stored in matter, above-mentioned computer program realizes method mentioned in the first aspect when being executed by processor.
Existing beneficial effect is the embodiment of the present invention compared with prior art: in the present embodiment, reception includes first The measured signal S of the frequency information to be measured and reference signal S of given frequency information0, secondly to the received measured signal S and Reference signal S0Addition processing is carried out, sum signal S is generated1, then with preset sample frequency to the sum signal S1It carries out Sampling, then the frequency for the sampled signal that sampling obtains is measured, then judge whether the frequency difference of measurement is less than preset value, if surveying The frequency difference of amount is less than preset value, then adjusts the reference signal S0Frequency, and the frequency difference Δ f is updated, until updating Frequency difference Δ f ' afterwards is less than the preset value, finally according to reference signal S adjusted0' frequency, determine the measured signal The frequency of S.Compared with prior art, measurement can be reduced under the premise of not influencing measurement accuracy through the embodiment of the present invention Cost needed for system has stronger usability and practicality.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without creative efforts, can also be attached according to these Figure frequency determines other attached drawings.
Fig. 1 is the flow diagram of the method for the measuring signal frequency that the embodiment of the present invention one provides;
Fig. 2 is the flow diagram of the method for measuring signal frequency provided by Embodiment 2 of the present invention;
Fig. 3 is the structural schematic diagram of the system for the measuring signal frequency that the embodiment of the present invention three provides;
Fig. 4 is the structural schematic diagram for the oscillograph that the embodiment of the present invention four provides.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, in case unnecessary details interferes description of the invention.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " instruction is described special Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step, Operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " being determined in response to frequency " or " in response to detecting ".Similarly, phrase is " if frequency Rate determines " or " if detecting [described condition or event] " can be interpreted to mean according to context " once frequency is true It is fixed " or " being determined in response to frequency " or " once detecting [described condition or event] " or " in response to detecting [described item Part or event] ".
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in the present embodiment, each process Execution sequence Ying Yiqi function and internal logic frequency determine that the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
It should be noted that " first ", " second " etc. in the present embodiment describe, it is for distinguishing different regions, mould Block etc. does not represent sequencing, does not also limit " first " and " second " as different types.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Fig. 1 is the flow diagram of the method for the measuring signal frequency that the embodiment of the present invention one provides, and this method can wrap Include following steps:
S101: the reference signal S of the measured signal S comprising frequency information to be measured and given frequency information is received0
The executing subject of the method for measuring signal frequency provided by the present application can be oscillograph, can by the oscillograph To convert electrical signals to observable image.
In one embodiment, the measured signal S and reference signal S0Type may include sine wave, square wave, saw Tooth wave and triangular wave.
In one embodiment, frequency source and reference frequency source to be measured export respectively to measured frequency be f measured signal S with Given frequency is f0Reference signal S0, and be transmitted in oscillograph by coaxial cable using respective signal as input signal.
In one embodiment, can be received by the sensor in the oscillograph comprising frequency information to be measured to Survey the reference signal S of signal S and given frequency information0, such as photodiode.
S102: to the received measured signal S and reference signal S0Addition processing is carried out, sum signal S is generated1
S103: with preset sample frequency to the sum signal S1It is sampled.
In one embodiment, the sample frequency is far below the reference signal S0Frequency f0
S104: the frequency for the sampled signal that measurement sampling obtains, and it is denoted as Δ f, wherein the Δ f includes measured signal S With reference signal S0Frequency difference.
The frequency difference is measured signal S and reference signal S0Between frequency difference.
Since the frequency of the sampled signal includes the measured signal S and reference signal S0Frequency difference, therefore measuring Out while the frequency of the sampled signal, the measured signal S and reference signal S are also obtained indirectly0Frequency difference.
In one embodiment, the frequency Δ f of the sampled signal is equal to measured signal S and reference signal S0Frequency difference.
S105: judging whether the frequency difference of measurement is less than preset value, if the frequency difference of measurement is less than preset value, adjusts The whole reference signal S0Frequency, and the frequency difference Δ f is updated, until updated frequency difference Δ f ' is less than the preset value.
In one embodiment, the preset value is less than or equal to 1Hz.
In one embodiment, the adjustment includes that the reference signal S is turned up0Frequency f0It is described with reference to letter with turning down Number frequency f0
Since the frequency Δ f of sampled signal includes measured signal S and reference signal S0Frequency difference, therefore by judgement measurement The frequency difference whether be less than preset value, can determine measured signal S and reference signal S0Frequency whether approach.
If should be understood that the reference signal S0Frequency be adjusted, then should be by reference signal S adjusted0' conduct New received reference signal in step S101, so that the subsequent step of step S101 is repeated, until updated frequency difference Δ F ' is less than preset value.
In one embodiment, should allow to the reference signal S0Frequency repeatedly adjusted.
It need to be to the reference signal S if should be understood that0Frequency repeatedly adjusted, then need to only repeat the above steps repeatedly ?.
S106: according to reference signal S adjusted0' frequency, the frequency of the measured signal S is determined, wherein the tune Reference signal S after whole0' it is corresponding reference signal when making the frequency difference Δ f ' less than the preset value after adjusting.
It in one embodiment, can be using the existing or following any method that may be used come after according to adjustment Reference signal S0' frequency, determine the frequency of the measured signal S.
If should be understood that the measured signal S and reference signal S0Frequency it is relatively high, then with remote in step S103 Lower than the reference signal S0Frequency to the sum signal S1It is sampled, and according to reference signal S adjusted0' frequency Rate determines the frequency of the measured signal S, can realize and goes measurement one higher to be measured with a lower sample frequency The purpose of frequency.
Therefore the embodiment of the present invention is under the premise of influencing measurement accuracy, by the sum signal to generation into Row sampling calculates and judges, the frequency of higher measured signal can be measured with lower sample frequency, to reduce to oscillography The requirement of the performance indicator of device, and then achieve the purpose that reduce and measure required cost, there is stronger usability and practicality.
Embodiment two
Fig. 2 is the flow diagram of the method for measuring signal frequency provided by Embodiment 2 of the present invention, is to above-mentioned implementation The further refinement of step S101-S102 and S106 in example one and explanation, this method may comprise steps of:
S201: the reference signal S of the measured signal S comprising frequency information to be measured and given frequency information is received0, wherein The measured signal S and reference signal S0Type be sine wave.
In one embodiment, the measured signal S is A*sin (2 π ft), and A is the amplitude of the measured signal S, and f is The frequency of the measured signal S, and the reference signal S0For B*sin (2 π f0T), B is the reference signal S0Amplitude, f0 For the reference signal S0Frequency.
In one embodiment, the reference signal S0For the signal for the changeable frequency that reference frequency source generates, the ginseng Examining frequency source includes voltage controlled oscillator, and the voltage controlled oscillator refers to the oscillation that the height of frequency of oscillation is controlled by voltage swing Device.
In one embodiment, the reference signal S0Producing method can be first pass through single-chip microcontroller control digital-to-analogue turn Parallel operation (DAC) exports sawtooth voltage signal, amplifies, then cooperates voltage-controlled to above-mentioned voltage using voltage amplifier circuit Sine wave signal known to oscillator and voltage-frequency conversion (V/f) circuit output frequency, what the V/f circuit was used to input Voltage signal is converted to the sine wave signal of respective frequencies according to certain linear ratio relation.
S202: to the received measured signal S and reference signal S0Addition processing is carried out, sum signal S is generated1
In one embodiment, if the measured signal S is A*sin (2 π ft) and the reference signal S0For B*sin (2 πf0T), then the sum signal S1For A*sin (2 π ft)+B*sin (2 π f0T)=2AB { cos [2 π (Δ f/2) t] * sin [2 π (Δf/2+f0) t], wherein Δ f/2=| f-f0|/2=fs/ n, fsFor preset sample frequency, n is the sampled point greater than zero Number.
S203: with preset sample frequency to the sum signal S1It is sampled.
S204: the frequency for the sampled signal that measurement sampling obtains, and it is denoted as Δ f, wherein the Δ f includes measured signal S With reference signal S0Frequency difference.
S205: judging whether the frequency difference of measurement is less than preset value, if the frequency difference of measurement is less than preset value, adjusts The whole reference signal S0Frequency, and the frequency difference Δ f is updated, until updated frequency difference Δ f ' is less than the preset value.
It should be noted that step S203-S205 and the step S103-S105 in embodiment one are essentially identical, it is specific Implementation process can be found in the description of step S103-S105, so here is no more repetition.
S206: by the frequency S of reference signal adjusted0' frequency as the measured signal S, wherein the adjustment Reference signal S afterwards0' it is corresponding reference signal when making updated frequency difference Δ f ' less than the preset value after adjusting.
Therefore the embodiment of the present invention two is compared to embodiment one, it can be equal in the measured signal and reference signal When for sine wave, the frequency of higher measured signal is measured with lower sample frequency, and the performance of oscillograph is referred to reduce Target requirement, and then achieve the purpose that reduce and measure required cost, there is stronger usability and practicality.
Embodiment three
Fig. 3 is the structural schematic diagram of the system for the measuring signal frequency that the embodiment of the present invention three provides, for ease of description, Only parts related to embodiments of the present invention are shown.
The system of the measuring signal frequency can be the software unit being built in oscillograph, hardware cell or soft or hard knot The unit of conjunction can also be used as independent pendant and be integrated into the oscillograph.
The system of the measuring signal frequency includes:
Receiving module 31 includes the measured signal S of frequency information to be measured and the reference letter of given frequency information for receiving Number S0
Signal summation module 32, for the received measured signal S and reference signal S0Addition processing is carried out, is generated Sum signal S1
Sampling module 33 is used for preset sample frequency to the sum signal S1It is sampled;
Frequency difference measurement module 34 for measuring the frequency for the sampled signal that sampling obtains, and is denoted as Δ f, wherein the Δ f Include measured signal S and reference signal S0Frequency difference;
Frequency regulation block 35, for judging whether the frequency difference of measurement is less than preset value, if the frequency difference of measurement Less than preset value, then the reference signal S is adjusted0Frequency, and the frequency difference Δ f is updated, until updated frequency difference Δ f ' Less than the preset value;
Determining module 36, for according to reference signal S adjusted0' frequency, determine the frequency of the measured signal S Rate, wherein the reference signal S adjusted0' it is so that the frequency difference Δ f ' is less than corresponding reference letter when the preset value Number
In one embodiment, the determining module 36 is specifically used for:
By the frequency S of reference signal adjusted0' frequency as the measured signal S.
In one embodiment, the reference signal S0For the signal for the changeable frequency that reference frequency source generates, the ginseng Examining frequency source includes voltage controlled oscillator.
In one embodiment, the measured signal S and reference signal S0Type include sine wave, square wave, sawtooth wave And triangular wave.
In one embodiment, if the measured signal S and reference signal S0Type be sine wave, then it is described to be measured Signal S is A*sin (2 π ft), and wherein A is the amplitude of the measured signal S, and f is the frequency of the measured signal S, the reference Signal S0For B*sin (2 π f0T), wherein B is the reference signal S0Amplitude, f0For the reference signal S0Frequency;It is described Sum signal S1For A*sin (2 π ft)+B*sin (2 π f0T)=2AB { cos [2 π (Δ f/2) t] * sin [2 π (Δ f/2+f0) T] }, wherein Δ f/2=| f-f0|/2=fs/ n, fsFor preset sample frequency, n is the sampling number greater than zero.
In one embodiment, the preset value is less than or equal to 1Hz.
Example IV
Fig. 4 is the structural schematic diagram for the oscillograph that the embodiment of the present invention four provides.As shown in figure 4, the oscillography of the embodiment Device 4 includes: processor 40, memory 41 and is stored in the meter that can be run in the memory 41 and on the processor 40 Calculation machine program 42.The processor 40 realizes the step in above method embodiment one, example when executing the computer program 42 Step S101 to S106 as shown in Figure 1.Alternatively, realizing the step in above method embodiment two, such as step shown in Fig. 2 S201 to S206.The processor 40 realizes each module in above-mentioned each Installation practice/mono- when executing the computer program 42 The function of member, such as the function of module 31 to 36 shown in Fig. 3.
Illustratively, the computer program 42 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 41, and are executed by the processor 40, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 42 in the oscillograph 4 is described.For example, the computer program 42 can be divided At receiving module, signal summation module, sampling module, frequency difference measurement module, frequency regulation block and determining module, each module tool Body function is as follows:
Receiving module includes the measured signal S of frequency information to be measured and the reference signal of given frequency information for receiving S0
Signal summation module, for the received measured signal S and reference signal S0Addition processing is carried out, phase is generated Plus signal S1
Sampling module is used for preset sample frequency to the sum signal S1It is sampled;
Frequency difference measurement module for measuring the frequency for the sampled signal that sampling obtains, and is denoted as Δ f, wherein the Δ f packet S containing measured signal and reference signal S0Frequency difference;
Frequency regulation block, for judging whether the frequency difference of measurement is less than preset value, if the frequency difference of measurement is small In preset value, then the reference signal S is adjusted0Frequency, and the frequency difference Δ f is updated, until updated frequency difference Δ f ' small In the preset value;
Determining module, for according to reference signal S adjusted0' frequency, determine the frequency of the measured signal S, Described in reference signal S adjusted0' it is to make the frequency difference Δ f ' corresponding with reference to letter when being less than the preset value after adjusting Number
The oscillograph may include, but be not limited only to, processor 40, memory 41.It will be understood by those skilled in the art that Fig. 4 is only the example of oscillograph 4, does not constitute the restriction to oscillograph 4, may include than illustrating more or fewer portions Part perhaps combines certain components or different components, such as the oscillograph can also include input-output equipment, network Access device, bus etc..
The processor 40 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 41 can be the internal storage unit of the oscillograph 4, such as the hard disk or memory of oscillograph 4. The memory 41 is also possible to the External memory equipment of the oscillograph 4, such as the plug-in type being equipped on the oscillograph 4 is hard Disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, the memory 41 can also both including the oscillograph 4 internal storage unit or Including External memory equipment.The memory 41 is for storing needed for the computer program and the oscillograph other Program and data.The memory 41 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that each embodiment described in conjunction with the examples disclosed in this document Module, unit and/or method and step can be realized with the combination of electronic hardware or computer software and electronic hardware.This A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not It is considered as beyond the scope of this invention.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-described embodiment side All or part of the process in method can also instruct relevant hardware to complete, the computer by computer program Program can be stored in a computer readable storage medium, and the computer program is when being executed by processor, it can be achieved that above-mentioned each The step of a embodiment of the method.Wherein, the computer program includes computer program code, and the computer program code can Think source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium can be with It include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, light that can carry the computer program code Disk, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the computer The content that readable medium includes can carry out increase and decrease appropriate according to the requirement made laws in jurisdiction with patent practice, such as It does not include electric carrier signal and telecommunication signal according to legislation and patent practice, computer-readable medium in certain jurisdictions.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (10)

1. a kind of method of measuring signal frequency characterized by comprising
Receive the reference signal S of the measured signal S comprising frequency information to be measured and given frequency information0
To the received measured signal S and reference signal S0Addition processing is carried out, sum signal S is generated1
With preset sample frequency to the sum signal S1It is sampled;
The frequency for the sampled signal that measurement sampling obtains, and it is denoted as Δ f, wherein the Δ f includes measured signal S and reference signal S0Frequency difference;
Judge whether the frequency difference of measurement is less than preset value, if the frequency difference of measurement is less than preset value, adjusts the ginseng Examine signal S0Frequency, and the frequency difference Δ f is updated, until updated frequency difference Δ f ' is less than the preset value;
According to reference signal S adjusted0' frequency, the frequency of the measured signal S is determined, wherein the reference adjusted Signal S0' it is corresponding reference signal when making the frequency difference Δ f ' less than the preset value after adjusting.
2. the method according to claim 1, wherein described according to reference signal S adjusted0' frequency, really The frequency of the measured signal S includes: calmly
By the frequency S of reference signal adjusted0' frequency as the measured signal S.
3. the method according to claim 1, wherein the reference signal S0The frequency generated for reference frequency source Variable signal, the reference frequency source include voltage controlled oscillator.
4. the method according to claim 1, wherein the measured signal S and reference signal S0Type include just String wave, square wave, sawtooth wave and triangular wave.
5. the method according to claim 1, wherein if the measured signal S and reference signal S0Type be Sine wave, then the measured signal S is A*sin (2 π ft), and wherein A is the amplitude of the measured signal S, and f is the letter to be measured The frequency of number S, the reference signal S0For B*sin (2 π f0T), wherein B is the reference signal S0Amplitude, f0For the ginseng Examine signal S0Frequency;
Correspondingly, the sum signal S1For A*sin (2 π ft)+B*sin (2 π f0T)=2AB { cos [2 π (Δ f/2) t] * sin [2 π(Δf/2+f0) t], wherein Δ f/2=| f-f0|/2=fs/ n, fsFor preset sample frequency, n is the sampled point greater than zero Number.
6. method according to any one of claims 1 to 5, which is characterized in that the preset value is less than or equal to 1Hz.
7. a kind of system of measuring signal frequency characterized by comprising
Receiving module includes the measured signal S of the frequency information to be measured and reference signal S of given frequency information for receiving0
Signal summation module, for the received measured signal S and reference signal S0Addition processing is carried out, generates and is added letter Number S1
Sampling module is used for preset sample frequency to the sum signal S1It is sampled;
Frequency difference measurement module, the frequency of sampled signal obtained for measuring sampling, and be denoted as Δ f, wherein the Δ f include to Survey signal S and reference signal S0Frequency difference;
Frequency regulation block, for judging whether the frequency difference of measurement is less than preset value, if the frequency difference of measurement is less than in advance If value, then adjust the reference signal S0Frequency, and the frequency difference Δ f is updated, until updated frequency difference Δ f ' is less than institute State preset value;
Determining module, for according to reference signal S adjusted0' frequency, determine the frequency of the measured signal S, wherein institute State reference signal S adjusted0' it is corresponding reference signal when making the frequency difference Δ f ' less than the preset value after adjusting.
8. system as claimed in claim 7, which is characterized in that the preset value is less than or equal to 1HZ.
9. a kind of oscillograph, including memory, processor and storage can transport in the memory and on the processor Capable computer program, which is characterized in that the processor realizes such as claim 1 to 6 times when executing the computer program The step of one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as claim 1 to 6 of realization the method.
CN201910320201.2A 2019-04-19 2019-04-19 Method and system for measuring signal frequency and oscilloscope Active CN110161309B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910320201.2A CN110161309B (en) 2019-04-19 2019-04-19 Method and system for measuring signal frequency and oscilloscope

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910320201.2A CN110161309B (en) 2019-04-19 2019-04-19 Method and system for measuring signal frequency and oscilloscope

Publications (2)

Publication Number Publication Date
CN110161309A true CN110161309A (en) 2019-08-23
CN110161309B CN110161309B (en) 2022-03-29

Family

ID=67639731

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910320201.2A Active CN110161309B (en) 2019-04-19 2019-04-19 Method and system for measuring signal frequency and oscilloscope

Country Status (1)

Country Link
CN (1) CN110161309B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111896802A (en) * 2020-06-30 2020-11-06 成都四威功率电子科技有限公司 Frequency self-adaptive sampling method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050242890A1 (en) * 2004-04-15 2005-11-03 Wen-Yi Wu Adaptive frequency detector of phase locked loop
CN101471726A (en) * 2007-12-29 2009-07-01 京信通信***(中国)有限公司 Digitalized automatic frequency correction method based on true frequency reference signal
CN108572345A (en) * 2017-12-29 2018-09-25 深圳市鼎阳科技有限公司 Oscillograph, based on lack sampling to the corrected method of frequency accuracy, system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050242890A1 (en) * 2004-04-15 2005-11-03 Wen-Yi Wu Adaptive frequency detector of phase locked loop
CN101471726A (en) * 2007-12-29 2009-07-01 京信通信***(中国)有限公司 Digitalized automatic frequency correction method based on true frequency reference signal
CN101471727A (en) * 2007-12-29 2009-07-01 京信通信***(中国)有限公司 Digitalization automatic frequency detection method based on true signal
CN108572345A (en) * 2017-12-29 2018-09-25 深圳市鼎阳科技有限公司 Oscillograph, based on lack sampling to the corrected method of frequency accuracy, system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
佚名: "微弱信号检测装置", 《百度文库,网址为:HTTPS://WENKU.BAIDU.COM/VIEW/AB2C102308A1284AC95043E5.HTML》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111896802A (en) * 2020-06-30 2020-11-06 成都四威功率电子科技有限公司 Frequency self-adaptive sampling method

Also Published As

Publication number Publication date
CN110161309B (en) 2022-03-29

Similar Documents

Publication Publication Date Title
US11519993B2 (en) Current sensor configuration and calibration
CN105675981A (en) FPGA-based frequency meter and frequency measuring method
CN105487034A (en) 0.05-level electronic transformer verification method and system
CN103197145A (en) Method and system of ultrahigh resolution phase difference measurement
CN103616652A (en) Error measurement method, system and application for capacitive voltage divider
CN110161309A (en) A kind of method, system and the oscillograph of measuring signal frequency
CN104808064A (en) Triangular wave excited Wheatstone bridge measuring circuit
CN115236392A (en) Multi-characteristic-quantity electric energy metering method and device, terminal and storage medium
CN101701985A (en) Constant-frequency variable dot power grid harmonic wave detection method and admeasuring apparatus thereof
CN102193029B (en) Method for measuring short-term frequency stability of unconventional sampling time
CN111175574A (en) Measuring system and measuring method
CN103901243A (en) High-trigger-accuracy oscilloscope
CN103576118A (en) System for detecting and calibrating magnetic sensor
CN104808063A (en) Triangular wave excited impedance measurement circuit
CN103197273A (en) Source tracing device used for electronic mutual inductor output calibration instrument
CN203366002U (en) Atomic clock
CN102508028A (en) Device and method for detecting and analyzing harmonic
CN101871971B (en) Method for measuring frequency-phase characteristic of electrical network
CN213023598U (en) Transient electromagnetic instrument
CN105954577A (en) Electric energy metering method
CN115901021A (en) Method, apparatus, medium, and program product for determining pressure information
CN107145184B (en) A kind of temperature-compensation method of variable power reference source
CN113406501B (en) Battery electric quantity metering method and device and vehicle lock
CN109444588A (en) A kind of LCR measuring system based on FPGA+DDS+PLL
CN115825546A (en) Method for realizing direct current transient current broadband digital standard

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 11-13 / F, joint headquarters building, high tech Zone, 63 Xuefu Road, Yuehai street, Nanshan District, Shenzhen, Guangdong 518000

Applicant after: Obi Zhongguang Technology Group Co., Ltd

Address before: 12 / F, joint headquarters building, high tech Zone, 63 Xuefu Road, Yuehai street, Nanshan District, Shenzhen, Guangdong 518000

Applicant before: SHENZHEN ORBBEC Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant