Compensation method and compensation circuit for pulse current waveform

文档序号:244678 发布日期:2021-11-12 浏览:29次 中文

阅读说明:本技术 一种脉冲电流波形的补偿方法以及补偿电路 (Compensation method and compensation circuit for pulse current waveform ) 是由 王承 胡国锋 黄秋元 周鹏 于 2021-10-15 设计创作,主要内容包括:本申请实施例提供一种脉冲电流波形的补偿方法以及补偿电路,在对脉冲波形进行补偿时,向待测物提供一脉冲电流,驱动该被测物工作,进而在通过采样模块将电路中的电流转换成电压信号,并通过转换模块将该电压信号转换成数字量信号,并对该数字量信号进行处理并比较,从补偿模块中选取对应的补偿网络单元,进而对输出的脉冲电流波形进行补偿。本申请实施例中提供的补偿方法,可自动判断补偿区间、并自动选择补偿参数,实时性强,普适性好,并且结构简单,成本低,同时能有效的吸收测试线路中因寄生感抗效应而产生的震荡,从而达到对脉冲电流的边沿进行整形,并得到预期的脉冲波形和被测器件的性能参数值。(The embodiment of the application provides a compensation method and a compensation circuit for a pulse current waveform, when the pulse waveform is compensated, a pulse current is provided for an object to be measured, the object to be measured is driven to work, then the current in the circuit is converted into a voltage signal through a sampling module, the voltage signal is converted into a digital quantity signal through a conversion module, the digital quantity signal is processed and compared, a corresponding compensation network unit is selected from the compensation module, and then the output pulse current waveform is compensated. The compensation method provided by the embodiment of the application can automatically judge the compensation interval and automatically select the compensation parameters, has strong real-time property, good universality, simple structure and low cost, and can effectively absorb the oscillation generated by the parasitic inductive reactance effect in the test line, thereby shaping the edge of the pulse current and obtaining the expected pulse waveform and the performance parameter value of the tested device.)

1. A compensation method of a pulse current waveform is applied to a pulse current waveform compensation circuit, and is characterized in that the pulse current waveform compensation circuit comprises a power supply module, a sampling module, a conversion module, a control module and a compensation module, and the compensation method comprises the following steps:

the control module sends a power supply enabling signal to the power supply module so that the power supply module provides a pulse current signal to the device to be tested;

the control module sends control enabling signals to the sampling module and the conversion module so that the sampling module acquires data signals sent by the device to be tested and the conversion module forms digital quantity signals according to the data signals;

the control module determines a real-time rising edge peak value corresponding to the pulse current signal according to the digital quantity signal, and acquires a numerical relationship between the rising edge peak value and a first threshold value based on the first threshold value, wherein when the numerical relationship is acquired, a difference value between the rising edge peak value and the first threshold value is acquired, and a ratio of the difference value to the first threshold value is calculated to obtain the numerical relationship;

and the control module sends a compensation enabling signal to the compensation module so that the compensation module compensates the pulse waveform of the pulse current waveform compensation circuit according to the numerical relation.

2. The method of claim 1, wherein the step of causing the power module to provide a pulse current signal to the device under test comprises: the power supply module generates a voltage and a pulse current and transmits the pulse current and the voltage to the device to be tested so as to drive the device to be tested to work.

3. The method of compensating for a pulsed current waveform of claim 1, wherein the step of the control module issuing control enable signals to the sampling module and the conversion module comprises:

the sampling module receives pulse current formed by the device to be tested and converts the pulse current into a voltage signal;

the conversion module receives the voltage signal and converts the voltage signal into a digital quantity signal.

4. The method for compensating the pulse current waveform according to claim 1, wherein the step of enabling the compensation module to compensate the pulse waveform of the pulse current waveform compensation circuit according to the numerical relationship comprises:

setting a plurality of compensation intervals;

the control module receives the numerical relation and selects a compensation interval corresponding to the numerical relation;

and the control module opens or closes an analog switch in the compensation module according to the selected compensation interval to realize the compensation of the pulse waveform.

5. The method for compensating the pulse current waveform according to claim 4, wherein the compensation module comprises a plurality of compensation network units, and the compensation interval comprises a first compensation interval, a second compensation interval, a third compensation interval and a fourth compensation interval which are adjacent in sequence;

and when the numerical relation is located in the corresponding compensation interval, selecting a compensation network unit corresponding to the compensation interval, switching off or switching on an analog switch in the compensation network unit, and compensating the pulse current waveform in real time.

