A kind of Network Analyzer subrane calibration interpolation compensation method
Technical field
The invention belongs to technical field of measurement and test, in particular a kind of Network Analyzer partial wave
Section calibration interpolation compensation method.
Background technology
The most complicated relative to Other Instruments, the most complete place of vector network analyzer is that
Having error correction function, the method for its application software makes up the deficiency of hardware design, logical
Cross and set up suitable error model, use calibrating device known to characteristic to complete to calibrate, thus pole
The earth improves the certainty of measurement of system.
Calibration is a process that requirement is the strictest, even connects the dynamics difference of calibrating device all
Final test precision can be affected, be in general not allow to change instrument state after calibration,
Must recalibrate after change state.But for the particular/special requirement of certain user, such as, think
Measure the measured piece of different frequency range simultaneously, measurement result is required it is not the highest simultaneously, but
Being the highest to measuring efficiency requirements, be not suitable for repeatedly calibrating, current solution is to utilize
The error coefficient of phase near point completes error correction or calibration data is carried out simple interpolation.
Close point is utilized to carry out error correction probably because phase near point causes interpolation error across wave band;
And only consider that calibration data does not considers to cause the simple interpolation of every factor of interpolation error,
Also there will be interpolation result the most incorrect undesirable situation.
Therefore, prior art existing defects, need to improve.
Summary of the invention
The technical problem to be solved is for the deficiencies in the prior art, it is provided that a kind of
The calibration interpolation compensation method of Network Analyzer subrane.
Technical scheme is as follows:
A kind of Network Analyzer subrane calibration interpolation compensation method, wherein, comprises the following steps:
Step one: preserve the current setting state of instrumental effects calibration effect, described currently set
Configuration state is frequency and power;
Step 2: the measurement carrying out standard component performs calibration;
Step 3: be calculated error coefficient, is saved in error coefficient matrix;
Step 4: judge whether measuring state changes, if yes then enter calibration interpolative data
Handling process;If otherwise entering step 5;
Step 5: measure measured piece, connects measured piece, performs measurement;
Step 6: error correction, extracts error coefficient, according to school from error coefficient matrix
The quasi-suitable error model of mode different choice, by measurement data and error coefficient, solves
Equation obtains the actual value of measured piece;
Step 7: judge whether to be measured, terminates program in this way;As otherwise returned step
Four.
Described Network Analyzer subrane calibration interpolation compensation method, wherein, described step 4
In, concretely comprising the following steps of calibration interpolative data handling process:
Step 401: extract initial error coefficient, by the true error under actual alignment state
Coefficient extracts;
Step 402: plural number error coefficient is converted to amplitude data and phase data;
Step 403: phase data is converted to inverse folding linear phase data;
Step 404: subrane performs amplitude data, the interpolation of phase data, interpolation algorithm
Choose Lagrangian Arithmetic, perform interpolation according to currently practical measuring state, obtain all surveys
The error coefficient of amount point;
Step 405: amplitude, phase data are re-converted into complex data, generates new
Error coefficient, returns error coefficient matrix.
Described Network Analyzer subrane calibration interpolation compensation method, wherein, described step
In 401, initial error coefficient is plural number.
Described Network Analyzer subrane calibration interpolation compensation method, wherein, described step
In 404, when subrane performs the interpolation of amplitude data, phase data, do not do in wave band
Insert.
The implementation using above-mentioned calibration interpolation is relatively suitable for the measurement of vector network analyzer
Feature, so interpolation is more satisfactory, utilizes suitable interpolation algorithm to calculate non-calibrated point
Error coefficient, thus complete error correction.Present invention operation is very simple, can be whole
Individual algorithm is embedded in vector net analysis instrument host software, it is also possible to utilize outside instrument
Program control mode realizes, and practicality, autgmentability are the best.
Accompanying drawing explanation
Fig. 1 is the flow chart of interpolation compensation method of the present invention.
Fig. 2 is that the present invention calibrates interpolative data process chart.
Fig. 3 is different modes interpolation results schematic diagram.
Detailed description of the invention
Below in conjunction with the drawings and specific embodiments, the present invention is described in detail.
Embodiment 1
Fig. 1 is that vector network analyzer of the present invention measures process flow diagram flow chart.
The whole measurement process of vector network analyzer substantially can be divided into following step:
It is first begin to, starts program and run;
Step one: preserving instrument current setting state, main preservation affects calibration effect here
Instrument current setting state such as such as frequency, power etc.;
Step 2: perform calibration, the calibration of vector network analyzer mainly include mechanically calibrated,
Two kinds of calibration modes of electric calibration, can also be subdivided into the multiple calibration side such as SOLT, TRL simultaneously
Formula, main process is just by the measurement of standard component;
Step 3: utilize the program curing of vector network analyzer to complete solving of equation group,
Finally give error coefficient, be saved in error coefficient matrix;
Step 4: judge whether align mode changes, system to be monitored before formal measurement
State changes, if the instrument state of the current state of vector network analyzer and preservation differs
Cause it is necessary to enter calibration interpolation flow process.Primary operational carries exactly from error coefficient matrix
Take initial error coefficient, use suitable interpolation algorithm, generate new error coefficient, passback
In error coefficient matrix;
Step 5: measure measured piece, connects measured piece, performs measurement;
Step 6: error correction, extracts error coefficient, according to school from error coefficient matrix
The quasi-suitable error model of mode different choice, by measurement data and error coefficient, solves
Equation obtains the true response of measured piece;
Step 7: judge whether to be measured, is measured end program;Measurement is not fully complete
Return to step 4 continue to measure.
Present invention is generally directed to step 4 alignment interpolation and perform method, first explain lower calibration
The concept of interpolation, vector network analyzer belongs to sweep measurement instrument, it is assumed that we are initial
The calibration performed under the state that frequency 1GHz, termination frequency 2GHz, number of scan points are at 101,
If number of scan points to be changed into 201 points, then be to newly increase by the frequency having 100 points
Frequency, do not have correspondence error coefficient, at this moment will utilize suitable interpolation algorithm, from
Existing 101 point data expand the error coefficient matrix of 201.
Fig. 2 is that the present invention performs vector network analyzer calibration interpolative data process chart.
The Railway Project that need to process when specifically introducing the implementation method of interpolation in the present invention.
The method of curve matching is a lot, through lot of experiments, analysis, we determined that glug is bright
Day interpolation algorithm is best suitable for the calibration interpolation of vector network analyzer, and the calibration result obtained is
Ideal, therefore we use Lagrange's interpolation algorithm as the processing method of calibration interpolation.
Being embodied in a lot of data of Lagrange's interpolation algorithm is all described, the most superfluous at this
State.
After have selected vector network analyzer calibration interpolation algorithm, also have and what time should be noted that:
(1) measurement data of vector network analyzer is plural number, and corresponding error coefficient is also
Plural number, comprises real part, imaginary part, and current various interpolation algorithms is difficult to insert plural number
Value, so needing to be separated into real number to carry out interpolation arithmetic.Here amplitude, phase place are used
Interpolation method, needs that complex data is converted into amplitude, phase place carries out interpolation.
(2) interpolation for phase place has any to pay special attention to, usual vector network analyzer
Phase Processing general provision-180 degree to 180 degree intervals, if processed in such a way,
It is easy to the trip point that phase place occurs, causes big error to interpolation, so phase place is being inserted
Before value, phase place to be changed into non-collapsible linear phase.For example, if two known frequencies
The phase place of rate point f1 and f2 is-90 degree and+90 degree respectively, then central point (f1+f2)/2
Phase place will cause unusual, be 0 degree or 180 degree on earth, if employing non-folding
Folded linear phase, the change direction of phase place is fixing, would not produce the puzzlement of interpolation.
So-called linear phase, it is simply that phase place was not limited in the cycle, does not specify at-180 degree
To+180 degree, the most do not specify at 0 degree to 360 degree, but according to the variation tendency line of phase place
Property cumulative, namely arbitrary neighborhood point-to-point transmission phase difference is not more than 180 degree.
(3) due to the special technical requirement of vector network analyzer own, it is difficulty with at full range
Continuous scanning in section, is typically necessary tape swapping and processes, and particularly frequency span is bigger
Vector network analyzer, there may be tens tape swapping points especially.At tape swapping point, due to
Wave band switches, and causes whole hardware corridor to change so that the characteristic of system creates very
Big saltus step, this also causes the error coefficient of two wave bands at tape swapping point notable difference occur.
Therefore, calibration interpolation is not suitable for operating continuously in whole frequency range, otherwise can be attached at tape swapping point
Near there is bigger error, carries out so our interpolation calculates in being limited in wave band, so may be used
To obtain reasonable interpolation.
Integrate, as in figure 2 it is shown, the present invention calibration interpolation perform process can be divided into
Under several steps:
Step 401: extract initial error coefficient, by the true error under actual alignment state
Coefficient extracts;
Step 402: plural number error coefficient is converted to amplitude, phase data;
Step 403: phase data carries out inverse folding linearization process, forms linear phase
Data;
Step 404 subrane performs amplitude, phase interpolation, and interpolation algorithm chooses Lagrange
Algorithm.Perform interpolation according to currently practical measuring state, obtain all error systems measuring point
Number;
Step 405: amplitude, phase data are re-converted into complex data, generates new
Error coefficient, returns error coefficient matrix, completes follow-up error correction.
Fig. 3 represents the concrete effect for plural number interpolation in different ways.
For plural number interpolation, be for real part, the direct interpolation of imaginary part or be converted into amplitude,
It is more suitable that phase place carries out interpolation?It is concrete that Fig. 3 clearly gives that two kinds of interpolation methods obtain
Result, it is assumed that A, B 2 are the true error coefficients that actual alignment obtains, and A point frequency
Rate be f1, B dot frequency be f2, we respectively symbolically be Af1 and Bf2, now
Require the error coefficient at f=(f1+f2)/2, if using amplitude, phase-interpolation, I
The result that obtains be Cf;If using real part, imaginary part interpolation, the result that we obtain is
Df.Therefrom we can be clearly seen that, it is more preferable that use amplitude, phase place carry out interpolation,
The data obtained are more accurate, and therefore, we use amplitude, phase-interpolation method.
Embodiment 2
On the basis of above-described embodiment, further, a kind of Network Analyzer partial wave of the present invention
Section calibration interpolation compensation method, wherein, comprises the following steps:
Step one: preserve the current setting state of instrumental effects calibration effect, described currently set
Configuration state is frequency and power;
Step 2: the measurement carrying out standard component performs calibration;
Step 3: be calculated error coefficient, is saved in error coefficient matrix;
Step 4: judge whether measuring state changes, if yes then enter calibration interpolative data
Handling process;If otherwise entering step 5;
Step 5: measure measured piece, connects measured piece, performs measurement;
Step 6: error correction, extracts error coefficient, according to school from error coefficient matrix
The quasi-suitable error model of mode different choice, by measurement data and error coefficient, solves
Equation obtains the actual value of measured piece;
Step 7: judge whether to be measured, terminates program in this way;As otherwise returned step
Four.
Furthermore, in described step 4, the concrete steps of calibration interpolative data handling process
For:
Step 401: extract initial error coefficient, by the true error under actual alignment state
Coefficient extracts;
Step 402: plural number error coefficient is converted to amplitude data and phase data;
Step 403: phase data is converted to inverse folding linear phase data;
Step 404: subrane performs amplitude data, the interpolation of phase data, interpolation algorithm
Choose Lagrangian Arithmetic, perform interpolation according to currently practical measuring state, obtain all surveys
The error coefficient of amount point;
Step 405: amplitude, phase data are re-converted into complex data, generates new
Error coefficient, returns error coefficient matrix.
Furthermore, in described step 401, initial error coefficient is plural number.
Furthermore, in described step 404, subrane performs amplitude data, phase data
Interpolation time, do not do across wave band interpolation.
The implementation using above-mentioned calibration interpolation is relatively suitable for the measurement of vector network analyzer
Feature, so interpolation is more satisfactory, utilizes suitable interpolation algorithm to calculate non-calibrated point
Error coefficient, thus complete error correction.Present invention operation is very simple, can be whole
Individual algorithm is embedded in vector net analysis instrument host software, it is also possible to utilize outside instrument
Program control mode realizes, and practicality, autgmentability are the best.
It should be appreciated that for those of ordinary skills, can according on state
Bright improved or converted, and all these modifications and variations all should be belonged to the appended power of the present invention
The protection domain that profit requires.