Precision compensation method of adjustable triangular wave current source

Through linear interpolation and current difference estimation, the problem of poor output accuracy of the triangular wave current source is solved, high-precision output and efficiency improvement are achieved, and the high-precision compensation effect of the triangular wave current source is ensured in the full range.

CN118549874APending Publication Date: 2024-08-27CHENXIN TECHNOLOGY (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410626152.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-20
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Due to the hardware loop response delay and control signal filtering effect, the triangular wave current source has poor output accuracy, making it difficult to achieve high-precision output in the full range.

Method used

The linear interpolation method is used to estimate the compensation current value of the unknown point by measuring the current difference at the boundary point of the adjustable range of the triangle wave, ensuring that the actual peak current is equal to the theoretical peak current, and using computing equipment and storage media to perform the accuracy compensation method.

Benefits of technology

It achieves high-precision output of the triangular wave current source within the entire adjustable range, significantly improves the accuracy compensation efficiency, reduces the amount of data and the number of measurement points, and improves the response speed and anti-interference ability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118549874A
    Figure CN118549874A
Patent Text Reader

Abstract

The invention discloses a precision compensation method for an adjustable triangular wave current source. The method comprises the steps of measuring a current difference between a theoretical peak current and an actual peak current of a triangular wave adjustable range boundary point; estimating a current difference value corresponding to each data point in the adjustable range according to the current difference corresponding to the adjustable range boundary point based on a linear interpolation method; and compensating the corresponding current difference value on the basis of each theoretical peak current, so that the actual peak current is equal to the theoretical peak current. According to the scheme, high-precision output of the triangular wave current source can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of current sources, and in particular to a precision compensation method for an adjustable triangular wave current source. Background Art

[0002] A surge current source is a device used to simulate transient overcurrent events in power systems (such as lightning strikes, switching operations, faults, etc.). By applying high-amplitude, short-duration current pulses to the device under test, the device's ability to withstand sudden current shocks can be tested and evaluated.

[0003] At present, most common surge current sources output pulsed square wave current. According to the law of conservation of charge, the current time integral value is constant within the same current discharge time. If the square wave is replaced by a triangle wave, the current peak value can be doubled. Therefore, the triangle wave current source has application advantages, but its waveform characteristics also bring about the problem of insufficient accuracy. Figure 1 The waveforms of the pulse square wave and pulse triangle wave output by the current source are shown. Due to the inevitable delay in the hardware loop response, the actual current will start to rise at the dotted line, and the square wave will eventually rise to the set peak current. However, due to the characteristics of the triangle wave waveform, not only is there a loop delay in the rise time, but the hardware loop also has a filtering effect on the input control signal, resulting in a smaller peak current output, causing the problem of poor output accuracy of the triangle wave current source. Summary of the invention

[0004] In order to achieve high-precision output of an adjustable triangular wave current source within the entire range, this scheme proposes an accuracy compensation method, a computing device and a storage medium for an adjustable triangular wave current source. The linear interpolation method is used to estimate the compensation current value of an unknown point between given data points. This not only enables the adjustable triangular wave current source to achieve high-precision output within the entire adjustable range, but also greatly improves the accuracy compensation efficiency of the triangular wave current source.

[0005] According to a first aspect of the present invention, there is provided a method for compensating the accuracy of an adjustable triangular wave current source, comprising: measuring the current difference between a theoretical peak current at a boundary point of an adjustable range of the triangular wave and an actual peak current; estimating the current difference corresponding to each data point within the adjustable range according to the current difference corresponding to the boundary point of the adjustable range based on a linear interpolation method; and compensating the corresponding current difference on the basis of each theoretical peak current so that the actual peak current is equal to the theoretical peak current.

[0006] Optionally, in the accuracy compensation method of the adjustable triangular wave current source provided by the present invention, the current peak adjustable range [I0-I n ] and the rise time adjustable range [T0-T n]; measure the first current difference ΔI1 between the actual current peak value and the theoretical current peak value when the rise time is T0 and the current peak value is I0; measure the first current difference ΔI1 between the actual current peak value and the theoretical current peak value when the rise time is T0 and the current peak value is I n The second current difference ΔI2 between the actual current peak and the theoretical current peak; the measured rise time is T n , the third current difference ΔI3 between the actual current peak value and the theoretical current peak value when the current peak value is I0; the measured rise time is T n , the current peak is I n A fourth current difference ΔI4 between the actual current peak value and the theoretical current peak value.

[0007] Optionally, in the accuracy compensation method of the adjustable triangular wave current source provided by the present invention, the theoretical current peak value is calculated based on the maximum and minimum values ​​of the triangular wave and the impedance value of the load, and the actual current peak value is measured by an oscilloscope.

[0008] Optionally, in the accuracy compensation method of the adjustable triangular wave current source provided by the present invention, the current difference corresponding to each current increase step is estimated based on the current difference corresponding to the boundary point of the adjustable range of the rise time; the current difference corresponding to each rise time increase step is estimated based on the current difference corresponding to the boundary point of the adjustable range of the current peak.

[0009] Optionally, in the accuracy compensation method of the adjustable triangular wave current source provided by the present invention, when the rise time is T0, according to (I0, ΔI1) and (I n ,ΔI2) two data points as a linear function, and the linear interpolation algorithm is used to calculate the rise time from I0 to I n The current difference corresponding to each increase step; The rise time is T n In the case of n ,ΔI4) two data points as a linear function, and the rise time is calculated as T according to the linear interpolation algorithm. n In the case of I0 to I n The current difference corresponding to each increase step.