6. The method for compensating for a pulse current waveform of claim 5, wherein the step of selecting the compensation network element comprises:

the compensation network unit comprises a first compensation network unit, a second compensation network unit and a third compensation network unit;

when the numerical relationship is located in the first compensation interval, disconnecting the analog switches corresponding to the first compensation network unit, the second compensation network unit and the third compensation network unit;

when the numerical relationship is located in the second compensation interval, closing the analog switch of the first compensation network unit, and opening the analog switches of the second compensation network unit and the third compensation network unit;

when the numerical relationship is located in the third compensation interval, closing the analog switch of the second compensation network unit, and opening the analog switches of the first compensation network unit and the third compensation network unit;

and when the numerical relation is located in the fourth compensation interval, closing the analog switch of the third compensation network unit, and opening the analog switches of the first compensation network unit and the second compensation network unit.

7. The method for compensating the pulse current waveform according to claim 6, wherein the first compensation interval is: less than or equal to 2 percent;

the second compensation interval is as follows: more than 2% and less than or equal to 5%;

the third compensation interval is as follows: more than 5% and less than or equal to 10%;

the fourth compensation interval is as follows: greater than 10%.

8. The method according to claim 5, wherein the compensation network unit comprises a resistor, a capacitor and an analog switch, the resistor, the capacitor and the analog switch are connected in series, a plurality of compensation network units are connected in parallel, and the corresponding resistor and the corresponding capacitor in different compensation network units are different.

9. The pulse current waveform compensation circuit is characterized by comprising a power supply module, a sampling module, a conversion module, a control module and a compensation module;

the power supply module is used for providing a pulse current signal for the device to be tested;

the sampling module is used for acquiring a data signal sent by the device to be tested;

the conversion module is used for converting the digital quantity signal corresponding to the data signal;

the control module is used for determining a rising edge peak value corresponding to the pulse current signal according to the digital quantity signal and acquiring a numerical relation between the rising edge peak value and a first threshold value based on the first threshold value;

the compensation module is used for compensating the waveform of the pulse current waveform compensation circuit according to the numerical relation, wherein the compensation module comprises a plurality of compensation network units which are connected in parallel.

10. The pulsed current waveform compensation circuit of claim 9, wherein the compensation network unit comprises a resistor, a capacitor, a diode, and an analog switch, the resistor, the capacitor, and the analog switch being connected in series, the diode being connected in parallel with the resistor and the capacitor and in series with the analog switch.

Technical Field

The invention relates to the technical field of pulse signal compensation, in particular to a pulse current waveform compensation method and a pulse current waveform compensation circuit.

Background

With the continuous progress of the technical fields of electronic power and the like, the pulse current source is also rapidly developed, and the corresponding application market is occupied by the advantages of adjustable output current amplitude and pulse width, stable work, low maintenance cost, wide application range and the like.

Among them, the above-mentioned devices such as the pulse current source are widely used in the field of industrial testing, and play an important role thereof. For the pulse waveform corresponding to the pulse current, the rising time and the falling time of the pulse current signal are important parameters for measuring the quality of the pulse current waveform inside the device, and are key indexes and parameters reflecting the internal performance of the tested device. The optimal driving current waveform is a square wave, and the rising edge and the falling edge of the square wave have short requirement time and small overshoot. In the existing pulse current generation circuit, a constant current source circuit composed of discrete devices is commonly used. Such circuits are extremely sensitive to line parasitic inductance. However, in the existing pulse testing device, in practical use, a long connecting wire is generally required to be arranged between the equipment and the device to be tested. When the length of the wire is too large, parasitic inductive reactance caused by the wire is also large, so that the bandwidth of the pulse current generating circuit is seriously influenced, and the problem that waveform edge overshoot is difficult to control is caused. And if a compensation network is designed for a specific wire, the wire is long or short in the field use process, so that the test device cannot be adapted to various scenes, and the test data is inaccurate.

Therefore, it is desirable to provide a new pulse signal compensation circuit and compensation method to effectively solve the problem that the pulse signal testing device in the prior art is easily affected by external parasitic inductance during the testing process and the testing data is inaccurate.

Disclosure of Invention

In order to solve the above problems, embodiments of the present invention provide a method and a circuit for compensating a pulse current waveform, so as to effectively solve the problem that when a pulse signal is tested on an object to be tested, the object to be tested is easily affected by an inductive reactance in a line, and thus test data is inaccurate.

