A kind of loop gain scan method for digital control circuit
Technical field
the present invention relates to a kind of loop gain scan method, be specifically related to a kind of loop gain scan method for digital control circuit.
Background technology
The closed-loop control that in photovoltaic system, inverter is taked, need to understand system transter, it is the impact that the disturbing signal of each wavelength coverage can cause output, comprise the impact of amplitude and phase place, then according to the requirement to system output characteristics, design qualified controller, thereby guarantee that power supply obtains stable output and good performance.In the design phase of principle; because designer understands the principle of circuit; can release by theory the open-loop transfer function of circuit; thereby design theoretical controller parameter; but in side circuit; the time delay causing due to additional various defencive function circuit or due to digital control realization or non-linear, all can cause the transport function of side circuit and the result that theoretical transport function differs greatly.Normally adopt spectrum scan instrument to obtain approaching real ssystem transfer function, spectrum scan instrument is actually the undesired signal that adds characteristic frequency section in driving signal, then impact on output according to it, obtain amplitude versus frequency characte and the phase-frequency characteristic of system, but this method needs laboratory to have spectrum scan instrument to implement, therefore there is certain limitation.
Summary of the invention
The object of this invention is to provide a kind of loop gain scan method for digital control circuit that obtains system loop-gain characteristic in without spectrum scan instrument situation.
For solving the problems of the technologies described above, technical scheme of the present invention is: a kind of loop gain scan method for digital control circuit, and its special feature is: comprise the following steps:
(1) by regulating dutycycle D the control of switching tube to be determined to the band limits of loop gain;
(2) determine the step-length of scanning, the frequency of adjacent two scannings is poor;
(3) amplitude of deterministic disturbances signal: the undesired signal of definite band limits in modulating wave the inside adds step (1), this signal determined by frequency and amplitude, the size of its amplitude guarantees can not affect the normal work of quiescent point;
(4) calculate loop gain point, then according to point value, retouch line; The impact bringing to output signal according to the dutycycle of each undesired signal, the variable quantity of sampled output signal, according to Logarithmic calculation formula:
, calculate the gain of each Frequency point, can retouch out loop gain curve.
The band limits of determining loop gain in described step (1) is that 0Hz arrives
between Hz.
Compared with prior art, the present invention has following beneficial effect: the present invention passes through in output signal y (s) and the amplitude versus frequency characte relation of input signal u (s) in one section of frequency spectrum, the undesired signal of a series of frequency ranges that can superpose on input signal, then sampled output signal, by formula, calculate the Spectrum Relationship of output signal to input signal, in the situation that there is no scanner, by method of the present invention, just can not obtain amplitude versus frequency characte and phase-frequency characteristic.
Accompanying drawing explanation
Fig. 1 is the schematic diagram that in the inventive method, step 1 modulating wave and carrier wave ratio obtain dutycycle D;
Fig. 2 is the schematic diagram of step 2 in the inventive method;
Fig. 3 is step 3 schematic diagram in the inventive method;
Fig. 4 is the schematic diagram of step 4 in the inventive method.
Embodiment
Below in conjunction with embodiment, the present invention will be described in detail.
A loop gain scan method for digital control circuit, comprises the following steps:
(1) first, determine the band limits want the loop gain that obtains: referring to Fig. 2, general because be by regulating dutycycle to go to realize to the control of switching tube to the control of system, so switching frequency
near, or even switching frequency
the loop gain of half and above frequency range is all otiose; Therefore definite frequency range that need to scan loop gain is that 0Hz arrives
between Hz;
(2) determine the step-length of scanning, the frequency of adjacent two scannings is poor, in Fig. 2
.This does not generally have strict value, step-length is little, and whole scanning process can be slow, scanning process that step-length is large can be than comparatively fast, and just as described point line, point is more, line is more accurate, but the calculative point of possibility is more, and speed is slower, conventionally in photovoltaic DC-to-AC converter, considers that mains frequency is 50Hz, in order to take into account accuracy and runtime, step-length that can scanning is set to 10Hz;
(3) amplitude of deterministic disturbances signal: the undesired signal of definite band limits in modulating wave the inside adds step (1), see Fig. 3, this undesired signal is determined by frequency and amplitude, the frequency of each undesired signal can be obtained by above-mentioned 2 steps, the size of its amplitude should guarantee can not affect the normal work of quiescent point, for example the dutycycle of quiescent point is 0.5, and the dutycycle disturbance size that the disturbing signal adding so causes should be no more than 0.01, in figure
should be much smaller than D;
(4) calculate loop gain point, then according to point value, retouch line: the impact bringing to output signal according to the dutycycle of each undesired signal, the variable quantity of sampled output signal, according to Logarithmic calculation formula,
, calculate the gain of each Frequency point, can retouch out at 0Hz and arrive
loop gain curve, i.e. Bode diagram, referring to Fig. 4.