[0010] Optionally, in the accuracy compensation method of the adjustable triangular wave current source provided by the present invention, when the current peak value is I0, according to (T0, ΔI1) and (T n ,ΔI3) two data points as a linear function, and the current is calculated by linear interpolation to be equal to I0, T0 to T n The current difference corresponding to each increase step; At the peak current I n In the case of n,ΔI4) two data points as a linear function, and the current equivalent is calculated by linear interpolation to be I n In the case of T0 to T n The current difference corresponding to each increase step.

[0011] According to a second aspect of the present invention, a computing device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the accuracy compensation method of the adjustable triangular wave current source as in the first aspect.

[0012] According to a third aspect of the present invention, there is provided a computer-readable storage medium, comprising a computer program stored therein which can be loaded by a processor and execute the accuracy compensation method of the adjustable triangular wave current source according to the first aspect.

[0013] The precision compensation method of the adjustable triangular wave current source provided by the present invention only needs to measure the current difference corresponding to four adjustable boundary points, and use the linear interpolation method to estimate the compensation current value of the unknown point between the given data points. It can not only enable the adjustable triangular wave current source to achieve high-precision output within the entire adjustable range, but also greatly improve the precision compensation efficiency of the triangular wave current source.

[0014] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 The waveform diagrams of the pulse square wave and pulse triangle wave outputted by the current source are shown; Figure 2 A block diagram of a computing device 100 according to an embodiment of the present invention is shown; Figure 3 A schematic flow chart of an adjustable triangular wave current source accuracy compensation method 300 according to an embodiment of the present invention is shown; Figure 4 A waveform diagram showing the current peak value compensated according to the estimated current difference is shown. DETAILED DESCRIPTION

[0016] The adjustable triangular wave current source realizes the output of triangular waveform by controlling the amplitude and frequency of the current source. The peak value of the adjustable triangular wave current is defined as I, the rising edge is T1, and the pulse width is T2. T1 can take any value between (0, T2) (there is a minimum step length, excluding 0), realizing the arbitrary adjustment of the triangular wave waveform.

[0017] In order to achieve equal-precision compensation of an adjustable triangular wave current source, this scheme proposes a precision compensation method for an adjustable triangular wave current source. The linear interpolation method is used to estimate the compensation current value of the unknown point between given data points. This not only enables the adjustable triangular wave current source to achieve high-precision output, but also greatly improves the precision compensation efficiency of the triangular wave current source.

[0018] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0019] Figure 2 FIG. 1 shows a block diagram of a computing device 100 according to an embodiment of the present invention. Figure 2 As shown, in a basic configuration 102, computing device 100 typically includes memory 106 and one or more processors 104. A memory bus 108 may be used for communication between processor 104 and memory 106.

[0020] The processor 104 may be any type of processor, including but not limited to a microprocessor (μP), a microcontroller (μC), a digital signal processor (DSP), or any combination thereof. The processor 104 may include one or more levels of cache, such as a primary cache 110 and a secondary cache 112, a processor core 114, and registers 116. An example processor core 114 may include an arithmetic logic unit (ALU), a floating point unit (FPU), a digital signal processing core (DSP core), or any combination thereof. An example memory controller 118 may be used with the processor 104, or in some implementations, the memory controller 118 may be an internal part of the processor 104.