According to a first aspect of the embodiments of the present application, there is provided a compensation method for a pulse current waveform, which is applied to a pulse current waveform compensation circuit, where the pulse current waveform compensation circuit includes a power supply module, a sampling module, a conversion module, a control module, and a compensation module, and the compensation method includes the following steps:

the control module sends a power supply enabling signal to the power supply module so that the power supply module provides a pulse current signal to the device to be tested;

the control module sends control enabling signals to the sampling module and the conversion module so that the sampling module acquires data signals sent by the device to be tested and the conversion module forms digital quantity signals according to the data signals;

the control module determines a real-time rising edge peak value corresponding to the pulse current signal according to the digital quantity signal, and acquires a numerical relationship between the rising edge peak value and a first threshold value based on the first threshold value, wherein when the numerical relationship is acquired, a difference value between the rising edge peak value and the first threshold value is acquired, and a ratio of the difference value to the first threshold value is calculated to obtain the numerical relationship;

and the control module sends a compensation enabling signal to the compensation module so that the compensation module compensates the pulse waveform of the pulse current waveform compensation circuit according to the numerical relation.

In some embodiments, the step of causing the power module to provide a pulsed current signal to the device under test includes: the power supply module generates a voltage and a pulse current, and transmits the voltage and the pulse current to the device to be tested so as to drive the device to be tested to work.

In some embodiments, the step of the control module issuing control enable signals to the sampling module and the conversion module comprises:

the sampling module receives pulse current formed by the device to be tested and converts the pulse current into a voltage signal;

the conversion module receives the voltage signal and converts the voltage signal into a digital quantity signal.

In some embodiments, the step of causing the compensation module to compensate the pulse waveform of the pulse current waveform compensation circuit according to the numerical relationship comprises:

setting a plurality of compensation intervals;

the control module receives the numerical relation and selects a compensation interval corresponding to the numerical relation;

and the control module opens or closes an analog switch in the compensation module according to the selected compensation interval to realize the compensation of the pulse waveform.

In some embodiments, the compensation module comprises a plurality of compensation network elements, and the compensation intervals comprise a first compensation interval, a second compensation interval, a third compensation interval and a fourth compensation interval which are adjacent in sequence;

and when the numerical relation is located in the corresponding compensation interval, selecting a compensation network unit corresponding to the compensation interval, switching off or switching on an analog switch in the compensation network unit, and compensating the pulse current waveform in real time.

In some embodiments, the step of selecting the compensating network element comprises:

the compensation network unit comprises a first compensation network unit, a second compensation network unit and a third compensation network unit;

when the numerical relationship is located in the first compensation interval, disconnecting the analog switches corresponding to the first compensation network unit, the second compensation network unit and the third compensation network unit;

when the numerical relationship is located in the second compensation interval, closing the analog switch of the first compensation network unit, and opening the analog switches of the second compensation network unit and the third compensation network unit;

when the numerical relationship is located in the third compensation interval, closing the analog switch of the second compensation network unit, and opening the analog switches of the first compensation network unit and the third compensation network unit;

and when the numerical relation is located in the fourth compensation interval, closing the analog switch of the third compensation network unit, and opening the analog switches of the first compensation network unit and the second compensation network unit.

In some embodiments, the first compensation interval is: less than or equal to 2 percent;

the second compensation interval is as follows: more than 2% and less than or equal to 5%;

the third compensation interval is as follows: more than 5% and less than or equal to 10%;

the fourth compensation interval is as follows: greater than 10%.

In some embodiments, the compensation network units include resistors, capacitors, and analog switches, the resistors, the capacitors, and the analog switches are connected in series, and a plurality of the compensation network units are connected in parallel, and the corresponding resistors and the corresponding capacitance values in different compensation network units are different.

According to a second aspect of embodiments of the present application, there is provided a compensation circuit for a pulse current waveform, including:

the pulse current waveform compensation circuit comprises a power supply module, a sampling module, a conversion module, a control module and a compensation module;

the power supply module is used for providing a pulse current signal for the device to be tested;

the sampling module is used for acquiring a data signal sent by the device to be tested;

the conversion module is used for converting the digital quantity signal corresponding to the data signal;

the control module is used for determining a rising edge peak value corresponding to the pulse current signal according to the digital quantity signal and acquiring a numerical relation between the rising edge peak value and a first threshold value based on the first threshold value;

the compensation module is used for compensating the waveform of the pulse current waveform compensation circuit according to the numerical relation, wherein the compensation module comprises a plurality of compensation network units which are connected in parallel.

