A kind of method improving wave band switching frequency point amplitude measurement accuracy
Technical field
The invention belongs to spectrum analysis fields of measurement, in particular a kind of method improving wave band switching frequency point amplitude measurement accuracy.
Background technology
Spectrum analyzer is the requisite testing tools in field such as communication, radar, navigation, signal monitoring, Microwave Spectrum Analyser adopts the receiver scheme of superhet usually, due to the wide frequency range of Microwave Spectrum Analyser, therefore need, by frequency, receiver is divided into multiple wave band, the difference of the microwave device performance index such as the microwave switch selected due to each wave band and wave filter, causes the conversion gain of each wave band in receiver inconsistent.It is the theory diagram of the microwave frequency-variable module of a Microwave Spectrum Analyser as Fig. 1.As can be seen from Figure 1, this spectrum analyzer is divided into 3 wave bands, 0 wave band, 1 wave band and 2 wave bands, each wave band has selected multiple microwave switch and wave filter, bandpass filter is involved as 0 wave band exists low pass filtered, there is switch filtering and bandpass filter in 1 wave band, there is switch filtering and bandpass filter in 2 wave bands, because microwave switch and wave filter are in the inconsistency of each Frequency point insertion loss, the conversion gain causing each wave band is inconsistent, and it is particularly evident that this inconsistency shows near wave band switching frequency point.
In the Microwave Spectrum Analyser shown in Fig. 1, have employed the compensating for frequency response scheme that subrane compensates.In existing technical scheme, employing be fixing wave band boundary frequency point scheme, compensating for frequency response data point frequency is at equal intervals, and detection width B ucket immobilizes.If switching wave band separation frequency values is changeless Fband, before and after compensating for frequency response data point, frequency is respectively Fresp_Start+M*Fstep, Fresp_Start+ (M+1) * Fstep, offset is Aresp (M), Aresp (M+1), wherein Fresp_Start is compensating for frequency response initial frequency, Fstep is compensating for frequency response step frequency, and M is M compensating for frequency response point; Show dot frequency before and after switching wave band separation and be respectively FStart+ (N-1) * Bucket, FStart+N*Bucket, FStart+ (N+1) * Bucket, wherein FStart is display point initial frequency, Bucket is detection width, and N is N number of display point.
When actual measurement, the amplitude numerical procedure of N number of display point can adopt two schemes, and the first scheme is as follows:
1. the actual geophone station amplitude amp (N-1) of N number of Bucket inside is first drawn by detection algorithm.
2. the offset of N number of display dot frequency FStart+N*Bucket is obtained by linear interpolation algorithm
3. the frequency of final display point is Fstart+N*Bucket, and amplitude is the amplitude+ampRes (N) of actual geophone station a (N).
First scheme is as follows:
1. the actual geophone station amplitude amp (N-1) of N number of Bucket inside is first drawn by detection algorithm.
2. do not carry out interpolation, directly obtain the offset of N number of display dot frequency FStart+N*Bucket:
AmpRes (N)=Aresp (M+1) or ampRes (N)=Aresp (M)
3. the frequency of final display point is Fstart+N*Bucket, and amplitude is the amplitude+ampRes (N) of actual geophone station a (N).
In actual measurement, the uncertainty of the initial frequency arranged due to frequency spectrograph and termination frequency, likely can comprise the data point of former and later two wave bands in same detection width B ucket, for example, in N number of detection Bucket, just contain the data point of former and later two wave bands.And actual geophone station may be any point in detection width B ucket, this will cause the wave band (due to the uncertainty of actual geophone station position, compensation data calculates according to display frequency) and the unmatched problem of actual geophone station wave band that carry out compensation data during the amplitude calculating display frequency point.
When adopting the first scheme in prior art, because the conversion gain of each wave band is inconsistent, compensation data values difference between compensation data point Aresp (M) of last wave band and compensation data point Aresp (M+1) of a rear wave band is very large, and the compensation data values that interpolation obtains can cause the range accuracy of all Frequency points between Fresp_Start+M*Fstep to Fresp_Start+ (M+1) * Fstep to decline.Specifically, as the signal inputted at same magnitude different frequency, just can find out that range accuracy declines in the switching audio range frequency point position of frequency spectrograph.
When adopting first scheme in prior art, may occur actual geophone station at previous wave band compensation data employ after the situation of a wave band, or actual geophone station at a rear wave band, compensation data employs the situation of previous wave band.For example, N number of Bucket just contains the data point of two wave bands, and actual geophone station, at last wave band, uses the offset data of a rear wave band compensation point simultaneously, thus causes this range accuracy to decline during compensation data.Wider when sweeping wide as shown in Figure 2 the input range of cursor 1 and cursor Δ 1 be identical, but due to the wave band mismatch problem of actual geophone station frequency and display frequency, cause the value that the amplitude switching the display of audio range frequency point becomes cursor 1 display, range accuracy declines obviously; Narrower sweep wide time occur equally, because the conversion gain of each wave band is inconsistent, the compensation data values difference of the compensation data point of last wave band and the compensation data point of a rear wave band is very large, can cause obvious noise step and signal skew problem.
Therefore, prior art existing defects, needs to improve.
Summary of the invention
Technical matters to be solved by this invention is for the deficiencies in the prior art, provides a kind of method improving wave band switching frequency point amplitude measurement accuracy.
Technical scheme of the present invention is as follows:
Improve a method for wave band switching frequency point amplitude measurement accuracy, wherein, comprise the following steps:
Steps A: frequency range buffer zone is set in wave band switching place;
Step B: control during scanning not carry out wave band switching, remain in the same band passage.
The method of described improvement wave band switching frequency point amplitude measurement accuracy, wherein, in steps A, described frequency range setting buffers realizes two band setting simultaneously.
The method of described improvement wave band switching frequency point amplitude measurement accuracy, wherein, describedly realizes two band setting simultaneously, does not fix, ensure that each detection width can not comprise former and later two wave band data points for wave band separation frequency.
The method of described improvement wave band switching frequency point amplitude measurement accuracy, wherein, in described step B, is arranged on narrower frequency range and scans during scanning.
The method of described improvement wave band switching frequency point amplitude measurement accuracy, wherein, described narrower frequency range refers to initial frequency or stops frequency and is in the band limits of buffer zone.
The method of described improvement wave band switching frequency point amplitude measurement accuracy, wherein, in described step B, specifically comprises the following steps:
Step B1: when Scanning Section initial frequency is in buffer zone first half frequency range, before wave band separation is set to initial frequency, the hardware setting of this section is adjusted to next wave band, frequency response compensation data compensates according to a rear wave band;
Step B2: when Scanning Section stop frequency be in the later half frequency range in buffer zone and the wave band of initial frequency do not adjust out-of-date, after wave band separation is in and stops frequency, the hardware setting of this section is adjusted to a upper wave band, and frequency response compensation data compensates according to last wave band;
Step B3: after wave band separation frequency is in detection width residing for the centre frequency of buffer zone and buffer zone centre frequency during first detection width boundary position, carry out wave band division, frequency response compensation data divides according to wave band separation, compensate according to last wave band before wave band separation, compensate according to a rear wave band after wave band separation.
The method of described improvement wave band switching frequency point amplitude measurement accuracy, wherein, should guarantee that each detection width can not comprise former and later two wave band data points when described wave band divides.
Adopt such scheme, 1. instrument wave band switching frequency point when scanning, with arranging change, makes it to be in the middle of two detection width B ucket, this range accuracy can not be caused to decline.2. instrument only can be on a wave band path when narrow band scan measures (Scanning Section initial frequency or termination frequency are in buffer zone), the problem of wave band switching place measuring-signal distortion when can solve narrow band scan, during narrow band scan, test curve noiseless step and signal skew phenomenon occur.
Accompanying drawing explanation
Fig. 1 is prior art microwave frequency-variable module theory diagram;
To be that prior art is wider sweep wide switching audio range frequency point place range accuracy comparison diagram to Fig. 2;
Fig. 3 is that wave band separation frequency of the present invention is in N-1 Bucket and N number of Bucket boundary schematic diagram;
Fig. 4 is wave band adaptive location schematic diagram of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in detail.
Embodiment 1
As shown in Figure 3-4, the present invention is first in hardware design, the frequency range buffer zone that one can realize two band setting is simultaneously reserved in wave band switching place, both the setting of last wave band can have been realized in this frequency range buffer zone, also the setting of a wave band after can realizing, wave band separation frequency Fband can be made like this not fix, be in N-1 Bucket and N number of Bucket separation position, ensure that each Bucket can not comprise former and later two wave band data points.Secondly, do not carry out wave band switching when narrower frequency range (initial frequency or termination frequency are in the band limits of buffer zone) scanning by software control, make it to be in the same band passage.The method for designing that software controls automatically is considered to obtain for information summary multiple shown in Fig. 4, and specific design process is as follows:
1) when Scanning Section initial frequency is in buffer zone first half frequency range (as initial frequency ∈ (Sttxx, Cntxx), as 7 in Fig. 4,8,9,10,11,12 situations) time, before wave band separation is set to initial frequency, the hardware setting of this section is adjusted to next wave band, and frequency response compensation data compensates according to a rear wave band.In Fig. 4, arrow indication is Scanning Section initial frequency, and round dot indication is that Scanning Section stops frequency, and Sttxx is wave band buffer zone initial frequency, and Stpxx is that wave band buffer zone stops frequency, and Cnt01 is wave band buffer zone centre frequency.
2) the later half frequency range in buffer zone is in and the wave band of initial frequency did not adjust and (works as initial frequency when Scanning Section stops frequency
(Sttxx, Cntxx) and stop frequency ∈ [Cntxx, Stpxx), as 2,5,13,16 situations in Fig. 4) time, after wave band separation is in and stops frequency, the hardware setting of this section is adjusted to a upper wave band, and frequency response compensation data compensates according to last wave band.
3) time other situations (as 1,3,4,6,14,15,17 situations in Fig. 4), wave band separation frequency is in Bucket residing for the centre frequency Cntxx of buffer zone and first Bucket boundary position afterwards, carry out wave band division as shown in Figure 3, ensure that each Bucket can not comprise former and later two wave band data points, frequency response compensation data divides according to wave band separation equally, compensate according to last wave band before, compensate according to a rear wave band afterwards.
Should be understood that, for those of ordinary skills, can be improved according to the above description or convert, and all these improve and convert the protection domain that all should belong to claims of the present invention.