[0021] The memory 106 may be any type of memory, including but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. The physical memory in a computing device generally refers to the volatile memory RAM, and the data in the disk needs to be loaded into the physical memory before it can be read by the processor 104. The system memory 106 may include an operating system 120, one or more applications 122, and program data 124.

[0022] In some embodiments, the application 122 may be arranged to execute instructions on an operating system by one or more processors 104 using program data 124. The operating system 120 may be, for example, Linux, Windows, etc., which includes program instructions for processing basic system services and performing tasks that depend on hardware. The application 122 includes program instructions for implementing various user-desired functions, and the application 122 may be, for example, a browser, instant messaging software, a software development tool (e.g., an integrated development environment IDE, a compiler, etc.), etc., but is not limited thereto. When the application 122 is installed in the computing device 100, a driver module may be added to the operating system 120.

[0023] When the computing device 100 starts running, the processor 104 reads and executes the program instructions of the operating system 120 from the memory 106. The application 122 runs on the operating system 120 and uses the interfaces provided by the operating system 120 and the underlying hardware to implement various functions desired by the user. When the user starts the application 122, the application 122 is loaded into the memory 106, and the processor 104 reads and executes the program instructions of the application 122 from the memory 106.

[0024] Computing device 100 also includes a storage device 132 including a removable storage 136 and a non-removable storage 138 , both of which are connected to storage interface bus 134 .

[0025] The computing device 100 may also include an interface bus 140 that facilitates communication from various interface devices (e.g., output devices 142, peripheral interfaces 144, and communication devices 146) to the basic configuration 102 via the bus / interface controller 130. Example output devices 142 include a graphics processing unit 148 and an audio processing unit 150. They can be configured to facilitate communication with various external devices such as a display or speakers via one or more A / V ports 152. Example peripheral interfaces 144 may include a serial interface controller 154 and a parallel interface controller 156, which may be configured to facilitate communication with external devices such as input devices (e.g., keyboards, mice, pens, voice input devices, touch input devices) or other peripherals (e.g., printers, scanners, etc.) via one or more I / O ports 158. Example communication devices 146 may include a network controller 160, which may be arranged to facilitate communication with one or more other computing devices 162 via a network communication link via one or more communication ports 164.

[0026] A network communication link may be an example of a communication medium. The communication medium may generally be embodied as a computer-readable instruction, data structure, program module in a modulated data signal such as a carrier wave or other transmission mechanism, and may include any information delivery medium. A "modulated data signal" may be a signal in which one or more of its data sets or its changes may be performed in a manner that encodes information in the signal. As a non-limiting example, the communication medium may include a wired medium such as a wired network or a dedicated network, and various wireless media such as sound, radio frequency (RF), microwave, infrared (IR) or other wireless media. The term computer-readable medium used herein may include both storage media and communication media. In a computing device 100 according to the present invention, the application 122 includes instructions for executing the accuracy compensation method 300 of the adjustable triangular wave current source of the present invention.

[0027] Figure 3 FIG. 3 is a flow chart of an adjustable triangular wave current source accuracy compensation method 300 according to an embodiment of the present invention. Figure 3 As shown, firstly, step S310 is performed to measure the current difference between the theoretical peak current and the actual peak current at the boundary point of the adjustable range of the triangle wave.

[0028] For an adjustable current source with a large triangular wave peak current, there are almost countless combinations of current peak and rise time. Assume that the triangular wave current value is adjustable from (1A, 1000A) and the rise time is adjustable from (1us, 10us). If full-range accuracy compensation is to be achieved, it is necessary to measure the data values ​​of 10,000 (1000*10) cases before compensation. If the range of values ​​is larger, the amount of data to be processed will be greater.

[0029] In order to improve the efficiency of the precision compensation of the triangular wave current source, this solution only needs to measure the current difference of four data points. First, obtain the current peak adjustable range [I0-I n ] and the rise time adjustable range [T0-T n ].

[0030] Then you need to measure the current difference of the following data points: The first current difference ΔI1 between the actual current peak value and the theoretical current peak value is measured when the rise time is T0 and the current peak value is I0. n The second current difference ΔI2 between the actual current peak and the theoretical current peak; the measured rise time is T n , the third current difference ΔI3 between the actual current peak value and the theoretical current peak value when the current peak value is I0; the measured rise time is T n , the current peak is I nA fourth current difference ΔI4 between the actual current peak value and the theoretical current peak value.

[0031] Among them, the theoretical peak current is calculated based on the waveform of the triangle wave and the circuit parameters. After the experimental circuit is connected, the actual current peak can be measured using an oscilloscope.