In some embodiments, in the compensation module, the compensation network unit includes a resistor, a capacitor, and an analog switch, the resistor, the capacitor, and the analog switch are connected in series, and a plurality of the compensation network units are connected in parallel.

In some embodiments, the compensation network element includes a resistor, a capacitor, a diode, and an analog switch, the resistor, the capacitor, and the analog switch being connected in series, the diode being connected in parallel with the resistor and the current and in series with the analog switch.

According to the compensation method and the compensation circuit for the pulse current waveform, the compensation module is arranged in the circuit structure of the compensation test equipment, when a tested object is tested, pulse current is provided for the tested object to drive the tested object to work, current in a circuit is converted into a voltage signal through the sampling module, the voltage signal is converted into a digital quantity signal through the conversion module, the digital quantity signal is processed and compared, a corresponding compensation network unit is selected from the compensation module, and the output pulse current waveform is compensated. The compensation method provided by the embodiment of the application can automatically judge the compensation interval and automatically select the compensation parameters, has strong real-time property, good universality, simple structure and low cost, and can effectively absorb the oscillation generated by the parasitic inductive reactance effect in the test line, thereby shaping the edge of the pulse current and obtaining the expected pulse waveform and the performance parameter value of the tested device.

Drawings

The technical solution and other advantages of the present invention will become apparent from the following detailed description of specific embodiments of the present invention, which is to be read in connection with the accompanying drawings.

Fig. 1 is a schematic structural diagram of a compensation apparatus for a pulse current waveform according to an embodiment of the present disclosure;

fig. 2 is a schematic circuit structure diagram of a compensation apparatus provided in an embodiment of the present application;

fig. 3 is a schematic circuit diagram of a compensation network unit according to an embodiment of the present disclosure;

FIG. 4 is a diagram illustrating a method for compensating a pulse current waveform according to an embodiment of the present disclosure;

FIG. 5 is a schematic diagram of a plurality of different compensation intervals provided by an embodiment of the present application;

fig. 6 is a schematic diagram of pulse waveforms before and after compensation according to an embodiment of the present disclosure.

Detailed Description

The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", and the like, indicate orientations and positional relationships based on those shown in the drawings, and are used only for convenience of description and simplicity of description, and do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be considered as limiting the present invention. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.

In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either fixedly connected, electrically connected, or in communication with each other; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.

The current pulse current source is widely applied to various devices, and provides a pulse signal to a measured object to finally obtain various performance parameter values of the measured object. However, in the prior art, when the device to be tested is connected and tested, a long circuit is often required to be externally connected. In addition, when testing different types of tested objects, connecting wires with different lengths need to be externally connected. When the connected line is long, a large parasitic inductive reactance value is brought in the line, and the increased parasitic inductive reactance value affects the bandwidth of the pulse current generation circuit, so that the problem that the edge overshoot of the waveform is difficult to control is caused, and the pulse waveform and various obtained performance parameters are affected.

Therefore, the embodiments of the present application provide a compensation method and a compensation circuit for a pulse waveform to effectively solve the problem of the influence of the factors such as the existence of a large parasitic inductive reactance in the circuit on the pulse waveform.

As shown in fig. 1, fig. 1 is a schematic structural diagram of a compensation apparatus for a pulse current waveform according to an embodiment of the present disclosure. The compensation device for the pulse current waveform in the embodiment of the application comprises:

a power module 110, wherein the power module 110 may include a voltage source and a pulsed current source. The power module is used for generating a pulse current I and a voltage, when a device to be tested needs to be tested and compensated, the compensation device 10 is connected with the device to be tested 105, and the power module 110 is turned on to enable the voltage source and the pulse current source to provide a voltage and a pulse current for the device to be tested 105, so that the device to be tested 105 is driven to work.

The sampling module 100, the sampling module 100 is connected with the power module 110. When the device under test 105 is in operation, a corresponding pulse current is formed in the device under test 105 and in the test line, and the sampling module 100 is configured to receive a current signal currently flowing through the device under test 105. Meanwhile, the sampling module 100 further converts the pulse current signal into a corresponding voltage signal.

The sampling module 100 converts a data signal, such as a pulse current signal, formed by the device under test 105 into a corresponding voltage signal, and the conversion module 101 receives the voltage signal after the conversion module 101 is connected to the sampling module 100. Meanwhile, the conversion module 101 further converts the voltage signal into a digital signal, and in this embodiment, the conversion module 101 may include an analog-to-digital converter.

