A kind of method of improving signal analyzer scanning linearity degree
Technical field
The invention belongs to measuring instrument local oscillator Driving technique field, is a kind of method of improving signal analyzer local oscillator scanning linearity degree.
Background technology
The synthetic local oscillator of at present big multiple instruments is to realize by a Phase Lock Technique with feedback control system, i.e. phase-locked loop.Phase-locked loop is the negative feed back control system that can realize Phase Tracking, and it mainly is made up of phase discriminator (PD) 1, loop filter (LF) 2 and voltage-controlled oscillator (VCO) 3 three parts, as shown in Figure 1.
Input signal phase theta 1 (t) produces error signal ud (t) with feedback signal phase theta 2 (t) by phase discriminator 1.This error signal ud (t) is by loop filter 2 controlled voltage uc (t), and control voltage uc (t) is added to and makes it to produce the frequency of oscillation skew on the voltage controlled oscillator 3, follows the tracks of input signal.After the locking, the output frequency of voltage-controlled oscillator 3 is identical with frequency input signal, keeps certain stable state phase difference between the two.
The voltage-controlled oscillator of phase-locked loop is a voltage-frequency conversion apparatus, and in certain surge frequency range, its control voltage and output frequency are linear variation relations.As shown in Figure 2, by a sweep ramp voltage generation circuit 4, produce a ramp voltage ub (t) that linearity is good.This ramp voltage is loaded into the continuous sweep that realizes local oscillator on the voltage-controlled oscillator.In the accompanying drawing 2, control voltage uc (t) and ramp voltage ub (t) drive tuning voltage u (t) by tuning voltage generating circuit 5 common generations, u (t) is loaded into the tuned port of voltage-controlled oscillator, the general YTO that selects (is harmonic oscillator with the yttrium iron gamet bead, microwave transistor is the solid state microwave signal source of active device) as voltage-controlled oscillator 3, realize local oscillator continuous sweep by ramp voltage ub (t), control voltage uc (t) realizes the local oscillator real-time lock, as long as guarantee that uc (t) in the certain voltage scope, just can realize local oscillator continuous sweep and real-time lock.
For phase-locked loop, put the dynamic change procedure from the locking frequency of a static state, control voltage uc (t) can produce certain vibration, and the amplitude of vibration is relevant with sweep velocity, and sweep velocity is more fast usually, and oscillation amplitude is more big.The linearity of local oscillator scanning is to guarantee u (t)=ub (t)+uc (t) by the linearity that drives tuning voltage u (t).Under the less demanding situation of sweep speed, control voltage uc (t) oscillation amplitude is very little, and the scanning linearity degree of local oscillator is then mainly decided by ramp voltage ub (t).Ramp voltage adopts digital scheme to realize more at present, therefore can guarantee the scanning of local oscillator good linear.As shown in Figure 3, local oscillator varies continuously to the change curve of Frequency point b tuning voltage from Frequency point a.When the local oscillator sweep speed was higher, it is big that the oscillation amplitude of control voltage uc (t) becomes, thereby cause tuning voltage u (t) tangible non-linear phenomena to occur.Find at present the effective ways that address this problem as yet, can only ignore control voltage uc (t) non-linear effects by reduce sweep speed as far as possible.
Therefore, there is defective in prior art, needs to improve.
Summary of the invention
Technical problem to be solved by this invention is at the deficiencies in the prior art, and a kind of method of improving signal analyzer scanning linearity degree is provided.
Technical scheme of the present invention is as follows:
A kind of method of improving signal analyzer scanning linearity degree, comprising following steps:
Steps A: according to scanning the initial frequency c that initial termination Frequency point and speed recomputate the local oscillator prescan, c=a-[(b-a) K/T]; Wherein tested frequency range is the frequency spectrum of a to b frequency range;
Step B: initial frequency point c and sweep speed (b-a)/T that the local oscillator prescan is set;
Step C: be set in T0 gated sweep constantly slope driver drives local oscillator and begin scanning; Wherein T0 is prescan point c moment corresponding constantly;
Step D: postpone to wait for, arrive constantly up to T1 that the time of wait is the duration K of control voltage uc (t) vibration;
Step e: in the time period of T2-T1, the data of wave detector output are exactly the frequency spectrum of tested frequency range a to b frequency range.
The method of described improvement signal analyzer scanning linearity degree, wherein, in the steps A, T=sweep time (T2-T1), sweep speed equals (b-a)/T, wherein T1 be local oscillator be tuned to moment during a frequency, T2 be local oscillator be tuned to moment during the b frequency; K is the duration of control voltage oscillation.
The method of described improvement signal analyzer scanning linearity degree, wherein said K is that the described duration of oscillation is fixed in the control voltage oscillation duration of concrete loop.
The method of described improvement signal analyzer scanning linearity degree, wherein, after the described step D, execution in step D1 also: when T1 arrives constantly, this moment local oscillator just in time be tuned to a frequency, begin to drive wave detector output detection data, this moment, the data of detection output then were the signal amplitude of frequency a.
The method of described improvement signal analyzer scanning linearity degree, wherein, after the described step D, execution in step D2 also: when T2 arrives constantly, finish scanning, this moment local oscillator just in time be tuned to the b frequency, the wave detector power cut-off.
The method of described improvement signal analyzer scanning linearity degree, wherein, in the above-mentioned steps not the filtering frequently of calculating resolution bandwidth filter handle the time of delay of causing.
Adopt such scheme, under the condition that does not change hardware circuit and scanning local oscillator implementation, by the simple contradiction that has directly effectively solved between sweep speed lifting and the local oscillator scanning linearity degree of prescan local oscillator.Both guarantee to scan local oscillator closed loop characteristic accurately, established certain basis for the lifting of sweep speed again.
Description of drawings
Fig. 1 is phase-locked loop schematic diagram in the prior art;
Fig. 2 is omnidistance phase-locked scanning local oscillator schematic diagram in the prior art;
The tune drive change in voltage schematic diagram of Fig. 3 for surveying in the prior art;
Fig. 4 is one embodiment of the invention scanning spectrum measurement schematic diagram;
Fig. 5 is one embodiment of the invention local oscillator tune drive change in voltage schematic diagram.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in detail.
Embodiment 1
The invention provides a kind of method of improving signal analyzer scanning linearity degree, as shown in Figure 4, measured signal is input in the frequency mixer 102 through preselection filter 101, with intermediate-freuqncy signal after 103 mixing of frequency sweep local oscillator through behind the resolution bandwidth filter 104, enter wave detector 105 and obtain signal amplitude 107.As shown in Figure 4, supposing that be T sweep time, when carrying out a sweep measurement, is example to measure a to the frequency spectrum of b frequency range, suppose here T0 constantly local oscillator begin scanning, scanner driver 106 drives local oscillators 103 to begin to scan; When to T1 constantly, scanner driver 106 drives local oscillator 103 and begins to enter linear scan, drive wave detector 105 beginning detection computings simultaneously, local frequency then begins continuous tuning from a, while wave detector 105 amplitude output signals, for convenience of explanation, ignore intermediate frequency filtering here and handle the time of delay of causing.At next when constantly T2 arrives, local frequency be tuned on the b Frequency point, this moment, wave detector 105 was exported all signal amplitudes of (T2-T1), corresponding data are exactly the signal spectrum of a~b frequency range.
Detailed technology content of the present invention for convenience of explanation, as shown in Figure 5, we are example to measure a to the frequency spectrum of b frequency range, suppose that be T=(T2-T1) sweep time, sweep speed equals (b-a)/T, wherein T1 be local oscillator be tuned to moment during a frequency, T2 be local oscillator be tuned to moment during the b frequency, the present invention proposes to adopt the non-linear effects of local oscillator tuning voltage when scanning beginning when scan method is eliminated high-velocity scanning in advance, first-selected we have obtained the duration K of control voltage uc (t) vibration of physical circuit by experiment, and after circuit design was finished, the duration K of this vibration fixed, carry out according to step described below then
Step 1: recomputate the initial frequency c that local oscillator scans according to sweep speed,
c=a-[(b-a)K/T]
Step 2: initial frequency c and sweep speed (b-a)/T that the local oscillator real scan is set
Step 3: be set in T0 gated sweep constantly slope driver drives local oscillator and begin scanning; Wherein T0 is prescan point c moment corresponding constantly;
Step 4: postpone to wait for, arrive constantly up to T1 that the time of wait is the duration K of control voltage uc (t) vibration;
Step 5: when T1 arrives constantly, this moment local oscillator just in time be tuned to a frequency, begin to drive wave detector output detection data, this moment, the data of detection output then were the signal amplitude of frequency a.
Step 6: when T2 arrives constantly, finish scanning, this moment local oscillator just in time be tuned to the b frequency, the wave detector power cut-off, in the time period of T2-T1, the data of wave detector output are exactly the signal spectrum of tested frequency range a~b.
According to the step of foregoing description, can be under the condition that does not change hardware circuit and design, the linearity problems of the succinct local oscillator scanning that solves easily, more certain basis has been established in the lifting of sweep speed.
Adopt two kinds of same instruments will not use the inventive method respectively and used the inventive method to signal after the measurement of initial frequency point, measured data shows, adopting method complete machine of the present invention sweep time is 1ms; Not adopting method complete machine of the present invention sweep time is 5ms.And adopt method of the present invention as can be seen on two kinds of same instruments, signal has improved in sweep speed under 5 times the situation, has guaranteed that still excellent frequency reads accuracy.
Embodiment 2
On the basis of above-described embodiment, as Fig. 4-shown in Figure 5, the invention provides a kind of method of improving signal analyzer scanning linearity degree, comprising following steps:
Steps A: according to scanning the initial frequency c that initial termination Frequency point and speed recomputate the local oscillator prescan, c=a-[(b-a) K/T]; Wherein tested frequency range is the frequency spectrum of a to b frequency range;
Step B: initial frequency point c and sweep speed (b-a)/T that the local oscillator prescan is set;
Step C: be set in T0 gated sweep constantly slope driver drives local oscillator and begin scanning; Wherein T0 is prescan point c moment corresponding constantly;
Step D: postpone to wait for, arrive constantly up to T1 that the time of wait is the duration K of control voltage uc (t) vibration;
Step e: in the time period of T2-T1, the data of wave detector output are exactly the frequency spectrum of tested frequency range a to b frequency range.
Furthermore, in the steps A, T=sweep time (T2-T1), sweep speed equals (b-a)/T, wherein T1 be local oscillator be tuned to moment during a frequency, T2 be local oscillator be tuned to moment during the b frequency; K is the duration of control voltage oscillation.
Furthermore, wherein said K is that the described duration of oscillation is fixed in the control voltage oscillation duration of concrete loop.
Furthermore, after the described step D, execution in step D1 also: when T1 arrives constantly, this moment local oscillator just in time be tuned to a frequency, begin to drive wave detector output detection data, this moment, the data of detection output then were the signal amplitude of frequency a.
Furthermore, after the described step D, execution in step D2 also: when T2 arrives constantly, finish scanning, this moment local oscillator just in time be tuned to the b frequency, the wave detector power cut-off.
Furthermore, in the above-mentioned steps not the filtering frequently of calculating resolution bandwidth filter handle the time of delay of causing.
Should be understood that, for those of ordinary skills, can be improved according to the above description or conversion, and all these improvement and conversion all should belong to the protection range of claims of the present invention.