[0032] In one embodiment of the present invention, for a current source with a triangular wave current value ranging from (1A, 1000A) and a rise time arbitrarily adjustable in the range of (1us, 10us), the current difference ΔI1 between the actual current peak and the theoretical current peak at (1A, 1us), the current difference ΔI3 between the actual current peak and the theoretical current peak at (1A, 10us), the current difference ΔI2 between the actual current peak and the theoretical current peak at (1000A, 1us), and the current difference ΔI4 between the actual current peak and the theoretical current peak at (1000A, 10us) can be measured.

[0033] Then, step S320 is performed to estimate the current difference corresponding to each data point in the adjustable range according to the current difference corresponding to the boundary point of the adjustable range based on the linear interpolation method.

[0034] Among them, linear interpolation is used to estimate the value of unknown points between given data points. This method is based on the properties of linear functions. It constructs a linear function through known data points and then uses this function to estimate the value of unknown points.

[0035] Specifically, the current difference corresponding to each current increase step can be estimated based on the current difference corresponding to the boundary point of the adjustable range of the rise time. For example, when the rise time is T0, according to (I0, ΔI1) and (I n ,ΔI2) two data points as a linear function, and the linear interpolation algorithm is used to calculate the rise time from I0 to I n The current difference corresponding to each increase step; The rise time is T n In the case of n ,ΔI4) two data points as a linear function, and the rise time is calculated as T according to the linear interpolation algorithm. n In the case of I0 to I n The current difference corresponding to each increase step.

[0036] According to the current difference corresponding to the boundary point of the current peak adjustable range, the current difference corresponding to each rise time increase step is estimated. For example, when the current peak is I0, according to (T0, ΔI1) and (T n ,ΔI3) two data points as a linear function, and the current is calculated by linear interpolation to be equal to I0, T0 to T nThe current difference corresponding to each increase step; At the peak current I n In the case of n ,ΔI4) two data points as a linear function, and the current equivalent is calculated by linear interpolation to be I n In the case of T0 to T n The current difference corresponding to each increase step.

[0037] In one embodiment of the present invention, for a current source with a triangular wave current value ranging from (1A, 1000A) and a rise time ranging from (1us, 10us) and adjustable at will, in the case of 1us, a linear function is made based on two data points (1A, ΔI1) and (1000A, ΔI2), and a software algorithm can be used to automatically calculate the current difference of 1000 data from 1A to 1000A with a current increase step of 1A in the case of 1us rise time; Similarly, based on the two values ​​of ΔI3 and ΔI4, we can deduce the current difference of 1000 data points with a current increase step of 1A from 1A to 1000A in the case of a rise time of 10us.

[0038] In the case of 1A current, a linear function is made based on the two data points (1us, ΔI1) and (10us, ΔI3), and the current difference of ten data points from 1us to 10us with a time step of 1us can be calculated; Similarly, based on the two values ​​of ΔI2 and ΔI4, the current difference of ten data points with a time step of 1us from 1us to 10us can be obtained under the condition of 1000A current. According to the above method, the current compensation value of ten thousand data points can be finally obtained.

[0039] Finally, step S330 is performed to compensate the corresponding current difference based on each theoretical peak current so that the actual peak current is equal to the theoretical peak current.

[0040] The corresponding current difference can be compensated at each current peak point by adjusting circuit parameters or using current compensators, so that the actual peak current is equal to the theoretical peak current, thereby achieving the purpose of improving the high-precision output of the adjustable triangular wave current source.

[0041] Figure 4 FIG. 4 shows a waveform diagram of compensating the current peak value according to the estimated current difference. Figure 4 As shown, according to the difference ΔI between the theoretical peak current of the solid line and the actual peak current of the dotted line, the same value ΔI is compensated on the basis of the set current I value, that is, the actual peak current can be made the same as the set value I, achieving high output accuracy.

[0042] This scheme corrects the output of the control voltage by predicting the current output to achieve output current compensation. Compared with feedback control, predictive control can respond to changes more quickly and has better robustness and anti-interference.

[0043] According to the precision compensation method of the adjustable triangular wave current source provided by the present invention, it is only necessary to measure the current differences corresponding to the four adjustable boundary points, and use the linear interpolation method to estimate the compensation current value of the unknown point between the given data points. This not only enables the adjustable triangular wave current source to achieve high-precision output within the entire adjustable range, but also greatly improves the precision compensation efficiency of the triangular wave current source.