The control module 102, in this embodiment of the present application, the control module 102 is configured to send a power enable signal to a power module, and meanwhile, the control module 102 is further configured to send and receive a control enable signal to the sampling module 100 and the conversion module, so as to enable corresponding module units to operate. Specifically, the control module 102 receives the digital signal formed in the conversion module 101 and processes the digital signal. And according to the digital quantity signal and the set first threshold value, the numerical relation between the real-time rising edge peak value corresponding to the pulse current signal in the circuit and the first threshold value is obtained. Specifically, the control module 102 calculates a real-time rising edge peak value corresponding to the pulse current signal in the test compensation circuit according to the received digital quantity signal, and compares the rising edge peak value with the first threshold value after the rising edge peak value is obtained.

When the device 105 to be tested is connected, for example, an oscilloscope of a certain model, when the waveform of a device is tested, a longer line 106 needs to be externally connected, and a larger parasitic inductive reactance exists on the line 106, so that the real-time rising edge peak value corresponding to the pulse current signal in the test circuit is different from the preset current value. Therefore, it is necessary to compensate the peak value of the rising edge in real time to obtain the final expected pulse waveform and improve the tested parameters.

Specifically, the specific size of the first threshold in the embodiment of the present application may be set according to different types of products, and the specific parameter value is not limited here, for example, the specific parameter value is set to be a square wave current that the pulse current should outputThe corresponding plateau value. In the embodiment of the present application, the first threshold is set to IsetThe description is given for the sake of example.

In determining the above numerical relationship, in the embodiment of the present application, the peak value of the rising edge is represented by IpFor example, the current value is preset as IsetFor example. Therefore, the peak value Ip of the rising edge is equal to the predetermined current IsetWhen comparing, specifically, the real-time rising edge peak value I calculated by the control module 102 is obtainedpAnd a predetermined current IsetMaking a difference and obtaining a rising edge peak value IpAnd a predetermined current IsetOr the absolute value I of the differenced=| Ip-Iset | 。

Obtaining the above difference value IdThen, the difference I is calculated and obtaineddAnd a first threshold value IsetAnd obtaining an overshoot ratio delta, wherein the value of the overshoot ratio delta is the corresponding numerical relation between the rising edge branch and the first threshold. Wherein δ = (I)d/Iset)*100%。

Finally, the overshoot ratio δ corresponding to the pulse current signal in the line is obtained through the control module 102 in the embodiment of the present application.

Further, the compensation device further includes a compensation module 103, and in this embodiment, the compensation module 103 is configured to compensate for the waveform of the pulse current waveform compensation circuit according to the above numerical relationship. In order to effectively compensate for parasitic inductive reactance in the line, in the embodiment of the present application, a plurality of compensation network units are further disposed in the compensation module 103. When the inductive reactance in the circuit needs to be compensated, the corresponding compensation network is selected from the different compensation network units, and the compensation of the pulse waveform is realized.

Specifically, in the embodiment of the present application, when the corresponding compensation network is selected, the selection is performed according to the overshoot ratio δ value obtained in the control module 102. In the embodiment of the present application, a plurality of compensation intervals are further set, and in different compensation intervals, the selected compensation networks are different, that is, different overshoot ratios δ fall in different compensation intervals. For example, a first compensation interval, a second compensation interval, etc., when the overshoot ratio δ value is within the first compensation interval, two compensation network elements may be selected at the same time, and when the overshoot ratio δ value is within the second compensation interval, three or more different compensation network elements may be selected at the same time.

Preferably, if the overshoot ratio δ is just within the second compensation interval, at this time, the control module 102 selects the compensation network unit corresponding to the second compensation interval according to the determination result, and opens or closes the switches corresponding to different compensation network units in the compensation module 103, so as to implement accurate compensation of the line, and finally outputs the compensated pulse waveform, thereby accurately measuring various parameter values such as the voltage of the device under test 105.

In the embodiment of the present application, a resistor, a capacitor, and an analog switch may be included in each compensation network unit. Specifically, the resistor, the capacitor and the analog switch are sequentially connected in series, and different compensation network units are connected in parallel, and then correspondingly connected to the control module 102.

Meanwhile, in order to further improve the compensation effect of the circuit, in the embodiment of the present application, each compensation network unit may further include a diode. In each compensation network unit, after a resistor is connected with a capacitor in series, the resistor is connected with the diode in parallel, and then connected with a corresponding analog switch in series to finally form different compensation network units.

