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, it is specifically related to a kind of loop gain scan method for digital control circuit.
Background technology
The closed-loop control that in light volt system, invertor is taked, need the transport function of understanding system, namely the impact that output can be caused by the disturbance signal of each wavelength coverage, comprise the impact of amplitude and phase place, then according to the requirement to system output characteristic, design qualified controller, thus ensure that power supply obtains stable exporting and good performance. In the design phase of principle; owing to designer understands the principle of circuit; the open loop transfer function of circuit can be released by theory; thus design theoretical controller parameter; but in actual circuit; due to additional various protection functional circuit or the time delay caused due to digital control realization or non-linear, the result that the transport function of actual circuit differs greatly all can be caused with theoretical transport function. Spectrum scan instrument is normally adopted to obtain close to real systems communicate function, in fact spectrum scan instrument is the undesired signal adding specific frequency section in actuate signal, then according to it on the impact exported, obtain amplitude-frequency characteristic and the phase frequency characteristic of system, but this kind of method needs laboratory to have spectrum scan instrument to implement, and therefore has certain limitation.
Summary of the invention
It is an object of the invention to provide a kind of loop gain scan method for digital control circuit obtaining system loop gain characteristic in without the need to spectrum scan instrument situation.
For solving the problems of the technologies described above, the technical scheme of the present invention is: a kind of loop gain scan method for digital control circuit, and its special part is: comprise the following steps:
(1) by regulating the control of dutycycle D switch tube to determine the band limits of loop gain;
(2) step-length of scanning is determined, i.e. the difference of the frequency of adjacent two scannings;
(3) determining the amplitude of disturbance signal: the undesired signal adding in step (1) band limits determined inside modulating wave, this signal is by frequency and what amplitude was determined, and the size of its amplitude ensures to affect the normal operation of quiescent point;
(4) calculate loop gain point, then retouch line according to a value; The impact that dutycycle according to each undesired signal is brought to output signal, the variable quantity of sampled output signal, according to Logarithmic calculation formula:, calculate the gain of each Frequency point, loop gain curve can be described.
The band limits determining loop gain in described step (1) is that 0Hz arrivesBetween Hz.
Compared with prior art, the present invention has following useful effect: the present invention is by output signal y (s) and the amplitude-frequency characteristic relation of input signal u (s) in one section of frequency spectrum, can the undesired signal of a series of frequency range of superposition on the input signals, then sampled output signal, by formulae discovery output signal to the Spectrum Relationship of input signal, amplitude-frequency characteristic and phase frequency characteristic just can be obtained by the method for the present invention when there is no scanner.
Accompanying drawing explanation
Fig. 1 is the schematic diagram that in the inventive method, step one modulating wave and carrier wave ratio relatively 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.
For a loop gain scan method for digital control circuit, comprise the following steps:
(1) first, it is determined that want the band limits of the loop gain obtained: see Fig. 2, general because being by regulating the control of dutycycle switch tube to go to realize to the control of system, therefore switching frequencyNear, or even switching frequencyThe loop gain of half and above frequency range is all not use; Therefore determine to need the frequency range scanning loop gain to be that 0Hz arrivesBetween Hz;
(2) step-length of scanning is determined, i.e. the difference of the frequency of adjacent two scannings, see 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 big can than comparatively fast, and just as described point line, point is more many, line is more accurate, but the point calculated may be needed more many, and speed is more slow, usually considers in photovoltaic DC-to-AC converter that electrical network frequency is 50Hz, in order to take into account accuracy and runtime, it is possible to the step-length of scanning is set to 10Hz;
(3) amplitude of disturbance signal is determined: the undesired signal adding in step (1) band limits determined inside modulating wave, 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 ensure to affect the normal operation of quiescent point, the dutycycle of such as quiescent point is 0.5, and the dutycycle disturbance size that the disturbance signal so added causes should be no more than 0.01, namely in figureShould much smaller than D;
(4) calculate loop gain point, then retouch line according to a value: the impact brought 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 describe and arrive at 0HzLoop gain curve, i.e. Bode diagram, see Fig. 4.