Nonlinear fitting and multi-segment temperature compensation methods, devices and dielectrics for ultra-large current sources
By splitting the total current source range into small and large ranges, configuring independent sampling circuits, and employing multi-segment linear calibration parameters and temperature compensation functions, the problems of range adaptation, sampling anti-interference, and temperature drift of existing ultra-large current sources are solved, achieving high-precision and high-stability output across the entire range.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-15
- Publication Date
- 2026-04-03
AI Technical Summary
Existing ultra-high current sources have significant shortcomings in range adaptation, sampling anti-interference, accurate calibration and temperature compensation, making it difficult to meet the requirements of high precision testing and driving scenarios for high precision and high stability across the entire range.
The total range of the current source is divided into small and large ranges, and independent sampling circuits are configured. Through multiple linear calibration parameters and temperature compensation functions, targeted calibration and temperature drift cancellation are achieved to ensure the accuracy and stability of the current output.
It improves the full-range output accuracy and stability of ultra-high current sources, adapts to the needs of high-precision testing and driving scenarios, and achieves high-precision and high-stability control across the entire range.
Smart Images

Figure CN121541718B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a method, device and medium for nonlinear fitting and multi-segment temperature compensation of ultra-large current sources. Background Technology
[0002] In fields such as power electronics, new energy vehicles, and industrial manufacturing, ultra-high current sources serve as core testing and driving equipment, widely used in scenarios such as aging tests of high-power devices, power system simulations, and charge / discharge tests of new energy battery packs. As related industries continuously raise their requirements for product performance and testing accuracy, more stringent demands are being placed on the output accuracy, stability, and adaptability of ultra-high current sources. They not only need to cover a wide current output range but also ensure extremely low nonlinear deviation and temperature drift error across the entire range, guaranteeing the reliability of test data and the precision of drive control.
[0003] Currently, most ultra-high current sources on the market adopt a "single range + unified sampling calibration" design. The core logic is to use a single sampling circuit to cover the entire output range, employ multi-segment linear fitting to correct the nonlinear output characteristics of the current source, and use a globally unified compensation function to correct the output current based on the overall circuit temperature. While these solutions have addressed the nonlinearity and temperature drift issues of current sources to some extent, meeting the application needs of early low-to-medium precision scenarios, the poor range and sampling circuit compatibility of existing technologies leads to uneven accuracy across the entire range. Ultra-high current sources typically have a large total range, making it difficult for a single sampling circuit to simultaneously adapt to both small-range, high-precision sampling and large-range, high-current carrying requirements. If high-precision sampling devices adapted for small ranges are used, saturation distortion easily occurs at large ranges, failing to guarantee the stability of high-current output. Cross-interference between large and small ranges further deteriorates output accuracy. The lack of adaptability of unified calibration and compensation schemes makes it difficult to offset differential deviations, and the inconsistency between the calibration environment and the actual working environment makes it difficult to reuse calibration accuracy.
[0004] In summary, existing ultra-high current sources have significant shortcomings in range adaptation, sampling interference immunity, accurate calibration, and temperature compensation, making it difficult to meet the application requirements of high-precision testing and driving scenarios that demand high accuracy and high stability across the entire range. Therefore, developing an ultra-high current source control technology that can adapt to different range characteristics, eliminate cross-interference, and achieve accurate calibration and targeted temperature compensation has become an urgent technical problem to be solved in this field. Summary of the Invention
[0005] The main objective of this invention is to provide a method, device, and medium for nonlinear fitting and multi-segment temperature compensation of ultra-large current sources, which can adapt to different range characteristics, eliminate cross-interference, and achieve precise calibration and targeted temperature compensation for ultra-large current source control.
[0006] To achieve the above objectives, this invention provides a method for nonlinear fitting and multi-segment temperature compensation of ultra-large current sources, comprising the following steps:
[0007] The total range of the current source is pre-divided into a small range and a large range, and independent sampling circuits corresponding to the small range and the large range are configured to obtain the target current value and determine the range corresponding to the target current value.
[0008] The current temperature value is collected in the independent sampling circuit corresponding to the range of the target current value. When the target current value belongs to the large range, the signal output of the small range sampling circuit is simultaneously blocked.
[0009] Based on the target current value, a preset multi-segment linear calibration parameter is called to perform calculations to obtain an intermediate setting value;
[0010] Based on the current temperature value, and considering the negative correlation between temperature and current output, the intermediate setting value is compensated using a pre-fitted temperature compensation function to obtain the final setting value. The compensation operation is used to offset the temperature drift caused by the current source output value decreasing as the temperature increases. The negative correlation characteristic is that the current source output value decreases linearly as the temperature increases and increases linearly as the temperature decreases.
[0011] The current source outputs current according to the final setting value.
[0012] Furthermore, the step of pre-dividing the total range of the current source into a small range and a large range, configuring independent sampling circuits corresponding to the small range and the large range, obtaining the target current value, and determining the range corresponding to the target current value includes:
[0013] Based on the total range of the current source and the actual output accuracy requirements, a preset current threshold is used to divide the total range of the current source into two independent ranges. The two independent ranges include a small range that is less than the current threshold and a large range that is greater than or equal to the current threshold.
[0014] A first independent sampling circuit and a second independent sampling circuit are configured for the large and small current ranges respectively. The parameters of the first independent sampling circuit are adapted to the current output range of the corresponding large range, and the parameters of the second independent sampling circuit are adapted to the current output range of the corresponding small range.
[0015] Receive the target current value input by the user. The target current value is the current magnitude that the current source needs to output. The current magnitude is within the total range of the current source.
[0016] The acquired target current value is compared with the preset current threshold.
[0017] If the target current value is greater than or equal to the preset current threshold, the range to which the target current value belongs is determined to be a large range, triggering a shielding command for the small range sampling circuit.
[0018] If the target current value is less than the preset current threshold, then the range to which the target current value belongs is determined to be a small range.
[0019] Furthermore, the step of simultaneously shielding the signal output of the small-range sampling circuit when the target current value belongs to a large range, in the independent sampling circuit that acquires the current value corresponding to the target current value, includes:
[0020] Based on the range of the target current value, a corresponding independent sampling circuit is matched, wherein the large range corresponds to the first independent sampling circuit and the small range corresponds to the second independent sampling circuit.
[0021] If the target current value belongs to a small range, control the second independent sampling circuit to be in normal working state and directly collect the real-time temperature data of the second independent sampling circuit;
[0022] If the target current value belongs to a large range, collect the real-time temperature data of the first independent sampling circuit, send a shielding command to the second independent sampling circuit, cut off the power supply of the second independent sampling circuit or shield the signal output channel of the second independent sampling circuit.
[0023] Furthermore, the step of calculating the intermediate setting value by calling preset multi-segment linear calibration parameters based on the target current value includes:
[0024] Perform calibration parameter calibration separately for the two independent measurement ranges, large and small.
[0025] For the current calibration range, the control current source outputs N uniformly covered reference currents in sequence and sorts them by size. The set value and actual output value of each reference current are recorded simultaneously to form a calibration dataset.
[0026] Divide the adjacent reference currents into N-1 linear segments according to the sorting, and calculate the slope k and intercept b of each linear segment based on the linear formula;
[0027] By reverse-engineering the linear segment calculation formula using the calculated slope k and intercept b, an N-1 segment linear calibration function covering the range is formed and stored as a multi-segment linear calibration parameter.
[0028] Determine the range to which the target current value belongs and call the corresponding calibration parameters;
[0029] The linear segment interval corresponding to the target current value is located, and the intermediate setting value is obtained by substituting it into the interval calibration function.
[0030] Furthermore, the step of performing a compensation calculation on the intermediate setting value based on the current temperature value and the negative correlation between temperature and current output using a pre-fitted temperature compensation function to obtain the final setting value, wherein the compensation calculation is used to offset the temperature drift of the current source output value decreasing as the temperature increases, and the negative correlation characteristic is the characteristic that the current source output value linearly decreases as the temperature increases and linearly increases as the temperature decreases, includes:
[0031] Based on the division into two independent ranges of different sizes, the temperature compensation function for each range is fitted and stored in the control module by combining the calibration data of each range with the temperature data of the corresponding sampling circuit.
[0032] Obtain the current temperature value of the independent sampling circuit corresponding to the target range, and the intermediate setting value obtained by function calculation;
[0033] Based on the range of the target current value, the dedicated temperature compensation function corresponding to the range of the target current value is called from the control module;
[0034] Substitute the current temperature value into the matching temperature compensation function to obtain the temperature drift compensation amount;
[0035] The intermediate setting value is corrected by the compensation amount to offset the temperature drift of the current source output value as the temperature increases.
[0036] Furthermore, the step of fitting a temperature compensation function for each range based on the two independent ranges of different sizes, combining the calibration data of each range with the temperature data of the corresponding sampling circuit, and storing the result in the control module includes:
[0037] The calibration data corresponding to the two ranges, large and small, and the temperature data of the independent sampling circuits of the corresponding ranges are extracted separately to establish a range dataset of temperature and current output deviations.
[0038] Based on the datasets of the two ranges, the negative correlation between temperature and current output was confirmed, and a temperature compensation function specific to each range was fitted.
[0039] The fitted temperature compensation function for each range is associated with the corresponding range identifier and stored in the current source control module.
[0040] Furthermore, the step of controlling the output current of the current source according to the final set value includes:
[0041] Obtain the final setting value and the range to which the determined target current value belongs;
[0042] The control current source is switched to the working circuit corresponding to the range to which the standard current value belongs, and the dedicated independent sampling circuit of that range is synchronously matched.
[0043] The current source is driven to output current based on the final set value.
[0044] This invention also provides a device for nonlinear fitting and multi-segment temperature compensation of ultra-large current sources, comprising:
[0045] The range management and data acquisition module is used to split independent ranges, configure independent sampling circuits, preset threshold comparison, determine the range to which the target current value belongs, and acquire real-time temperature data of the corresponding sampling circuit based on the range determination result.
[0046] The basic temperature control module is used to dynamically adjust the speed of the cooling fan according to the real-time output power and current of the current source, so as to maintain the stable operating temperature of the circuit.
[0047] The calibration and compensation calculation module is used to output a reference current covering the corresponding range and simultaneously acquire the reference current setting value and the actual output value. It divides the linear segment and fits the nonlinear characteristics to generate exclusive multi-segment linear calibration parameters, fits the appropriate exclusive temperature compensation function, and calls the corresponding function to calculate the temperature drift compensation amount.
[0048] The data storage module is used to centrally store preset current thresholds, multi-segment linear calibration parameters for two ranges, dedicated temperature compensation functions, and range identification association information, providing data retrieval support for each module.
[0049] The output control module is used to acquire the intermediate setting value and temperature drift compensation amount obtained through multi-segment linear calibration calculation, calculate the final setting value, switch to the working loop corresponding to the range of the target current value and match the dedicated independent sampling circuit, and drive the current source to accurately output the current.
[0050] The present invention also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the above-described method for nonlinear fitting and multi-segment temperature compensation of ultra-large current source.
[0051] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the above-described method for nonlinear fitting of ultra-large current source and multi-segment temperature compensation. Attached Figure Description
[0052] Figure 1 This is a record table of ultra-high current source output data under basic temperature control conditions in one embodiment of the present invention;
[0053] Figure 2 This is a record table of ultra-large current source output data after multi-segment linear calibration in one embodiment of the present invention;
[0054] Figure 3This is a record table of output data of ultra-high current source after temperature compensation in one embodiment of the present invention;
[0055] Figure 4 This is a flowchart of a method for nonlinear fitting and multi-segment temperature compensation of a large current source in one embodiment of the present invention;
[0056] Figure 5 This is a structural block diagram of a high current source nonlinear fitting and multi-segment temperature compensation device in one embodiment of the present invention;
[0057] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0058] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0059] Reference Figure 4 The diagram below illustrates the process of a nonlinear fitting and multi-segment temperature compensation method for an ultra-large current source proposed in this invention, including the following steps:
[0060] S1, the total range of the current source is pre-divided into a small range and a large range, and independent sampling circuits corresponding to the small range and the large range are configured to obtain the target current value and determine the range corresponding to the target current value.
[0061] S2, collect the current temperature value in the independent sampling circuit corresponding to the range of the target current value; when the target current value belongs to the large range, simultaneously shield the signal output of the small range sampling circuit.
[0062] S3, based on the target current value, call the preset multi-segment linear calibration parameters to perform calculations and obtain the intermediate setting value;
[0063] S4. Based on the current temperature value and the negative correlation between temperature and current output, the intermediate setting value is compensated by a pre-fitted temperature compensation function to obtain the final setting value. The compensation operation is used to offset the temperature drift of the current source output value as the temperature increases. The negative correlation is the characteristic that the current output value of the current source decreases linearly as the temperature increases and increases linearly as the temperature decreases.
[0064] S5, control the current source to output current according to the final setting value.
[0065] As described in step S1 above, an optimal current threshold is set in advance based on the total range of the current source and the actual output accuracy requirements. The total range is then divided into a small range less than the threshold and a large range greater than or equal to the threshold. Independent sampling circuits with parameter adaptation are configured for each of the two ranges. The large-range sampling circuit focuses on high current carrying capacity and fast response, while the small-range sampling circuit focuses on high-precision signal acquisition. Subsequently, the target current value input by the user is received. First, it is verified whether the current value is within the total range. Then, it is compared with the preset threshold to accurately determine the range. This lays the core foundation for subsequent targeted sampling, calibration, and compensation work, solving the problem of poor adaptability of a single range from a hardware architecture perspective.
[0066] As described in step S2 above, based on the range determination result of S1, the corresponding independent sampling circuit is matched to carry out temperature acquisition. Before acquisition, it is necessary to ensure that the basic temperature control module is in working state to maintain the overall temperature stability of the circuit. If it is determined to be a small range, the small range independent sampling circuit is directly controlled to enter the normal working mode to acquire its real-time temperature data. At this time, the large range sampling circuit is in a low-power standby state to reduce redundant interference. If it is determined to be a large range, a shielding command is first sent to the small range sampling circuit to avoid cross-interference caused by the heat generated by the small range circuit by cutting off its power supply circuit or shielding the signal output channel. After the shielding is completed, the real-time temperature data of the large range independent sampling circuit is acquired to ensure that the temperature data can truly reflect the working temperature status of the target range.
[0067] As described in step S3 above, the nonlinear output deviation of the current source is eliminated through precise calibration. First, calibration parameters are calibrated for the two independent ranges divided in S1, maintaining a temperature environment consistent with actual operation during calibration. For the current calibration range, the current source is controlled to output N (N≥2) reference currents covering the entire range according to the principle of "dense distribution for small ranges and uniform distribution for large ranges". After each reference current is stably output for a preset time, the reference current setting value and the actual output value are synchronously recorded by a high-precision detection device to form a calibration dataset. After removing outliers from the dataset, N-1 linear segments are divided according to adjacent reference currents. The slope k and intercept b of each segment are calculated using the least squares method based on the linear formula. The calculation formula for each linear segment is derived in reverse, forming multi-segment linear calibration parameters covering the corresponding range and storing them. Based on the range determination result of S1, the calibration parameters of the corresponding range are called to locate the linear segment interval where the target current value is located. The intermediate setting value is calculated by substituting it into the corresponding calculation formula, thus achieving precise fitting of the nonlinear characteristics.
[0068] As described in step S4 above, targeted temperature compensation is used to offset the effect of temperature drift and ensure output stability. Specifically, based on the calibration data of the two ranges and the temperature data of the corresponding sampling circuit, multi-temperature drift tests are conducted to clarify the negative correlation between temperature and current output. Based on this characteristic, dedicated temperature compensation functions for the two ranges are fitted respectively. The fitting function type can be selected according to the temperature drift characteristics, such as a linear function. After the fitting is completed, the function is associated with the range identifier and stored. Then, the current temperature data collected in S2 and the intermediate setting value obtained in S3 are acquired. According to the range determination result, the corresponding temperature compensation function is called, and the current temperature value is substituted into the function to calculate the temperature drift compensation amount. Finally, the intermediate setting value is precisely corrected using the correction logic of "intermediate setting value + temperature drift compensation amount" to obtain the final setting value, ensuring that the setting value can offset the current reduction deviation caused by the temperature rise and achieve stable output across the entire temperature range.
[0069] As described in step S5 above, the final setting value obtained in S4 and the target range determined in S1 are first acquired synchronously. Based on the target range, the internal switch of the current source is switched to the corresponding working circuit, and the independent sampling circuit matching this range enters the working state to ensure that the circuit link is fully adapted to the target range. Then, the current source is driven to output current based on the final setting value. During the output process, the basic temperature control module is kept working continuously, and the speed of the cooling fan is dynamically adjusted according to the real-time output power. At the same time, the actual output current value is collected in real time through the high-precision monitoring module, and the deviation is compared with the target current value. If the deviation exceeds the preset accuracy range, timely feedback and adjustment are performed to finally achieve accurate and stable current output. Through the coordinated operation of the above steps, this technology effectively improves the output accuracy and stability of the ultra-large current source across the entire range, adapting to the needs of high-precision testing and driving scenarios.
[0070] In one embodiment, step S1, which involves pre-dividing the total range of the current source into a small range and a large range, configuring independent sampling circuits corresponding to the small range and the large range, acquiring the target current value, and determining the range corresponding to the target current value, includes:
[0071] S11, Threshold setting and range splitting;
[0072] S12, independent sampling circuit configuration;
[0073] S13, Target current value acquisition and verification;
[0074] S14, Range attribution determination.
[0075] In practice, the control module first retrieves data from the data storage unit. Figure 1The table showing the output data of basic temperature control is analyzed row by row to determine the output accuracy characteristics corresponding to different setting values. It was found that when the setting value is ≤100A, the output accuracy is stable within the range of 0.005%~0.182%, with a gradual change in nonlinear deviation. However, when the setting value is >100A, the accuracy rapidly deteriorates to 0.207%~0.728%, with a significant abrupt change in nonlinear deviation. Based on this, 100A was accurately determined as the optimal range splitting threshold. The total current source range (0~335A) was split into a small range of 0~100A (suitable for high-precision acquisition) and a large range of 100~335A (suitable for stable high-current output). Subsequently, the splitting threshold "100A", the two range intervals, and the corresponding range labels (small range ID 01, large range ID 02) were defined. The system associates and stores the data, establishing an index system of "threshold-range-identifier" to ensure efficient and accurate subsequent retrieval. Next, independent sampling circuits are built to adapt to the differences in characteristics between the two ranges. For the smaller range, a circuit link emphasizing high-precision acquisition of weak signals is configured to ensure high signal-to-noise ratio acquisition of small current signals such as 0.01A. For the larger range, a circuit link emphasizing high current carrying capacity and fast response is configured to ensure stable sampling of the maximum output current of 335A. After the circuit is built, multiple sets of typical current values are output from a standard current source to calibrate both circuits, adjusting the circuit gain parameters to ensure that the sampling error is controlled within a preset range. The calibrated circuit parameters are associated and stored with the corresponding range identifiers, forming a complete circuit adaptation parameter system. Then, the target current acquisition process is initiated, such as... Figure 1The setting value input area allows users to manually input the value on the local parameter setting interface. After receiving the target current value, the control module performs dual validity checks. On the one hand, it performs range range checks to determine whether the input value is within the total range of 0~335A. If it exceeds the range, a red "Range Exceeded" prompt will pop up on the local interface and an alarm will be triggered. On the other hand, it performs numerical validity checks through regular expressions. If the input value contains non-numeric characters or negative numbers, it will prompt "Invalid input, please enter a non-negative number" and clear the input box. Only when both checks pass will the target current value be temporarily stored in the dedicated temporary buffer area of the control core in the format of "target current + input timestamp". Finally, the range assignment determination and data synchronization stage begins. The control module retrieves the 100A splitting threshold from the data storage unit and accurately compares it with the target current value in the buffer. If the target current is <100A, it is determined to be a small range and associated with the identifier "01"; if the target current is ≥100A, it is determined to be a large range and associated with the identifier "02". Then, the "target current value + range identifier" is encapsulated into a 16-byte data frame, with a 16-bit CRC checksum appended to the end. This frame is then synchronously sent to the calibration and compensation calculation module. This encapsulated data serves as the core index for subsequent S3 steps to call the corresponding range multi-segment linear calibration parameters, ensuring that small ranges call the 0~100A calibration parameter group and large ranges call the 100~335A calibration parameter group. The S4 step temperature drift compensation provides a basic range reference. During synchronization, the calibration and compensation calculation module at the receiving end first extracts the CRC checksum at the end of the data frame, and then re-executes the CRC-16 checksum calculation on the main body of the data frame. If the two calculation results are consistent, the data transmission is considered complete, and the data is stored in the module's internal buffer for later use. If the results are inconsistent, a "data error" command is immediately returned to the control module. After receiving the command, the control module re-encapsulates the data frame and resends it. If three consecutive transmission failures occur, a transmission fault alarm is triggered, and subsequent processes are suspended. In this way, through refined operation and a strict CRC check mechanism, the accuracy and integrity of the S1 output data are ensured, laying a solid foundation for the subsequent S3 nonlinear calibration and S4 temperature drift compensation.
[0076] In one embodiment, step S2, which involves acquiring the current temperature value in an independent sampling circuit corresponding to the target current value, and simultaneously shielding the signal output of the small-range sampling circuit when the target current value belongs to a large range, includes:
[0077] In the specific implementation, the control module first completes the preliminary work, accurately retrieves the "target current value + range identifier" encapsulated data output from sub-step S14 from the temporary buffer, confirms the data integrity through CRC check, extracts the result of range determination (small or large range), and then sends a stability command to the basic temperature control unit, explicitly requiring the current fan speed to remain unchanged, ensuring that the temperature fluctuation of the circuit environment during temperature acquisition is strictly controlled within ±0.5℃, consistent with the subsequent S3 calibration environment, and avoiding the impact of temperature fluctuations on data consistency. Simultaneously, temperature acquisition is initiated, the temperature acquisition channel is initialized and configured, setting the acquisition accuracy to ≤±0.1℃ and the sampling frequency to 10Hz, and the built-in sensor of the acquisition module is calibrated using a preset standard temperature source to eliminate the module's own system errors. After calibration, the process is completed... Figure 1The target parameter setting interface provides feedback on the temperature acquisition status, facilitating real-time monitoring by the user. If the extracted range is identified as small (0~100A), the control module sends an activation command to the small-range independent sampling circuit configured in S12, driving the sensor and amplifier within the circuit to enter normal operation. Simultaneously, it sends a standby command to the large-range independent sampling circuit, cutting off the power supply to its signal amplification module and retaining only the low-power monitoring branch (power consumption ≤5mW) to avoid redundant interference from the large-range circuit's heat generation on the small-range acquisition environment. After the small-range circuit has been operating stably for 2 seconds, the dedicated temperature acquisition channel is used to acquire the shell temperature of the core components of the small-range sampling circuit and the ambient temperature of the surrounding circuit. Five sets of temperature data are continuously acquired at each acquisition point to avoid random errors. The average of the five sets of data is then calculated to obtain the current temperature value of the small-range sampling circuit. This average value is compared with the ambient temperature monitored by the basic temperature control unit. If the deviation exceeds ±1℃, it is determined to be an acquisition anomaly, and the activation and acquisition process is immediately re-executed. If the deviation is within the allowable range, the average temperature data is temporarily stored in a temporary buffer. If the extracted range identifier is a large range (100~335A), a small range sampling circuit shielding operation must be performed first. The control module generates a standardized shielding command based on the large range determination result from step S14. The command includes key parameters such as the range identifier and shielding duration, and is sent to the control interface of the small range independent sampling circuit via the control bus. The execution sequence of the shielding command strictly follows a preset standard to ensure that the shielding action is completed within 10ms after the command is triggered. After the shielding command is sent, the control module collects the power supply current and signal output voltage of the small range sampling circuit in real time to verify the shielding effect. During normal operation, the supply current of the small-range circuit is ≥20mA and the signal output voltage is ≥1V. After shielding, the supply current must be ≤1mA and the output voltage must be ≤0.1V. If the shielding standard is not met, the shielding command is resent and the circuit connection status is checked until the shielding takes effect. After the shielding is confirmed, an activation command is sent to the large-range independent sampling circuit to drive the shunt and high-bandwidth amplifier to enter the working state. After the circuit reaches a steady state, the surface temperature of the large-range core device and the amplifier chip temperature are collected. The acquisition logic of the average of 5 sets of data is used to obtain the current temperature value of the large-range sampling circuit. After temperature data acquisition is completed, the data validity verification stage begins. The control module compares the temporarily stored small / large range temperature values with the device's preset operating temperature limit range of -10℃ to 85℃. If the value exceeds the range, a temperature anomaly alarm is triggered, displaying a red "Temperature Exceeded" message on the user interface and activating a buzzer alarm, while pausing subsequent processes. If the value is within the reasonable range, the temperature data is associated with the corresponding range identifier and target current value to form a complete "range-target current-temperature" data set, which is then stored in the data storage unit and the data index is updated for easy retrieval later.Finally, the crucial data synchronization output operation is performed. The control module extracts valid temperature data from the buffer, encapsulates it into a 16-byte data frame containing "temperature value + range identifier + timestamp", and appends a 16-bit CRC checksum to the end of the data frame. This frame is then synchronously sent to the calibration and compensation calculation module. During synchronization, the receiving end first extracts the checksum and then re-performs the CRC-16 checksum calculation on the data frame body. If the two calculation results are consistent, the data transmission is considered complete, and the temperature data is stored in the module's internal buffer for later use. If the results are inconsistent, a "data error" command is immediately returned to the control module. Upon receiving the command, the control module re-encapsulates and sends the data frame. If three consecutive transmission failures occur, a transmission fault alarm is triggered, and subsequent processes are paused. The synchronized temperature data is the core data support for the temperature drift compensation calculation in step S4. Its accuracy directly determines the temperature drift compensation effect and can effectively avoid errors in the S4 compensation calculation due to temperature data deviation, ensuring the consistency and reliability of the entire technical process.
[0078] In one embodiment, step S3, which involves calculating an intermediate setting value by calling preset multi-segment linear calibration parameters based on the target current value, includes:
[0079] The control module first initiates the pre-adaptation process, retrieving the core range parameters stored in S1 from the data storage unit: the 100A split threshold, the 0~100A small range / 100~335A large range interval and corresponding identifiers. Simultaneously, it receives the "target current value + range identifier" encapsulated data synchronized from S14. After confirming the data has no transmission errors through 16-bit CRC verification, it extracts key information. Then, it sends a stability control command to the basic temperature control unit, explicitly requiring the current fan speed to remain constant. This ensures that the ambient temperature fluctuation during calibration is strictly controlled within ±0.5℃, maintaining consistency with the S2 temperature acquisition and S4 compensation environment, thus preventing temperature fluctuations from the source. The temperature change introduces additional nonlinear interference. Simultaneously, the calibration and compensation calculation module is activated, initializing the calculation units within the module and setting the calculation accuracy to ≤±0.001%. The target parameter setting interface provides feedback indicating "Entering multi-segment linear calibration stage," facilitating real-time monitoring of the process progress. Finally, preset calibration benchmark rules are retrieved, including reference current distribution standards for each range. For small ranges, currents are densely distributed at ≤0.5A intervals to ensure accurate fitting in smooth nonlinear intervals; for large ranges, currents are evenly distributed at ≤25A intervals to accommodate rapidly changing deviation intervals, linear segment fitting error thresholds, reference current steady-state output duration, and abnormal data removal criteria. Independent calibration loops are built for the two ranges split from S1. The basic temperature control unit is maintained to stabilize the ambient temperature at the 25℃ benchmark value. A high-precision standard current detection device with an accuracy ≥0.0001% is connected to the current source output, forming a closed-loop data comparison loop with the signal acquisition module to ensure the actual output value acquisition accuracy meets requirements. The specific value of N is determined based on the range characteristics (N≥2, and adapts to the range coverage requirements): For the small range (0~100A), due to the smooth nonlinear deviation, N1≥20 is taken, and 21 reference currents are output at intervals of 0A, 0.5A, 1A...100A to cover the entire small range; For the large range (100~335A), due to the significant changes in nonlinear deviation, N2≥15 is taken, and 15 reference currents are output at intervals of 100A, 125A, 150A...335A to cover the entire large range. All reference currents are output sequentially in ascending order, and each reference current is output stably for 3 seconds to ensure that the circuit reaches a steady state. During the output process, the output fluctuation is monitored in real time by the control core module. If the fluctuation exceeds ±0.01%, the output is immediately paused, the circuit is recalibrated, and then the output continues. The signal acquisition module simultaneously collects two sets of core data: the "reference current setting value" of the current source and the "actual output current value" of the high-precision standard testing equipment, forming a calibration data pair of "setting value - actual output value". All data pairs are stored in real time to the data storage unit. The collected dataset is then purified. First, the mean and standard deviation of the deviation for each data pair are calculated, and outliers deviating from the mean by more than three times the standard deviation are removed. If the proportion of outliers exceeds 5%, interference in the acquisition environment is determined, and the reference current output and data acquisition process for this range is re-executed.The dataset, after anomaly removal, is sorted by current magnitude. Using two adjacent reference currents as interval boundaries, N-1 linear segments are obtained: N1=21 for the smaller range (20 segments) and N2=15 for the larger range (14 segments). The segmentation results are plotted on the nonlinear characteristic curve to ensure that the nonlinear deviation within each linear segment is minimized. For each linear segment's two sets of boundary data (e.g., 0.5A-0.500125A and 1A-1.00025A for the smaller range), the k and b values are precisely calculated using the least squares method based on the linear formula "Actual output current value = k × Reference current setting value + b" (where k is the slope and b is the intercept). The fitting error is monitored in real-time during the calculation. If the error exceeds the ±0.005% threshold, the reference current interval for that linear segment is reduced (e.g., from 0.5A to 0.2A for the smaller range), data is re-acquired, and the fitting calculation is repeated until the error meets the standard. The calculated k and b values for each linear segment are then substituted into the test results to obtain the calibrated values. Figure 2 Compare the output data. Figure 1Only the uncalibrated data of the basic temperature control is visible. After calibration, the accuracy is optimized from 0.005%~0.728% to -0.039%~0.005%, verifying the effectiveness of the calibration parameters. Subsequently, the k-value, b-value, corresponding current range, and range identifier of each linear segment are associated to form a multi-segment linear calibration parameter group of "range-range-parameter". This group is stored according to the preset index rules of the data storage unit, such as small range -0.5~1A-k1-b1, large range -100~125A-k2-b2. At the same time, a calibration parameter comparison table is generated, which can be viewed through the interface for easy subsequent maintenance and verification. The control module matches the range identifier (small range / large range) extracted by S31 with the "range identifier" of the calibration parameter group in the data storage unit one by one, quickly locating the complete calibration parameter group corresponding to the target range. For example, the small range target current matches the 0~100A parameter group, and the large range matches the 100~335A parameter group. The matching response time is ≤2ms. The target current value (e.g., 80A, 150A) extracted from S31 is compared one by one with the current range of each linear segment in the matched calibration parameter group to locate the specific linear segment where the target current value is located. For example, the target current of 80A is matched with the small range "79.5~80A" linear segment, and the target current of 150A is matched with the large range "125~150A" linear segment. If the target current value is exactly equal to the interval boundary value (e.g., 100A) during the positioning process, the starting linear segment of the large range (100~125A) is matched by default to ensure the continuity of range switching. The system retrieves the k and b values corresponding to the located linear segment from the data storage unit. During retrieval, the parameter data is automatically encapsulated into an 8-byte data block, and a 16-bit CRC checksum is generated and appended to the end of the data block. After receiving the data, the calibration and compensation module first extracts the checksum and then re-executes the CRC-16 calculation on the parameter data block. If the two calculation results are consistent, the parameter transmission is considered complete, and the subsequent calculation process begins. If they are inconsistent, the system immediately triggers a re-call process and records the fault information in the log. If two consecutive checks fail, a preliminary alarm is triggered to alert staff to investigate storage or transmission link problems. The dedicated calculation unit of the calibration and compensation calculation module takes the target current value as the "actual output current value" and substitutes it into the inverse derivation formula of the corresponding linear segment: Reference current setting value = (actual output current value - b) / k. The intermediate setting value is calculated accurately, which is the control reference value after correcting the nonlinear deviation. A high-precision floating-point calculation unit is used in the calculation process to ensure that the calculation accuracy is ≤ ±0.001%. For example, if the target current is 80A, corresponding to k=1.00002 and b=0.0001, the intermediate setting value is calculated to be (80-0.0001) / 1.00002≈79.9984A.Compare the calculated intermediate setting value with the boundary value of the current range to confirm that it is within a reasonable range (the intermediate setting value for small ranges should be within 0~100A, and for large ranges it should be within 100~335A). If it exceeds the range, it is judged as an abnormal operation. Retrieve the nonlinear characteristic curve and compare whether the theoretical nonlinear deviation corresponding to the intermediate setting value is ≤±0.005%, and refer to it at the same time. Figure 2 The calibration accuracy corresponding to the set value, such as the intermediate set value 79.9984A. Figure 2 The intermediate output value is 80.0000A with an accuracy of 0.002%. If both verifications pass, the intermediate setting value is temporarily stored in the dedicated buffer of the calibration and compensation calculation module. If it fails, the parameter matching call and calculation process is re-executed. If it fails three times consecutively, a "calibration calculation abnormality" alarm is triggered, displaying a red alarm prompt on the interface and activating a buzzer. Detailed fault information is also recorded for subsequent traceability. The control module extracts the verified intermediate setting value from the dedicated buffer of the calibration and compensation calculation module and encapsulates it into a 16-byte data frame according to a preset format. The data frame contains "intermediate setting value (8 bytes) + range identifier (2 bytes) + timestamp (4 bytes) + reserved field (2 bytes)". A 16-bit CRC checksum is appended to the end of the data frame to ensure the integrity of data transmission. The data frame is then synchronously sent to the calibration and compensation calculation module via the control bus. A dual-protection mechanism is established during the synchronization process: After receiving the data frame, the calibration and compensation calculation module at the receiving end first extracts the CRC checksum at the end, and then re-executes the CRC-16 checksum calculation on the body of the data frame. If the two calculation results are consistent, the data transmission is determined to be complete, the intermediate setting value is stored in the module's internal buffer for later use, and a "successful reception" confirmation command is returned to the control module. If the two results are inconsistent, a "data error" command is immediately returned, and the control module re-encapsulates the data frame and resends it after receiving the command. If three consecutive transmission failures occur, a transmission fault alarm is triggered, a fault message is displayed on the interface, and the subsequent S4 process is paused to avoid deviations in temperature drift compensation due to transmission errors, ensuring the reliability and accuracy of the entire calibration calculation process.
[0080] In one embodiment, step S4, which involves performing a compensation calculation on the intermediate setting value based on the current temperature value and the negative correlation between temperature and current output using a pre-fitted temperature compensation function to obtain the final setting value, wherein the compensation calculation is used to offset the temperature drift caused by the current source output value decreasing as the temperature increases, and the negative correlation characteristic is the characteristic that the current source output value linearly decreases as the temperature increases and linearly increases as the temperature decreases, includes:
[0081] The control module first retrieves the complete data set of "range-target current-current temperature value" synchronously stored in the data storage unit (S2), and simultaneously receives the encapsulated data of "intermediate setting value + range identifier + timestamp" synchronously transmitted (S35). It first verifies the absence of transmission errors in both data sets using a 16-bit CRC check. If the check fails, a "data retransmission" command is triggered until complete data is received. Then, it extracts the core information: the target range identifier, the intermediate setting value after S3 correction for nonlinear deviation, and the current temperature value of the sampling circuit acquired by S2. Next, it sends a "stable continuation" command to the basic temperature control unit to maintain ambient temperature fluctuations ≤ ±0.5℃, ensuring consistency between compensation calculations, calibration, and the acquisition environment. Simultaneously, it activates the temperature compensation calculation unit of the calibration and compensation calculation module, initializes the calculation accuracy to ≤ ±0.001%, and retrieves the pre-stored key references: a temperature compensation reference temperature of 25℃, serving as the reference point for fitting the compensation function; pre-fitted temperature compensation functions for each range; and a post-compensation accuracy threshold of ≤ ±0.003%, for reference. Figure 3 The accuracy standard for temperature-compensated data provides a unified criterion for subsequent compensation calculations. (Control module retrieval) Figure 1 , Figure 2 The full-range "temperature-output current" correlation data is used. Based on the negative correlation characteristic of "temperature increase → current output decrease", for example, when the setting value is 100A, the output is 100.60995A at a temperature of 26.5℃ and 99.89625A at a temperature of 28.8℃. The negative correlation is verified. The linear temperature compensation function for each range is obtained by fitting with the least squares method: compensation amount = k_t × (current temperature - reference temperature 25℃) + b_t (where k_t is the temperature coefficient). Under the negative correlation characteristic, k_t is a positive value. When the current temperature is above 25℃, the compensation is positive to offset the temperature drift caused by the decrease in current; when the current temperature is below 25℃, the compensation is negative to offset the temperature drift caused by the increase in current. b_t is the compensation intercept, which adapts to the temperature drift baseline of different ranges. Independent k_t and b_t values are obtained by fitting the small range and the large range respectively, such as k_t = 0.00025A / ℃ for the small range and k_t = 0.0003A / ℃ for the large range, and are stored in the data storage unit. Retrieval Figure 3 The output data shown compares the accuracy before and after compensation. Without compensation... Figure 2 The accuracy is -0.039% to 0.005%, and after compensation, as shown... Figure 3The optimization was performed to -0.026% to 0.003%, verifying that the pre-fitted function could effectively offset temperature drift. After confirming the validity of the function parameters, the compensation function corresponding to the current range was locked. The difference between the current temperature value collected by S2 and the reference temperature of 25℃ was calculated to obtain the temperature deviation ΔT (e.g., if the current temperature is 28℃, then ΔT = 3℃; if the current temperature is 22℃, then ΔT = -3℃). ΔT was substituted into the pre-fitted temperature compensation function for the corresponding range to calculate the temperature drift compensation amount ΔI. For example, if the target intermediate setting for a large range is 150A, the current temperature is 28℃ (ΔT = 3℃), k_t = 0.0003A / ℃, b_t = 0.0001A, then the compensation amount ΔI = 0.0003 × 3 + 0.0001 = 0.001A. This compensation amount can offset the temperature drift deviation caused by a 0.001A decrease in current output due to a 3℃ increase in temperature. The calculation is performed based on the logic of "intermediate setting value + compensation amount = final setting value". Under the negative correlation characteristic, the compensation amount is positive when the temperature rises, making up for the reduced current; when the temperature falls, the compensation amount is negative, correcting the increased current. For example, the above large-range intermediate setting value of 150A + compensation amount of 0.001A = final setting value of 150.001A. This value ensures that the actual output current accurately matches the target current value. (The last sentence appears to be incomplete and possibly refers to a different calculation method.) Figure 3 The accuracy standard shown confirms that the theoretical output accuracy corresponding to the final setting value is ≤ ±0.003%; it also confirms that the final setting value is within the current range (small range 0~100A, large range 100~335A). If it exceeds this range, the calculation is considered abnormal, and the compensation calculation is re-executed. After successful verification, the final setting value is temporarily stored in the dedicated buffer of the calibration and compensation calculation module. The control module extracts the verified final setting value from the dedicated buffer and encapsulates it into a 16-byte data frame according to a preset format. The data frame contains "final setting value (8 bytes) + range identifier (2 bytes) + temperature compensation amount (2 bytes) + timestamp (4 bytes)", and appends a 16-bit CRC checksum (the checksum covers the entire frame of data) to the end of the data frame. Subsequently, the data frame is synchronously sent to the current source output control module through the control bus. This synchronization process provides the final reference data for the accurate output of the current source and directly determines the output accuracy. A strict integrity guarantee mechanism is established during synchronization: After receiving a data frame, the receiving end (output control module) first extracts the CRC checksum at the end, and then re-executes the CRC-16 checksum calculation on the data frame body; if the two calculation results are consistent, the data transmission is determined to be complete, the final setting value is stored in the execution buffer of the output control module, a "reception successful" command is immediately fed back, and the data is transmitted through the output control module. Figure 1The interface displays "Temperature compensation complete, final setting value has taken effect"; if the verification results are inconsistent, a "data error" command is immediately returned to the control module. The control module re-encapsulates the data frame and sends it. If three consecutive transmission failures occur, a "transmission fault" alarm is triggered, the output process is paused, and a fault log (including transmission time and checksum comparison results) is recorded. This synchronization mechanism completely avoids compensation deviations caused by transmission errors, ensuring that the final setting value can accurately drive the current source output, offsetting the dual effects of nonlinear deviation and temperature drift. (Reference) Figure 3 After compensation, the accuracy across the entire measurement range is stable at -0.026% to 0.003%.
[0082] In one embodiment, step S5, controlling the output current of the current source according to the final setting value, includes:
[0083] The control module first retrieves the encapsulated data frame containing "final setting value + range identifier + temperature compensation amount + timestamp" synchronously transmitted via S44 from the dedicated buffer of the calibration and compensation calculation module. It prioritizes performing a 16-bit CRC check (comparing each bit with the checksum generated during S4 encapsulation) to ensure no data transmission errors. If the checksum result is inconsistent, it immediately sends a "retransmit final setting value" command to the calibration and compensation calculation module until a complete and verified final setting value is received. Then, it extracts the core information: the final setting value (e.g., small range 80.0012A, large range 150.0035A), the corresponding range identifier (small range ID: 01, large range ID: 02), and the effective temperature compensation amount. Simultaneously, it retrieves the S44 data frame. 1. The stored range boundary parameters (0~100A / 100~335A) are verified again to ensure that the final set value is within the corresponding range range. Next, an "output stage stability maintenance" command is sent to the basic temperature control unit, requiring the fan speed and heat dissipation power to remain constant, ensuring that the ambient temperature fluctuation of the output stage circuit is strictly controlled within ±0.5℃, consistent with the temperature environment of the S2 acquisition, S3 calibration, and S4 compensation stages, avoiding new temperature drift interference with output accuracy. Finally, the current source output control module is activated, initializing the core parameters of the output drive unit: output resolution ≤0.0001A, drive signal response time ≤1ms. Simultaneously, the historical current buffer data of the output circuit is cleared to eliminate interference for accurate output. Based on the extracted range identifier, the control module sends a directional activation command to the output circuit of the corresponding range, while simultaneously shielding non-target range circuits to ensure that the output link is fully compatible with the range characteristics. For small-range (0~100A) circuit adaptation, a "full-link activation" command is sent to the small-range independent sampling / output circuit configured in S12 to drive the sensor and low-noise operational amplifier into working state. At the same time, a "deep standby" command is sent to the large-range output circuit to cut off the main power supply branch of the shunt, so as to avoid redundant heat generation of the large-range circuit from interfering with the output accuracy of the small-range weak current. After activation, the impedance matching status of the small-range circuit is monitored in real time. The total impedance of the circuit is required to be ≤0.001Ω. If the impedance is abnormal, the output is immediately paused and a "small-range circuit impedance abnormal" message is displayed. The circuit is reactivated after troubleshooting and repair. Large-range (100~335A) loop adaptation: First, send a "signal shielding + power supply cut-off" command to the small-range output loop, requiring the small-range loop power supply current ≤1mA and the signal output voltage ≤0.1V. After confirming no cross-interference, send a "full-link activation" command to the large-range independent sampling / output loop to drive the shunt, high-bandwidth operational amplifier, and power amplifier unit into working state. After activation, test the current carrying capacity of the loop, requiring the loop temperature rise ≤5℃ / min when the maximum output is 335A, to ensure the safety and stability of high current output.After receiving the final setting value from the control module, the output control module converts the final setting value of the digital quantity into a drive signal adapted to the output circuit: for small ranges, a voltage-type drive signal (accuracy ≤ 0.0001V) is used to adapt to the voltage-type sampling characteristics of the sensor; for large ranges, a current-type drive signal (accuracy ≤ 0.0001mA) is used to adapt to the current-type sampling characteristics of the shunt. After the drive signal is amplified by the power amplifier unit, it is input to the power conversion module of the current source output circuit, and the drive circuit outputs the corresponding current. To avoid output fluctuations or circuit damage caused by sudden high current surges, a "step-by-step current ramp-up" strategy is adopted: for small ranges, it starts at 0A and gradually increases to the final set value in steps of 0.01A; for large ranges, it starts at 100A and gradually increases to the final set value in steps of 0.1A. During the current ramp-up process, the PID closed-loop adjustment algorithm built into the output control module is activated, comparing the "final set value" with the "real-time output current value" fed back by the signal acquisition module in real time, and dynamically adjusting the drive signal amplitude. If the real-time output value is less than the final set value, the drive signal amplitude is increased; if the real-time output value is greater than the final set value, the drive signal amplitude is decreased, strictly controlling the output fluctuation within ±0.0005A to ensure output stability. Two core data points are simultaneously collected by the signal acquisition module: the real-time output current value at the current source output terminal and the real-time temperature value of the core components in the output circuit. The real-time output current value is compared with the user's initial target current value (e.g., 80A, 150A), and the output deviation is calculated as |real-time output value - target current value| / target current value × 100%. Retrieve the preset full-range accuracy thresholds: small range ≤ ±0.01%FS, large range ≤ ±0.02%FS, for reference. Figure 3After temperature compensation, the accuracy standard is used to verify whether the current output deviation meets the threshold requirement. If the deviation is less than or equal to the threshold, the output is considered qualified. If the deviation is greater than the threshold, the current boosting process is immediately paused, the PID algorithm parameter fine-tuning is triggered (increasing the proportional coefficient to 1.2 times to speed up the adjustment response), the output is re-driven, and the verification is performed again. If the verification fails twice consecutively, it is determined to be "abnormal output accuracy," the output process is paused, and anomaly investigation is initiated. The core data of this output (final setting value, real-time output current value, output deviation, current temperature value, range identifier, output start time) is stored in the data storage unit in a structured format of "timestamp-range-parameter" to generate a traceable output log. At the same time, "output status (qualified / abnormal) + real-time output value + accuracy deviation" is encapsulated into a 16-byte data frame, with an additional 16-bit CRC checksum, and synchronously sent to the host computer (such as the LabVIEW monitoring terminal) and the local touch screen to ensure data transmission integrity. If the output is qualified, a green "Output Normal" message will be displayed on the interface, along with the real-time output current value, accuracy deviation, and current temperature value. If the output is abnormal (accuracy exceeding the limit / loop fault / abnormal temperature rise), a red "Output Abnormal" message will be displayed, indicating the type of abnormality, and a buzzer will be activated to remind staff to investigate immediately. When the output is overcurrent (real-time output value > final setting value by 10%): the main power supply to the output circuit will be immediately cut off, triggering an "overcurrent protection" alarm, and recording the final setting value, temperature value, and drive signal amplitude at the time of the overcurrent to facilitate tracing the cause of the fault. When the temperature rise is abnormal (output circuit device temperature > 85℃): the output will be paused, and the enhanced heat dissipation mode of the basic temperature control unit will be activated (fan speed increased to 120%). The output will be retried after the temperature drops to ≤ 70℃. When communication is interrupted (communication with the calibration module / host computer is lost): the local offline mode will be switched to, and the output will continue based on the cached final setting value. At the same time, the communication will be reconnected every 5 seconds, and the offline output data will be automatically synchronized after a successful reconnection. If the output accuracy verification fails three times in a row and the PID adjustment cannot correct the deviation, the control module will automatically retrieve the historical qualified final setting value of "same range and same temperature range" from the data storage unit, replace the current value and re-drive the output; if the output is still abnormal after replacement, the output will be stopped and the device will be locked, and the "manual maintenance required" prompt will be displayed on the interface, waiting for staff to check the circuit, sensor or algorithm parameter problems.
[0084] Reference Figure 5 Here is a structural block diagram of a nonlinear fitting and multi-segment temperature compensation device for an ultra-large current source according to an embodiment of the present invention, comprising:
[0085] The range management and data acquisition module is used to split independent ranges, configure independent sampling circuits, preset threshold comparison, determine the range to which the target current value belongs, and acquire real-time temperature data of the corresponding sampling circuit based on the range determination result.
[0086] The basic temperature control module is used to dynamically adjust the speed of the cooling fan according to the real-time output power and current of the current source, so as to maintain the stable operating temperature of the circuit.
[0087] The calibration and compensation calculation module is used to output a reference current covering the corresponding range and simultaneously acquire the reference current setting value and the actual output value. It divides the linear segment and fits the nonlinear characteristics to generate exclusive multi-segment linear calibration parameters, fits the appropriate exclusive temperature compensation function, and calls the corresponding function to calculate the temperature drift compensation amount.
[0088] The data storage module is used to centrally store preset current thresholds, multi-segment linear calibration parameters for two ranges, dedicated temperature compensation functions, and range identification association information, providing data retrieval support for each module.
[0089] The output control module is used to acquire the intermediate setting value and temperature drift compensation amount obtained through multi-segment linear calibration calculation, calculate the final setting value, switch to the working loop corresponding to the range of the target current value and match the dedicated independent sampling circuit, and drive the current source to accurately output the current.
[0090] In this embodiment, the specific implementation of each unit in the above device embodiment is described in the above method embodiment, and will not be repeated here.
[0091] An embodiment of the present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-described method. It is understood that the computer-readable storage medium in this embodiment can be a volatile readable storage medium or a non-volatile readable storage medium.
[0092] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the present invention and embodiments can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual-rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM, etc.
[0093] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, apparatus, article, or method. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, apparatus, article, or method that includes that element.
[0094] The above description is only a preferred embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent structural or procedural transformations made based on the content of the present invention specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of the present invention.
Claims
1. A method for nonlinear fitting and multi-segment temperature compensation of ultra-large current sources, characterized in that, Includes the following steps: The total range of the current source is pre-divided into a small range and a large range, and independent sampling circuits corresponding to the small range and the large range are configured to obtain the target current value and determine the range corresponding to the target current value. The current temperature value is collected in the independent sampling circuit corresponding to the range of the target current value. When the target current value belongs to the large range, the signal output of the small range sampling circuit is simultaneously blocked. Based on the target current value, a preset multi-segment linear calibration parameter is called to perform calculations to obtain an intermediate setting value; Based on the current temperature value, and considering the negative correlation between temperature and current output, the intermediate setting value is compensated using a pre-fitted temperature compensation function to obtain the final setting value. The compensation operation is used to offset the temperature drift caused by the current source output value decreasing as the temperature increases. The negative correlation characteristic is that the current source output value decreases linearly as the temperature increases and increases linearly as the temperature decreases. Based on the final set value, control the current source to output current; Based on the total range of the current source and the actual output accuracy requirements, a preset current threshold is used to divide the total range of the current source into two independent ranges. The two independent ranges include a small range that is less than the current threshold and a large range that is greater than or equal to the current threshold. A first independent sampling circuit and a second independent sampling circuit are configured for the large and small current ranges respectively. The parameters of the first independent sampling circuit are adapted to the current output range of the corresponding large range, and the parameters of the second independent sampling circuit are adapted to the current output range of the corresponding small range. Receive the target current value input by the user. The target current value is the current magnitude that the current source needs to output. The current magnitude is within the total range of the current source. The acquired target current value is compared with the preset current threshold. If the target current value is greater than or equal to the preset current threshold, the range to which the target current value belongs is determined to be a large range, triggering the shielding command of the small range sampling circuit. If the target current value is less than the preset current threshold, then the range to which the target current value belongs is determined to be a small range; Perform calibration parameter calibration separately for the two independent measurement ranges, large and small. For the current calibration range, the control current source outputs N uniformly covered reference currents in sequence and sorts them by size. The set value and actual output value of each reference current are recorded simultaneously to form a calibration dataset. Divide the adjacent reference currents into N-1 linear segments according to the sorting, and calculate the slope k and intercept b of each linear segment based on the linear formula; By reverse-engineering the linear segment calculation formula through the calculated slope k and intercept b, an N-1 segment linear calibration function covering the range is formed and stored as a multi-segment linear calibration parameter. Determine the range to which the target current value belongs and call the corresponding calibration parameters; Locate the linear segment interval corresponding to the target current value, and substitute it into the interval calibration function to obtain the intermediate setting value.
2. The method for nonlinear fitting and multi-segment temperature compensation of ultra-large current source according to claim 1, characterized in that, The step of acquiring the current temperature value in the independent sampling circuit corresponding to the target current value, and simultaneously shielding the signal output of the small-range sampling circuit when the target current value belongs to a large range, includes: Based on the range of the target current value, a corresponding independent sampling circuit is matched, wherein the large range corresponds to the first independent sampling circuit and the small range corresponds to the second independent sampling circuit. If the target current value belongs to a small range, control the second independent sampling circuit to be in normal working state and directly collect the real-time temperature data of the second independent sampling circuit; If the target current value belongs to a large range, collect the real-time temperature data of the first independent sampling circuit, send a shielding command to the second independent sampling circuit, cut off the working power supply of the second independent sampling circuit or shield the signal output channel of the second independent sampling circuit.
3. The method for nonlinear fitting and multi-segment temperature compensation of ultra-large current source according to claim 1, characterized in that, The step of performing a compensation calculation on the intermediate setting value based on the current temperature value and the negative correlation between temperature and current output using a pre-fitted temperature compensation function to obtain the final setting value, wherein the compensation calculation is used to offset the temperature drift of the current source output value decreasing as the temperature increases, and the negative correlation characteristic is the characteristic that the current source output value linearly decreases as the temperature increases and linearly increases as the temperature decreases, includes: Based on the division into two independent ranges of different sizes, the temperature compensation function for each range is fitted and stored in the control module by combining the calibration data of each range with the temperature data of the corresponding sampling circuit. Obtain the current temperature value of the independent sampling circuit corresponding to the target range, and the intermediate setting value obtained by function calculation; Based on the range of the target current value, the dedicated temperature compensation function corresponding to the range of the target current value is called from the control module; Substitute the current temperature value into the matching temperature compensation function to obtain the temperature drift compensation amount; The intermediate setting value is corrected by the compensation amount to offset the temperature drift of the current source output value as the temperature increases.
4. The method for nonlinear fitting and multi-segment temperature compensation of ultra-large current source according to claim 3, characterized in that, The steps of fitting a temperature compensation function for each measurement range based on two independent ranges of varying sizes, combining the calibration data of each range with the temperature data of the corresponding sampling circuit, and storing the results in the control module include: The calibration data corresponding to the two ranges, large and small, and the temperature data of the independent sampling circuits of the corresponding ranges are extracted separately to establish a range dataset of temperature and current output deviations. Based on the datasets of the two ranges, the negative correlation between temperature and current output was confirmed, and a temperature compensation function specific to each range was fitted. The fitted temperature compensation function for each range is associated with the corresponding range identifier and stored in the current source control module.
5. The method for nonlinear fitting and multi-segment temperature compensation of ultra-large current source according to claim 1, characterized in that, The step of controlling the output current of the current source according to the final set value includes: Obtain the final setting value and the range to which the determined target current value belongs; The control current source is switched to the working circuit corresponding to the range to which the target current value belongs, and the dedicated independent sampling circuit of that range is synchronously matched. The current source is driven to output current based on the final set value.
6. A device for nonlinear fitting and multi-segment temperature compensation of an ultra-large current source, characterized in that, The method for nonlinear fitting and multi-segment temperature compensation of ultra-large current source according to any one of claims 1-5, wherein the apparatus for nonlinear fitting and multi-segment temperature compensation of ultra-large current source comprises: The range management and data acquisition module is used to split independent ranges, configure independent sampling circuits, preset threshold comparison, determine the range to which the target current value belongs, and acquire real-time temperature data of the corresponding sampling circuit based on the range determination result. The basic temperature control module is used to dynamically adjust the speed of the cooling fan according to the real-time output power and current of the current source, so as to maintain the stable operating temperature of the circuit. The calibration and compensation calculation module is used to output a reference current covering the corresponding range and simultaneously acquire the reference current setting value and the actual output value. It divides the linear segment and fits the nonlinear characteristics to generate exclusive multi-segment linear calibration parameters, fits the appropriate exclusive temperature compensation function, and calls the corresponding function to calculate the temperature drift compensation amount. The data storage module is used to centrally store preset current thresholds, multi-segment linear calibration parameters for two ranges, dedicated temperature compensation functions, and range identification association information, providing data retrieval support for each module. The output control module is used to acquire the intermediate setting value and temperature drift compensation amount obtained through multi-segment linear calibration calculation, calculate the final setting value, switch to the working loop corresponding to the range of the target current value and match the dedicated independent sampling circuit, and drive the current source to accurately output the current.
7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the nonlinear fitting and multi-segment temperature compensation method for ultra-large current source as described in any one of claims 1 to 6.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the nonlinear fitting and multi-segment temperature compensation method for ultra-large current source as described in any one of claims 1 to 6.
Citation Information
Patent Citations
A temperature-compensated circuit and method thereof
CN101599761A
Control circuit of high-precision low-temperature drift direct current source and temperature compensation method thereof
CN118795963A