In the embodiment of the application, the compensation network unit can compensate parasitic inductive reactance in a line in real time, and can adaptively select different devices to be tested and different devices to be tested in a test process according to test parameters. Therefore, in different compensation network units, the corresponding resistance values, capacitance values or diodes may not be completely the same, or, in each compensation network unit, the number of the devices may not be completely the same, specifically, the devices are debugged and set according to the models of different devices, and no specific limitation is made here.

Furthermore, in this embodiment of the application, the current compensation circuit may further include an output display unit, where the output display unit is connected to the current, and finally outputs and displays the compensated waveform of the pulse current through the display unit.

In the embodiment of the present application, because the compensation module 103 is a passive module in the pulse compensation circuit, when the pulse compensation circuit is connected to different lines and needs to compensate parasitic inductive reactance in the non-line, the compensation of the corresponding pulse signal waveform in the circuit can be realized only by closing the analog switch in the corresponding compensation network unit in the compensation module 103 according to the value of the overshoot ratio δ. Therefore, the compensation unit circuit structure in the embodiment of the application is a passive module, and meanwhile, the structure is simpler, the design and manufacturing cost is lower, and the compensation effect is better.

Specifically, the pulse current waveform compensation circuit provided in the embodiment of the present application can be applied to a pulse waveform compensation device. As shown in fig. 2, fig. 2 is a schematic diagram of a compensation circuit structure corresponding to a compensation apparatus provided in the embodiment of the present application.

Referring to fig. 1, the pulse current waveform compensation apparatus 10 includes a sampling module 100, a conversion module 101, a control module 102, and a compensation module 103, which are correspondingly disposed.

Specifically, in the embodiment of the present application, a pulse source 1 is disposed in the compensation device, and one end of the pulse source 1 is correspondingly connected to one end of a sampling module 100, a control module 102, a compensation module 103, and a control module 102 in the circuit, where the control module 102 sends a power enable signal to the pulse source 1, and the pulse source 1 generates a pulse current and transmits the pulse current to the device under test 105.

And a voltage source 11, wherein the pulse source 1 and the voltage source 11 are power modules in the embodiment of the present application. The voltage source 11 is used for providing a driving voltage to the compensation device, and works together with the pulse current to enable the device to be tested to work normally.

Meanwhile, the sampling module 100 may include a sampling resistor 12 and a sampling op-amp 13, wherein the sampling resistor 12 and the sampling op-amp 13 are connected to each other and connected to the control module 102, and the above components are correspondingly disposed in the circuit structure.

As shown in fig. 3, fig. 3 is a schematic diagram of a circuit structure in a compensation network unit according to an embodiment of the present application. In this embodiment, the compensation module 103 includes a plurality of compensation network units 1031, and the compensation module 103 is a passive compensation module. The compensation network unit is described by taking a first compensation network unit 2, a second compensation network unit 3, a third compensation network unit 4, and a first analog switch 8, a second analog switch 9, and a third analog switch 10 connected to the compensation network unit as examples, where the compensation network unit is only an example, and the number of the compensation network units may be increased or decreased according to actual products.

The first compensation network element 2 comprises a resistor Ra, a capacitor Ca and a diode, the second compensation network element 3 comprises a resistor Rb, a capacitor Cb and a diode, and the third compensation network element 4 comprises a resistor Rc, a capacitor Cc and a diode. After the resistor is connected with the capacitor in series, the resistor is connected with the diode in parallel, then is connected with the analog switch correspondingly and is connected into the compensation circuit structure.

Meanwhile, the control module 102 may include a controller 15, and the controller 15 is connected to the first analog switch 8, the second analog switch 9, and the third analog switch 10 respectively, for controlling the opening and closing of the analog switches.

The compensation device for the pulse current waveform provided in the embodiment of the present application further includes two test connection lines, a first test connection line 21 and a second test connection line 22, led out from the inside of the device. One end of the first test connection line 21 is connected to one end of the compensation module 103 inside the device, and one end of the second test connection line 22 is connected to one end of the sampling module 100. Because the first test connecting line 21 and the second test connecting line 22 which are externally connected are long, certain parasitic inductive reactance 5 and parasitic inductive reactance 6 exist on the test connecting line, and the parasitic inductive reactance easily influences the pulse current waveform in the test circuit.

When the device under test 105 needs to be tested, the first test connection line 21 and the second test connection line 22 are connected to the corresponding terminals 7 of the device under test 105, so as to form a test loop as shown in fig. 2.

