A kind of frequency agility signal frequency response compensation method based on electrically controlled attenuator
Technical field
The invention belongs to technical field of measurement and test, relate in particular to a kind of frequency agility signal frequency response compensation method based on electrically controlled attenuator.
Background technology
In technical field of measurement and test, power is controlled generally two kinds of methods: automatic electric-level is controlled (Auto Level Control, i.e. ALC) and direct Power Control.It is a kind of close-loop power control mode that automatic electric-level is controlled, and generally adopts feedback loop, within the specific limits signal power is automatically adjusted, and makes it to remain consistent with preset reference power level, thereby guarantees the accurate, stable of signal power.Direct Power Control is a kind of open Loop Power control mode, generally adopts modulated amplifier or electrically controlled attenuator etc. directly to change the power of output signal.The circuit response time of close-loop power controlling method generally arrives a millimeter magnitude in microsecond; And open Loop Power control mode, according to the difference that adopts circuit, the response time arrives several millimeters several nanoseconds.The advantage of close-loop power control mode is that the power accuracy of output signal is high, and generally, in 1.0dB, in the situation that variation of ambient temperature is little, the power accuracy index of field calibration can reach in 0.3dB.But due to the existence of fixed ampllitude loop, the power of close-loop power control mode is difficult to accomplish below microsecond magnitude switching time conventionally.And under open Loop Power control mode, owing to there is no the response time of controlling of amplitude circuit, its response time is only depended on the response time of power controller part conventionally.
In the situation that output signal power index request switching time is not high, in order to guarantee the quick switching of output signal, the power accuracy of output signal in the time of guaranteeing closed loop again, the power that conventionally adopts modulated amplifier to realize signal is controlled.
Because open Loop Power control mode does not have power detection, error ratio and integration such as follows at the link, so the frequency response consistency under its full frequency band, especially wide-band microwave millimeter wave frequency band is poor, conventionally all needs to calibrate and compensate.The existing open loop compensating for frequency response theory diagram based on modulated amplifier as shown in Figure 1.After the control data summation of the initialize data of power reference and compensating for frequency response, the control voltage that is modulated amplifier through DAC circuit conversion, control the multiplication factor of modulated amplifier, thus the power of regulation output signal, and the frequency response consistency realizing under full frequency band different frequency regulates.
But the existing open-loop power control method based on modulated amplifier, shortcoming is that response speed is slow, due to reasons such as sampling time of modulator, the times of integration, response time conventionally in 500 nanoseconds to 2 microsecond magnitudes, its corresponding compensating for frequency response time is also in microsecond magnitude, such response speed, obviously cannot reach the control requirement of the frequency agility signal generation of 10 nanosecond orders.
And frequency agility signal source is radar, the conventional signal generating Instrument of communication and electronic warfare field, the frequency of its output signal and power are less than hundred nanosecond orders switching time conventionally.The state of realizing complete machine hundred nanosecond orders switches, and its plate level state switching will complete conventionally on ten nanosecond orders.In the so short time, the speed that the automatic electric-level in classical signal source is controlled (being ALC) loop is far not by far up to the mark, and the power that therefore must adopt open loop preset mode to realize in frequency agility signal source is controlled.
Summary of the invention
For achieving the above object, the invention provides a kind of frequency agility signal frequency response compensation method based on electrically controlled attenuator, the method considers the factors such as control data transmission time, digital-to-analogue conversion time, the compensating for frequency response all-pass road response time of circuit can be guaranteed at 10 nanosecond orders, can meet state requirement switching time of signal generating apparatus complete machine hundred nanosecond orders.
Frequency agility signal frequency response compensation method based on electrically controlled attenuator of the present invention, it comprises:
Step 1 is calibrated according to corresponding frequency and power within the scope of signal source complete machine full frequency band, total power, sets up two-dimentional frequency agility signal frequency response calibration array;
Step 2, when start, the frequency agility signal frequency response that the index of the calibration data described frequency of foundation and power is deposited in to described two dimension is calibrated in the respective storage areas of array;
Step 3, when the frequency of frequency agility signal or power change, utilizes master controller according to frequency and the power that will switch to, and in the memory block of the frequency agility signal frequency response calibration array of described two dimension, takes out corresponding calibration data;
Step 4, calculates the compensating for frequency response data of current correspondence, and it is sent in electrically controlled attenuator by digital-to-analogue conversion according to described calibration data, described frequency agility signal is carried out to the compensating for frequency response of frequency, power points.
Further, described step 1 comprises:
Step 11, calculates current frequency and compensating for frequency response numerical value D corresponding to power points according to preset power flatness data, and this is worth as initial calibration numerical value; Then signalization source is operated in continuous wave mode, and juxtaposition power reference DAC is current power P to be calibrated 0;
Step 12, under continuous wave mode, start calibration, calibration finishes in the time of will or reaching maximum calibration number of times in calibration success, when calibrating successfully, deposit calibration value D in frequency agility frequency response calibration array, when calibration reaches maximum calibration number of times, select one to approach the frequency response calibration value of preset power output most as the calibration value of this point, and deposit this value in frequency agility frequency response calibration array;
Step 13, for signal source complete machine, carries out the calibration of full rate section total power section according to the frequency step of setting and power stepping;
Further, described step 4 comprises:
Step 41, find calibrated 2 CalP1 and CalP2, and the frequency of CalP1 is less than or equal to Freq, power is less than or equal to Power in the frequency agility frequency response calibration array of described signal source complete machine, and the frequency of CalP2 is greater than Freq, power is greater than Power;
Step 42, finds two other CalP3, CalP4 at calibrated according to CalP1 and 2 of CalP2, and some CalP3, CalP4 meet: the frequency of CalP3 is that F1, power are P2, and the frequency of CalP4 is that F2, power are P1; And the frequency agility frequency response calibration value of CalP1, CalP2, CalP3, CalP4 is respectively D1, D2, D3, D4;
Step 43, according to CalP1, CalP2, CalP3, tetra-calibration points of CalP4, calculate a CalP13, CalP24, wherein CalP13 meets: CalP13 and CalP1,2 of CalP3 have same frequency, the power of CalP13 is the power P ower that current complete machine will be exported, calibration value D13 calculates according to the power P 1 of 2 of CalP1, CalP3 and P3 and current power Power, and computing formula is:
D13=D1+(D3-D1)*((Power-P1)/(P2-P1)),
Wherein CalP24 meets: CalP24 and CalP2,2 of CalP4 have same frequency, the power of CalP24 is the power P ower that current complete machine will be exported, calibration value D24 calculates according to the power P 2 of 2 of CalP2, CalP4 and P4 and current power Power, and computing formula is:
D24=D2+(D4-D2)*((Power-P2)/(P4-P2));
Step 44, according to calibration point CalP13, the CalP24 of current frequency Freq and acquisition, according to formula D=((D24-D13)/(F2-F1)) * Freq+D13-((D24-D13)/(F2-F1)) * F1
Calculate current frequency calibration value, the compensating for frequency response data that this current frequency calibration value is current correspondence;
Wherein, current frequency is Freq, is abbreviated as F, and current power is Power, is abbreviated as P.
Further, in described step 4, by after described power and the summation of described compensating for frequency response data, through the control of DAC, be converted to the control voltage of described electrically controlled attenuator, according to the attenuation of described electrically controlled attenuator, change, described frequency agility signal is carried out to the compensating for frequency response of frequency, power points.
Further, the successful concrete steps of described step 12 alignment are:
Step 121, by real output Pi under external power meter acquisition continuous wave state wherein, 1≤i< maximum is calibrated number of times, then calculates the absolute value Pcal=fabs (Pi-P0) of the difference of described real output Pi and preset power output P0;
Step 122, relatively the size of the limits of error ErrPowLimit of Pcal and calibration appointment, if Pcal is less than or equal to ErrPowLimit, calibrates successfully, and current calibration value D is deposited in calibration array.
Beneficial effect of the present invention is:
The present invention follows the close and continually varying thought of the compensating for frequency response data of pointwise calibration and side frequency and power points, by internal electrical controlled attenuator and drive circuit thereof, can make frequency agility signal in frequency agility, can realize accurately prompt change of high-precision power.
The present invention is based on external perimysium reference power meter, obtain successively the compensating for frequency response data in full frequency band, the accurate power bracket of whole school, deposited in nonvolatile memory, compensating for frequency response data are applied on electrically controlled attenuator by digital to analog converter, by the quick variation of electrically controlled attenuator 10 nanosecond orders, thereby realize the quick changes in amplitude of frequency agility signal.
The present invention can realize recurring of frequency agility signal.By calculating, compensating for frequency response data in advance is deposited in compensating for frequency response memory, when frequency agility signal recurs, can by victory, become the control of bus, the victory that realizes 10 nanosecond orders becomes the continuous variation that attenuator is controlled voltage.
The victory that compensation of the present invention reaches nanosecond based on the response time becomes attenuator, and the adjustment time of compensating for frequency response can reach 10 nanosecond orders, therefore can realize frequency or the prompt change of power of 10 nanosecond orders, improves the power accuracy of frequency agility signal.
Accompanying drawing explanation
Fig. 1 is the compensating for frequency response theory diagram based on modulated amplifier of the present invention;
Fig. 2 is the compensating for frequency response theory diagram based on electrically controlled attenuator of the present invention.
Embodiment
Frequency agility signal frequency response compensation method based on electrically controlled attenuator of the present invention, it comprises:
Step 1 is calibrated according to corresponding frequency and power within the scope of signal source complete machine full frequency band, total power, sets up two-dimentional frequency agility signal frequency response calibration array;
Step 2, when start, the frequency agility signal frequency response that the index of the calibration data described frequency of foundation and power is deposited in to described two dimension is calibrated in the respective storage areas of array;
Step 3, when the frequency of frequency agility signal or power change, utilizes master controller according to the frequency that will switch to, and in the memory block of the frequency agility signal frequency response calibration array of described two dimension, takes out corresponding calibration data;
Step 4, calculates the compensating for frequency response data of current correspondence, and it is sent in electrically controlled attenuator by digital-to-analogue conversion according to described calibration data, described frequency agility signal is carried out to the compensating for frequency response of frequency, power points.
Further, described step 1 comprises:
Step 11, calculates current frequency and compensating for frequency response numerical value D corresponding to power points according to preset power flatness data, and this is worth as initial calibration numerical value; Then signalization source is continuous wave state, and juxtaposition power reference DAC is current power P to be calibrated 0;
Step 12, under continuous wave mode, start calibration, calibration finishes in the time of will or reaching maximum calibration number of times in calibration success, when calibrating successfully, deposit calibration value D in frequency agility frequency response calibration array, when calibration reaches maximum calibration number of times, select one to approach the frequency response calibration value of preset power output most as the calibration value of this point, and deposit this value in frequency agility frequency response calibration array;
Step 13, for signal source complete machine, according to frequency step and power stepping carry out full rate section total power section calibration.
In frequency agility signal testing field, require the frequency of signal or power switching time below microsecond magnitude.In radar, electronic countermeasures and technical field of measurement and test, the frequency of frequency agility signal and power generally will reach at hundred nanosecond orders switching time.So short compensating for frequency response switching time, adopting close-loop power control mode is obviously impossible realize.Therefore,, in prompt variable signal test field, generally adopt the compensating for frequency response circuit shown in Fig. 2.Power reference in figure is controlled data and compensating for frequency response and is controlled after data summation the control through high-speed DAC, power reference and compensating for frequency response are converted to the control voltage of electrically controlled attenuator, the quick variation of the attenuation by electrically controlled attenuator, realization is to compensation and adjusting below hundred nanosecond orders of input signal frequency response, thus the power accuracy of assurance output signal.
Calibration algorithm:
Before calibration starts, set frequency step and power stepping in complete machine calibration process, specify specific error power limits of error ErrPowLimit, and according to the frequency range of complete machine and power bracket, determine the size of the array of depositing calibration data.
I, at current frequency and power (freq, pow) point, according to preset power flatness data (power flatness data are signal sources become and decay to 0 o'clock guaranteed output and export normal compensating for frequency response data in victory), calculate the compensating for frequency response numerical value D that current frequency and power points are corresponding, this value is as the initial calibration numerical value of this some calibration;
Ii, signalization source are continuous wave mode, and juxtaposition power reference DAC is current preset power output (being power to be calibrated) P0;
Iii, by external power meter, obtain after current real output Pi, calculate the absolute value Pcal=fabs (Pi-P0) of the difference of real output Pi now and preset power output P0;
The size of the limits of error ErrPowLimit of iv, comparison Pcal and calibration, if Pcal is less than or equal to ErrPowLimit, we think that this point calibrated after i time and calibrate successfully in circulation, and current calibration value D is deposited in and calibrated in array, finish current frequency power point and calibrate;
V otherwise, when Pcal is greater than the maximum calibration of ErrPowLimit and 1≤i< number of times, if Pi is greater than P0, current calibration figure D is deducted to correction value StepPowCal; If Pi is less than P0, current calibration figure D is added to correction value StepPowCal, then the new calibration value D obtaining after calculating is sent into prompt change in decay control DAC.Again obtain power output Pi now, forward iii to.
Note: above is a point (freq of calibration, pow) step, for signal source complete machine, corresponding power bracket (example :-10dBm-30dBm) frequency range in (example: 100MHz-20GHz), according to certain power stepping (example: 5dBm) and frequency step (example: 200MHz) carry out full rate section total power section and calibrate.
Backoff algorithm:
Current frequency is Freq, and current power is Power, and current frequency and power are in calibrated band limits and power bracket.
In the array of complete machine frequency agility frequency response calibration, find calibrated frequency and power to be less than or equal to respectively and be greater than 2 CalP1 and the CalP2 of Freq and Power, make CalP1 (F1, P1) frequency and power are less than or equal to Freq and Power, make frequency and the power of CalP2 (F2, P2) be more than or equal to Freq and Power;
According to CalP1 and 2 of CalP2, find two other calibrated some CalP3, CalP4, their frequency and power are respectively (F1, P2) and (F2, P1);
It is D1, D2, D3, D4 that the frequency agility that corresponding CalP1, CalP2, CalP3, CalP4 are ordered rings calibration value;
According to current four calibration points that find, calculate other CalP13, CalP24 at 2, wherein CalP13 and CalP1,2 of CalP3 have same frequency, power is the power P ower that current complete machine will be exported, calibration value D13 is D13=D1+ (D3-D1) * that calculates according to the power P 1 of 2 of CalP1, CalP3 and P3 and current power Power ((Power-P1)/(P2-P1)), and same principle D24=D2+ (D4-D2) * ((Power-P2)/(P4-P2));
Current frequency is Freq, frequency and calibration value that CalP13, CalP24 are 2 are (F1, D13), (F2, D24), calculate current frequency calibration value D=((D24-D13)/(F2-F1)) * Freq+D13-((D24-D13)/(F2-F1)) * F1 with D13 and D24 same principle.
In complete machine full frequency band, complete preset power bracket, take to meet frequency and the intervals of power of frequency response index request, set up a two-dimentional frequency agility signal frequency response calibration array and store calibration data.During start, above-mentioned data are deposited in corresponding memory block according to frequency and power index; When the frequency of frequency agility signal or preset power change, master controller is according to the frequency that will switch to, from compensating for frequency response data storage area, take out corresponding compensating for frequency response data, calculate the compensating for frequency response data of current correspondence, sending into electrically controlled attenuator drives in DAC, thereby realize the compensating for frequency response to current frequency, power points, guarantee the frequency response index of frequency agility signal.
Certainly; the present invention also can have other various embodiments; in the situation that not deviating from spirit of the present invention and essence thereof; those of ordinary skill in the art are when making according to the present invention various corresponding changes and distortion, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.