[0044] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0045] Although the present invention has been described according to a limited number of embodiments, it will be apparent to those skilled in the art, with the benefit of the above description, that other embodiments may be envisioned within the scope of the invention thus described. In addition, it should be noted that the language used in this specification is selected primarily for readability and teaching purposes, rather than for explaining or defining the subject matter of the present invention. Therefore, many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the appended claims. The disclosure of the present invention is illustrative and not restrictive with respect to the scope of the present invention, and the scope of the present invention is defined by the appended claims.

Claims

1. A precision compensation method for an adjustable triangular wave current source, It is characterized in that include: Measure the current difference between the theoretical peak current and the actual peak current at the boundary point of the triangular wave adjustable range; Based on the linear interpolation method, the current difference corresponding to each data point in the adjustable range is estimated according to the current difference corresponding to the boundary point of the adjustable range; The corresponding current difference is compensated on the basis of each theoretical peak current so that the actual peak current is equal to the theoretical peak current.

2. The precision compensation method of the adjustable triangular wave current source according to claim 1, It is characterized in that The step of measuring the current difference between the theoretical peak current and the actual peak current at the boundary point of the adjustable range of the triangle wave comprises: Get the current peak adjustable range of the triangle wave current source [I 0 -I n ] and the rise time adjustable range [T 0 -T n ]; Measure the rise time as T 0 , the current peak is I 0 The first current difference ΔI between the actual current peak value and the theoretical current peak value 1 ; Measure the rise time as T 0 , the current peak is I n The second current difference ΔI between the actual current peak value and the theoretical current peak value 2 ; Measure the rise time as T n , the current peak is I 0 The third current difference ΔI between the actual current peak value and the theoretical current peak value 3 ; Measure the rise time as T n , the current peak is I n The fourth current difference ΔI between the actual current peak value and the theoretical current peak value 4 .

3. The precision compensation method of the adjustable triangular wave current source according to claim 1, It is characterized in that The theoretical current peak value is calculated based on the maximum value and the minimum value of the triangle wave and the impedance value of the load, and the actual current peak value is measured by an oscilloscope.

4. The precision compensation method of the adjustable triangular wave current source according to claim 2, It is characterized in that The step of estimating the current difference corresponding to each data point within the adjustable range based on the current difference corresponding to the boundary point of the adjustable range based on the linear interpolation method includes: The current difference corresponding to each current increase step is estimated based on the current difference corresponding to the boundary point of the adjustable range of the rise time; The current difference corresponding to each rise time increase step is estimated based on the current difference corresponding to the boundary point of the current peak adjustable range.

5. The method for compensating the accuracy of the adjustable triangular wave current source according to claim 4, It is characterized in that The step of estimating the current difference corresponding to each current increase step according to the current difference corresponding to the boundary point of the adjustable rise time range comprises: The rise time is T 0 In the case of 0 ,ΔI 1 ) and (I n ,ΔI 2 ) two data points as a linear function, and the rise time is calculated as T according to the linear interpolation algorithm. 0 In this case, I 0 To I n The current difference corresponding to each increase step; The rise time is T n In the case of 0 ,ΔI 3 ) and (I n ,ΔI 4 ) two data points as a linear function, and the rise time is calculated as T according to the linear interpolation algorithm. n In this case, I 0 To I n The current difference corresponding to each increase step.

6. The method for compensating the accuracy of an adjustable triangular wave current source according to claim 4, It is characterized in that The step of estimating the current difference corresponding to each rise time increase step according to the current difference corresponding to the boundary point of the current peak adjustable range comprises: 0 In the case of (T 0 ,ΔI 1 ) and (T n ,ΔI 3 ) Two data points are used as linear functions, and the current equivalent is calculated by linear interpolation to be I 0 In the case of T 0 to T n The current difference corresponding to each increase step; At the peak current I n In the case of (T 0 ,ΔI 2 ) and (T n ,ΔI 4 ) Two data points are used as linear functions, and the current equivalent is calculated by linear interpolation to be I n In the case of T 0 to T n The current difference corresponding to each increase step.

7. A computing device, include: at least one processor; and a memory storing program instructions, wherein the program instructions are configured to be suitable for being executed by the at least one processor, and the program instructions include instructions for executing the accuracy compensation method of the adjustable triangular wave current source according to any one of claims 1-6.

8. A readable storage medium storing program instructions, when the program instructions are read and executed by a computing device, the computing device executes the accuracy compensation method of the adjustable triangular wave current source as described in any one of claims 1 to 6.