When the parameters of the device to be tested 105 are measured, the pulse source 1 generates a pulse current under the control of the control module, and the pulse current is formed on the device to be tested 105, so that the device to be tested 105 is driven to work. Due to the inductance effect of the wire, transient current on the wire can cause voltage transient at two ends of the wire, so that the rising edge of the current of the pulse source is influenced to overshoot greatly or even oscillate.

In the embodiment of the present application, the sampling resistor 12 and the sampling operational amplifier 13 convert a current signal on a line into a voltage signal, and send a voltage value corresponding to the voltage signal into the analog-to-digital converter 14, and form an analog-to-digital signal, where the analog-to-digital signal is a digital quantity signal, and a magnitude of the formed digital quantity signal is a magnitude of a current value in the corresponding line. The analog-digital converter 14 sends the digital quantity signal to the controller 15; the controller 15 calculates the real-time current rising edge peak value I according to the acquired digital quantityp(ii) a Then, Ip and a first threshold current I are calculatedsetAbsolute value of the difference between Id=| I p-I setAnd obtaining a ratio of the difference value to the first threshold current, and obtaining a numerical relation. In the embodiment of the present application, the numerical relationship is defined as an overshoot ratio δ, i.e., an overshoot ratio δ = (I)d/Iset)×100%。

Finally, according to the overshoot ratio δ, the controller 15 controls the analog switch in the compensation module to be turned off or turned on, so that in the embodiment of the present application, the compensation network unit is introduced into the test compensation loop, and the detected waveform of the pulse current is compensated in real time, so as to ensure the accuracy of the test parameters of the device under test 105.

Specifically, referring to fig. 4 in combination with a schematic diagram of a corresponding circuit structure in fig. 2, fig. 4 is a schematic diagram of a compensation method for a pulse current waveform according to an embodiment of the present application, where the compensation method includes:

the control module sends a power supply enabling signal to the power supply module so that the power supply module provides a pulse current signal to the device to be tested;

the control module sends control enabling signals to the sampling module and the conversion module so that the sampling module obtains data signals sent by a device to be tested and the conversion module forms digital quantity signals according to the data signals;

the control module determines a real-time rising edge peak value corresponding to the pulse current signal according to the digital quantity signal, and acquires a numerical relation between the rising edge peak value and a first threshold value based on the first threshold value, wherein when the numerical relation is acquired, a difference value between the rising edge peak value and the first threshold value is acquired, and a ratio of the difference value to the first threshold value is calculated to obtain the numerical relation;

the control module sends out a compensation enabling signal to the compensation module so that the compensation module compensates for the pulse waveform of the pulse current waveform compensation circuit according to the numerical relation.

Specifically, a device under test 105 is provided, a pulse current is generated by the pulse source 1, and a voltage is provided by the voltage source 11, so that the device under test 105 operates normally.

Due to the inductance effect of the wire, transient current on the wire can cause voltage transient at two ends of the wire, so that the rising edge of the current of the pulse source is influenced to overshoot greatly or even oscillate.

In the embodiment of the present application, the sampling resistor 12 and the sampling operational amplifier 13 receive the pulse current signal flowing through the device under test 105, convert the pulse current signal into a voltage value, send the voltage value into the analog-to-digital converter 14, and form a digital signal, and the analog-to-digital converter 14 sends the digital signal into the controller 15.

The controller 15 processes the acquired digital quantity signal and obtains a numerical relationship: the controller 15 calculates the real-time current rising edge peak value I according to the acquired digital quantity signalp(ii) a Then calculating Ip and current set value IsetDifference value I betweend=| I p-I setAnd then calculating the current passing through the circuitImpulse ratio delta = (I)d/Iset)×100%。

Finally, according to the overshoot ratio δ, the controller 15 controls the corresponding analog switch to be turned off or turned on, so as to introduce a compensation network unit into the loop, and finally perform real-time compensation on the detected waveform of the pulse current, thereby ensuring the accuracy of the test parameters of the device to be tested 105.

Specifically, when different compensation network elements are selected, in the embodiment of the present application, a plurality of different compensation intervals are first set, taking the compensation interval shown in fig. 5 as an example, and fig. 5 is a plurality of different compensation intervals provided in the embodiment of the present application. The compensation intervals comprise a first compensation interval A, a second compensation interval B, a third compensation interval C and a fourth compensation interval D which are sequentially arranged, the compensation intervals are sequentially and continuously arranged, meanwhile, when a plurality of compensation intervals are set, the compensation intervals can be discontinuously arranged, namely, a certain interval exists between every two adjacent compensation intervals, and particularly, the compensation intervals are set according to actual products and are not limited.

In the first compensation interval, A is less than or equal to 2 percent;

in the second compensation interval, B is more than 2% and less than or equal to 5%;

in the third compensation interval, C is more than 5% and less than or equal to 10%;

and in the fourth compensation interval, 10% < D.

Therefore, the control module receives the obtained numerical value relationship and the overshoot ratio and selects a compensation interval corresponding to the overshoot ratio;

and the control module opens or closes the analog switch in the compensation module according to the selected compensation interval, and finally realizes the compensation of the pulse waveform.

Specifically, the overshoot ratio δ calculated in the circuit is combined with the compensation interval and the corresponding interval value:

when the value of the overshoot ratio δ is within the first compensation interval a, the analog switches 8, 9 and 10 corresponding to the first compensation network unit, the second compensation network unit and the third compensation network unit are turned off, and the compensation network unit is switched in the circuit, so that the pulse current waveform does not need to be compensated;

when the overshoot ratio δ is within the second compensation interval B, the analog switch 8 of the first compensation network unit is closed, and the analog switch 9 of the second compensation network unit and the analog switch 10 of the third compensation network unit are opened, at this time, only the first compensation network unit is connected into the circuit, and the pulse waveform is compensated by the first compensation network unit;

when the overshoot ratio delta is within the third compensation interval C, the analog switch 9 of the second compensation network unit is closed, and the analog switches 8 and 10 of the first compensation network unit and the third compensation network unit are opened;

when the overshoot ratio δ is within the fourth compensation interval D, the analog switch 10 of the third compensation network unit is closed, and the analog switches 8 and 9 of the first and second compensation network units are opened simultaneously, so as to compensate the pulse current waveform in the circuit.

Specifically, when each device in the compensation network unit is arranged, different tested devices can be adapted to the device, and parasitic inductive reactance on a connecting line when different objects are tested is solved. Preferably, in the embodiment of the present application, the respective resistance values and capacitance values may be: ra:8Ω~20Ω、Ca:0.5nF~3nF;Rb:1Ω~7Ω、Cb:4nF~15nF;Rc:0.5Ω~4Ω、Cc: 20nF to 25 nF; different compensation effects can be realized by different collocation combinations, preferably, in the embodiment of the application, Ra=10Ω、Ca=1nF;Rb=5Ω、Cb=4.7nF;Rc=1Ω、Cc=22 nF; through the combination, the compensation network unit with better performance in the embodiment of the application is finally obtained, and further, when different compensation intervals are set, the compensation intervals can also be discontinuously set, so that the use and adjustment range of the compensation device in the embodiment of the application can be further improved, and in the embodiment of the application, the plurality of set compensation intervals can meet the compensation effect of the device to be tested, and the device to be tested is compensated, so that the universality is better.

As shown in fig. 6, fig. 6 is a schematic diagram of pulse waveforms before and after compensation according to an embodiment of the present application. The curve L1 is a schematic diagram of an uncompensated waveform, and the curve L2 is a schematic diagram of a compensated output pulse waveform. When the pulse waveform in the circuit is not compensated, the parasitic inductive reactance will seriously affect the pulse signal waveform formed in the test process because of the existence of the larger parasitic inductive reactance on the connecting line in the circuit, and when the pulse waveform is formed, the real-time rising edge peak value Ip of the waveform is higher, and the finally obtained waveform is distorted. When the test compensation device provided in the embodiment of the present application is used to measure the device to be measured, because the passive compensation network unit is arranged in the test device of the embodiment of the present application, in the compensation process, according to the compensation method in the embodiment of the present application, the system can automatically select the corresponding compensation interval, and automatically select the compensation parameter from the compensation network unit according to the interval to perform real-time compensation on the pulse signal in the line, so that the finally obtained pulse waveform is closer to the preset pulse waveform IsetThe waveform is closer to a regular square wave, and various parameters of the measured object can be accurately obtained according to the pulse waveform.

In the embodiment of the application, the pulse waveform compensation device can be arranged in a test device of a pulse signal, such as test equipment such as an oscilloscope, a network analyzer, a power analyzer and the like and laser signal generation equipment, so as to obtain a high-precision pulse signal and improve the accuracy of test data.

In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.

The above description of the embodiments is only for helping understanding the technical solution of the present invention and its core idea; those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:内插电路以及马达驱动电路

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!