A matrix resistance output control system and method
By using a matrix-type resistance output control system, multi-channel resistance output cards, measurement modules, and a main controller, combined with 8421 BCD encoding and high-current measurement, calibration coefficients are generated and relay state combinations are controlled. This solves the problem of high precision for RTD output cards under different environments and operating factors, and achieves high-precision resistance output calibration.
Patent Information
- Application Number
- CN202511123872.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-12
- Publication Date
- 2025-12-26
- Estimated Expiration
- 2045-08-12
AI Technical Summary
Existing technologies cannot meet the high precision requirements of RTD output cards under the influence of factors such as different testing environments, measurement methods, and card power-on operation time. Automatic calibration is complex, manual calibration is costly, and both are limited to specific scenarios.
A matrix-type resistor output control system is adopted. Through multi-channel resistor output cards, measurement modules, calibration modules and main controllers, calibration coefficients are generated by simulating the actual measurement environment. Using 8421 BCD encoding and high current measurement, linear equations are fitted and relay state combinations are controlled to calibrate the actual output resistance value.
To achieve high-precision output of the RTD output card in different application scenarios, reduce measurement errors, improve the accuracy of measurement results, and meet high-precision requirements.
Smart Images

Figure CN120610507B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of industrial control, and in particular to a matrix resistance output control system and method, which is applied to some application scenarios that require accurate measurement of the output resistance value of a resistance output card, such as high-precision fields such as nuclear reactor protection system logic verification, to meet the needs of high-precision industrial control. BACKGROUND
[0002] The output type of a thermal resistance output card includes a real resistance output and an analog resistance output. The real resistance output is theoretically a constant value, but in actual application scenarios, the resistance value of the real resistance during the output process is affected by factors such as the environment, the measurement method, and the length of time that the card is powered on, resulting in a deviation in the actual output resistance value. In order to enable the thermal resistance output card to meet high-precision requirements under the influence of different test environments, measurement methods, and the length of time that the card is powered on, the thermal resistance output card needs to be calibrated in different application scenarios.
[0003] Most of the solutions on the market currently only aim to reduce the data calculation error generated when the real resistance output is reduced in a specific application scenario (such as a specific temperature and a specific test method), and are mainly implemented through two ways of automatic calibration and manual calibration, as follows:
[0004] <1> Automatic calibration: Automatic calibration refers to the detection and adjustment of the parameters and performance of a device or system by a preset program and algorithm without human intervention or with only a small amount of human start-up operation, to ensure the accuracy and reliability of its measurement and operation. Advantages: ① Suitable for harsh working environments that require frequent and batch calibration. ② Saves time and labor costs. After the automatic calibration program is set, there is no need for frequent and complex calibration operations by humans, improving work efficiency. Disadvantages: The software and hardware program design of automatic calibration has high complexity, requires a large amount of data, and is highly dependent on data quality.
[0005] <2> Manual calibration: Manual calibration refers to adjusting the parameters of a device, instrument, or system through manual operation to achieve an accurate and standard state. Advantages: Reduces design costs. The amount of data required during the design process is much smaller than that required for automatic calibration, and no additional calibration circuit design is needed. Disadvantages: Only suitable for small amounts of data calibration, increasing labor and time costs.
[0006] The above two calibration methods can only be used in specific application scenarios and have their own defects, and cannot meet the high-precision resistance output requirements in different application scenarios. SUMMARY
[0007] The present application aims to overcome the technical problems existing in the prior art, and provides a matrix resistance output control system and method, so that the physical resistance output of a thermal resistance output card can meet high-precision requirements under the influence of different test environments, measurement methods, and card power-on running time.
[0008] The purpose of the present application is achieved by the following technical solutions:
[0009] In a first aspect, a matrix resistance output control system is provided, comprising:
[0010] A multi-channel resistance output card supports multiple independent channels, each channel being configured with a resistance network, the resistance network including a base resistance and multiple member resistances in series, each member resistance being connected or disconnected by a relay;
[0011] A measurement module is configured to measure the actual resistance values of the base resistance and the member resistances.
[0012] A calibration module is configured to simulate an actual measurement environment to generate calibration coefficients for different channels; the calibration coefficients for different channels generated by simulating the actual measurement environment include:
[0013] A plurality of sets of simulated target resistance values are preset, and the optimal relay state combination in different channels is calculated by traversing under the corresponding simulated target resistance values, and a plurality of sets of simulated output resistance values closest to the simulated target resistance values are measured under the state.
[0014] According to the plurality of sets of simulated target resistance values and the simulated output resistance values, a linear equation is fitted:
[0015] y=Kx+B
[0016] Wherein, y represents the simulated output resistance value, x represents the simulated target resistance value, K and B are calibration coefficients.
[0017] A main controller is configured to calculate the actual target resistance values of different channels according to the calibration coefficients and the actual output resistance values; and is further configured to calculate the optimal relay state combination in different channels according to the actual target resistance values, and control the relays to connect the corresponding member resistances, thereby controlling the output of the actual output resistance values.
[0018] In some embodiments, the member resistances are divided into N groups according to different orders of magnitude, each group containing 4 member resistances, and the member resistances in each group are encoded in 8421BCD to realize corresponding order of magnitude output.
[0019] In some embodiments, the measurement module obtains the actual resistance values of the base resistance and the member resistances by inputting a large current.
[0020] Preferably, the resistance value measurement of the base resistance includes:
[0021] Disconnecting the relays of all the member resistors, connecting the base resistor to the output, measuring the initial circuit resistance value at the output port, the initial circuit resistance value including the base resistance value, the overall loop resistance value of the PCB board wiring, the relay resistance value and the port connector resistance value.
[0022] Preferably, the resistance value measurement of the member resistors includes:
[0023] On the basis of the measured initial circuit resistance value, the relays are controlled to be connected to each member resistor in turn, and the measured resistance value each time is subtracted from the initial circuit resistance value to obtain the measured resistance value of the corresponding member resistor.
[0024] In some embodiments, the main controller traverses to calculate the optimal relay state combination in different channels according to the actual target resistance value, including:
[0025] The resistance value output by the resistance network of each independent channel has 2 4N +1 kinds, and the main controller selects the relay state combination corresponding to the minimum absolute value of the difference between the 2 4N +1 kinds of output resistance values and the target resistance value as the optimal relay state combination by comparing the difference one by one.
[0026] In a second aspect, a matrix resistance output control method is provided for the matrix resistance output control system of the first aspect, including the following steps:
[0027] S1, measuring the measured resistance values of the base resistor and the member resistors when power is on;
[0028] S2, storing the measured resistance values to the storage unit of the corresponding channel;
[0029] S3, generating calibration coefficients of different channels by simulating the actual measurement environment, and writing the calibration coefficients to the storage unit of the corresponding channel; the generation of the calibration coefficients of different channels by simulating the actual measurement environment includes:
[0030] Predefining multiple groups of simulated target resistance values, and traversing to calculate the optimal relay state combination in different channels under the corresponding simulated target resistance values, and measuring multiple groups of simulated output resistance values closest to the simulated target resistance values under the state;
[0031] According to the multiple groups of simulated target resistance values and the simulated output resistance values, a linear equation is fitted:
[0032] y=Kx+B
[0033] Wherein, y represents the simulated output resistance value, x represents the simulated target resistance value, K and B are calibration coefficients.
[0034] S4, calculating actual target resistance values of different channels according to the calibration coefficient and the actual output resistance value; and further used for traversing and calculating an optimal relay state combination in different channels according to the actual target resistance values, and controlling the relay to access corresponding member resistances, thereby controlling the output of the actual output resistance value.
[0035] In some embodiments, the measured resistance values of the base resistance and the member resistances are obtained by inputting a large current in step S1.
[0036] In some embodiments, the traversing and calculating of the optimal relay state combination in different channels according to the actual target resistance values comprises:
[0037] The resistance values output by the resistance network have 2 4N +1 kinds, and the main controller selects the relay state combination corresponding to the minimum absolute value of the difference between the 2 4N +1 kinds of output resistance values and the target resistance value as the optimal relay state combination.
[0038] It should be further explained that the technical features corresponding to the above options can be combined or replaced with each other to form new technical solutions without conflict.
[0039] Compared with the prior art, the present application has the following advantages:
[0040] Before controlling the output of the actual resistance value of the thermal resistance output card, the present application simulates the actual measurement environment to generate a calibration coefficient under the corresponding scene, guarantees the measurement range by combining the 8421 BCD encoding mode, and measures the resistance value under the premise of inputting a large current, thereby further improving the accuracy of the measurement result, avoiding the error generated by the output of the actual resistance value of the thermal resistance output card, and enabling the output of the actual resistance value of the thermal resistance output card to meet the high-precision requirement under the influence of different test environments, different measurement methods, and the running time of the card. BRIEF DESCRIPTION OF DRAWINGS
[0041] Figure 1 FIG. 1 is a schematic diagram of a matrix resistance output control system of the present application;
[0042] Figure 2 FIG. 2 is a schematic diagram of a resistance network of a certain channel of the present application;
[0043] Figure 3 FIG. 3 is a circuit diagram when only the base resistance is accessed in the present application;
[0044] Figure 4 FIG. 4 is a circuit diagram when the member resistance is accessed in the present application;
[0045] Figure 5 FIG. 5 is a number axis diagram when the member resistance adopts the 1234 BCD encoding mode in the present application;
[0046] Figure 6 The number axis diagram of the member resistance using 8421 BCD encoding mode;
[0047] Figure 7 The flowchart of the matrix resistance output control method of the application. DETAILED DESCRIPTION
[0048] The technical solutions of the application will be described clearly and completely below with reference to the drawings. Obviously, the described embodiments are part of the embodiments of the application, rather than all the embodiments. The components of the embodiments of the application described and shown in the drawings can be arranged and designed in various different configurations. Based on the embodiments in the application, all the other embodiments obtained by those skilled in the art without creative work are within the protection scope of the application.
[0049] It should be noted that the defects of the above prior art are the results obtained by the inventors after practice and careful study. Therefore, the discovery process of the above problems and the solutions proposed by the embodiments of the application to the above problems should be the contributions of the inventors to the application in the process of invention and creation, and should not be understood as the technical content known to those skilled in the art.
[0050] To solve the technical problems in the background art, the embodiments provided by the application are as follows:
[0051] Reference Figure 1 In an example embodiment, a matrix resistance output control system includes:
[0052] The multi-channel resistance output card supports multiple independent channels, and each channel is configured with a resistance network including a basic resistance and multiple member resistances in series, and each member resistance is connected or disconnected through a relay;
[0053] The measuring module is configured to measure the actual resistance values of the basic resistance and the member resistances;
[0054] The calibration module is configured to generate calibration coefficients of different channels by simulating an actual measurement environment. The calibration coefficients of different channels generated by simulating the actual measurement environment include:
[0055] A plurality of sets of simulated target resistance values are preset, and the optimal relay state combination in different channels is calculated by traversing under the corresponding simulated target resistance values, and a plurality of sets of simulated output resistance values closest to the simulated target resistance values under the state are measured;
[0056] According to the plurality of sets of simulated target resistance values and the simulated output resistance values, a linear equation is fitted:
[0057] y=Kx+B
[0058] wherein, y represents an analog output resistance value, x represents an analog target resistance value, K and B are calibration coefficients;
[0059] The main controller is configured to calculate actual target resistance values of different channels according to the calibration coefficients and actual output resistance values, and is further configured to calculate an optimal relay state combination in different channels according to the actual target resistance values, and control the relays to access corresponding member resistors, thereby controlling the output of the actual output resistance values.
[0060] The multi-channel resistance output card adopts an electronic type, and supports 8 channels, 16 channels or other numbers of channels, and each channel can be independently adjusted. The main controller supports a matrix high-precision control mode and a relay switching type technology. In the matrix high-precision control mode, a decimal place, a unit place, a ten place and a hundred place relay group combination resistance value is adopted, and a wide range of precise adjustment is supported. In the relay switching type technology, a preset resistance network is switched by a relay group.
[0061] Reference Figure 2 The resistance networks of the channels are connected in series by actual resistors, and the number of the actual resistors is controlled by the state of the switching relay. In order to ensure that all values in the range can be output, 13 resistors are designed for each channel, one of which is a basic resistor, i.e. when there is no relay working (no other resistors are connected), the channel outputs a fixed resistance value. The other 12 resistors are member resistors, which are divided into three groups of four resistors each, and control the output of three orders of magnitude, i.e. 10Ω, 1Ω and 0.1Ω. Among them, the four member resistors in each group realize the corresponding order of magnitude output by using the 8421 BCD coding method, for example, the first group is 0.1 / 0.2 / 0.4 / 0.8(Ω), the second group is 1 / 2 / 4 / 8(Ω), and the third group is 10 / 20 / 40 / 80(Ω). It should be noted that the number and resistance value of the resistors in this application are examples and are not limited to this application. They can be adjusted according to actual conditions.
[0062] Further, the measuring module obtains the measured resistance values of the basic resistor and the member resistors by inputting a large current. Specifically, as shown in Figure 2 , by inputting a large current, the 13 resistance values of each channel of the thermistor output card are measured, and the measurement results of the 12 member resistors are actual resistance values except for the basic resistor. As shown in Figure 3 , using a precision source measuring instrument, the relays of the 12 member resistors are disconnected, the basic resistor is directly connected to the output end, and the initial circuit resistance (R 总), but at this time the initial circuit resistance contains the basic resistance (R0), the overall loop resistance of the PCB trace (represented by R PCB ), the relay resistance (represented by R A ), and the port connector resistance (represented by R 总 ), that is, R A =R0+R PCB +Rsw+R 总 , theoretically R N ≈R0, so the overall range of the resistance output is [R0, R0+R1+R2+...R N ]. On this basis, as shown in Figure 4 , the relay is controlled to cut in 12 member resistances in turn, and the measured resistance value of each member resistance is obtained by subtracting the initial circuit resistance from the measured resistance value. The resistance value of a certain member resistance is:
[0063] R 实测 =R 总 -R N 12 where N is the number of the 12 member resistances cut in, and R 12 is R1~R 12 . After obtaining the measured resistance values of the basic resistance and the member resistances, these data are written into the addresses stored in the corresponding channels using the flash writing function, and are automatically read upon power-on.
[0064] Further, the member resistances in the present application use 8421 BCD encoding to achieve the output of orders of magnitude, because compared with the 1234 BCD encoding method, the use of 8421 BCD encoding makes the resistance output range larger and can ensure that all values in the range can be output, avoiding the missing of the output value of the resistance resistance connection segment. Specifically, as shown in , when the member resistances use the 1234 BCD encoding method, under the same standard measurement accuracy, according to the three orders of magnitude set (10Ω level, 1Ω level, 0.1Ω level), combined with the number axis display, the resistance output range of the member resistances using the 1234 BCD encoding is [0.1, 100] (the actual resistance output measurable range is [0.1, 111]), and the output range of each order of magnitude is [0.1, 1], [1, 10], [10, 100], so “1” and “10” are the intersection points of the three orders of magnitude. Taking the 1Ω level as an example, the theoretical maximum value of the resistance output can be 10Ω, and actually due to the properties of the physical resistance itself and other factors, its actual measured value can only be 9.6Ω. For the resistance of the 10Ω level, the theoretical minimum value of the resistance output can be 10Ω, but its actual measured value can be 10.4Ω, so within the range of [9.6, 10.4], the resistance cannot be normally output, resulting in the missing of the output value of the resistance resistance connection segment.
[0066] As shown in Figure 6 , when the member resistance adopts 8421 BCD encoding, the 8421 BCD encoding is equivalent to the measurement precision in the 1234 BCD encoding mode, according to the three orders of magnitude (10Ω order, 1Ω order, 0.1Ω order) set, combined with the number axis display, the resistance output range of the member resistance adopting 8421 BCD encoding is [0.1, 150] (the actual resistance output measurable range is [0.1, 166.5]), the output range of each order is [0.1, 1.5], [1, 15], [10, 150], and the three orders of magnitude of the resistance output form intersections [1, 1.5], [10, 15] at the intersection point, at this time, [9.6, 10.4] falls within the measurable range, and all resistance values on the number axis are within the measurable range, even if the maximum value of the actual measurement of the second group is less than 15Ω, the third group [10, 150] measurement range can be covered, or the minimum value of the actual measurement of the third group is less than 10Ω, the second group [1, 15] measurement range can be covered. Therefore, the 8421 BCD encoding is finally selected.
[0067] Further, the following content explains the reason why the present application adopts input large current to measure the resistance value of the actual resistance. Specifically, all measuring devices have full-scale error, assuming that the maximum allowable error in this measuring environment is mainly determined by the full-scale error, given the full-scale accuracy, then the full-scale error = theoretical true value (full-scale) * full-scale accuracy, that is:
[0068] = FS
[0069] Wherein, represents the full-scale error, FS represents the theoretical true value (full-scale), represents the full-scale accuracy.
[0070] Assume: in a circuit, the measuring device measures the range of [0, 10]V, the full-scale accuracy is 0.1%, the theoretical fixed resistance value of the resistance connected to the circuit is 100Ω, and the stable current of 10mA and 200uA is output respectively for testing, according to Ohm's law, under the same measuring device, measuring environment and measuring means, given the resistance and current, then:
[0071] 1> When the circuit outputs a stable current of 10mA, the theoretical voltage value measured by the measuring device is:
[0072] U = I * R = 10mA * 100Ω = 1V
[0073] 2> When the circuit outputs a stable current of 200uA, the theoretical voltage value measured by the measuring device is:
[0074] U = I * R = 200uA * 100Ω = 0.02V
[0075] Given the range of the measured quantity and the full range accuracy of the measuring device, then:
[0076] 1> The full range error of the output voltage value of the measuring circuit of the measuring device is:
[0077] = FS = 10V * 0.1% = 0.01V
[0078] Assuming that the full range error of this measuring device is a positive increasing error value, then:
[0079] 2> The output voltage value of the circuit measured when the output stable current of the circuit is 10mA is:
[0080] 1V + 0.01V = 1.01V
[0081] 3> The output voltage value of the circuit measured when the output stable current of the circuit is 200uA is:
[0082] 0.02V + 0.01V = 0.03V
[0083] Then:
[0084] 1> The measured value of the circuit resistance when the output stable current of the circuit is 10mA is:
[0085] 1.01V / 10mA = 101Ω
[0086] 2> The measured value of the circuit resistance when the output stable current of the circuit is 200uA is:
[0087] 0.03V / 200uA = 150Ω
[0088] Because: the theoretical fixed resistance value of the resistance connected to the circuit is 100Ω.
[0089] Therefore: the error between the measured resistance value and the theoretical resistance value when the output stable current of the circuit is 10mA is:
[0090] 1>
[0091] The error between the measured resistance value and the theoretical resistance value when the output stable current of the circuit is 200uA is:
[0092] 2>
[0093] 3>
[0094] Therefore, it is preferred to input a large current to measure the resistance value of the real resistor, so that the measured resistance value of the real resistor is closer to the theoretical resistance value, the measurement error is smaller, and the accuracy of the measurement result is further improved.
[0095] Among them, the full-scale error refers to the deviation between the measured value and the theoretical true value of the measuring instrument at full scale (i.e. the upper limit value of the measurement range), which reflects the maximum absolute error that may occur in the entire range of the instrument.
[0096] The full-scale accuracy refers to the accuracy of the measurement result of the measuring instrument close to the true value in the entire range, which considers the error of the instrument at each measurement point in the entire range, and is a relative concept, usually expressed as a percentage. The full-scale accuracy is generally calculated by multiplying the maximum allowed error by the full-scale value and then multiplying by 100%. The formula is: full-scale accuracy = (maximum allowed error / theoretical true value (full-scale)) * 100%.
[0097] Here, the maximum allowed error is the maximum error that may occur in the instrument under specified conditions, which may be caused by various factors such as full-scale error, zero-point error, etc. The full-scale error is an important parameter for calculating the full-scale accuracy. In some cases, if the maximum allowed error is mainly determined by the full-scale error, the full-scale accuracy may be approximately equal to the full-scale relative error in value; but the full-scale error focuses on the error size of the instrument at the full-scale point; while the full-scale accuracy considers the error situation in the entire range, and can more comprehensively reflect the accuracy of the instrument measurement.
[0098] Further, after determining the encoding method and the large current measurement condition, the main controller controls the thermal resistance output card to output the resistance value of the real resistor. Before controlling the thermal resistance output card to output the resistance value of the real resistor, the calibration coefficient under the corresponding scene is generated by simulating the actual measurement environment.
[0099] Specifically, simulate the actual use or actual measurement environment, for example, insert the case, preheat, the environmental temperature is 25℃, the stable output current is 250uA, etc. measurement conditions, for any channel, a plurality of groups of simulation target resistance values are preset, an simulation target resistance value is input, and the optimal relay state combination in the channel is calculated under the corresponding simulation target resistance value. The traversal method is as follows:
[0100] Taking a resistance network of Figure 2 , for example, there are 13 real resistors in series in the circuit, except for one basic resistor, the remaining member resistors are 12, so that 2 12 member resistors can be combined to output the resistance value by the traversal algorithm, and the entire circuit output resistance value has 2 12+1 kind, the minimum resistance value of the output in the whole resistance is R min , that is, the initial circuit resistance value (R 总 ) (this initial circuit resistance value covers all resistance errors: including the basic resistance value (R0), the overall loop resistance value of the PCB board trace (represented by R PCB ), the relay resistance value (represented by R sw ), and the port connector resistance value (represented by R A )) is measured. By comparing 2 12 +1 kind of analog output resistance value and analog target resistance value, when the absolute value of the difference between the two is the smallest, that is:
[0101] =| R ref -R real |
[0102] Where, represents the minimum difference, R ref represents the analog target resistance value, and R real represents the analog output resistance value. At this time, the analog output resistance value closest to the target resistance value can be obtained, and the corresponding relay state combination is the optimal relay state combination in the channel.
[0103] Thus, a plurality of sets of analog output resistance values are measured. According to a plurality of sets of analog target resistance values and analog output resistance values, a linear equation is fitted, for example, in the actual application scenario: under the measurement conditions of inserting the case, preheating, environmental temperature 25℃, and stable output current 250uA, a plurality of data are measured: analog output resistance value 25Ω, analog target resistance value 30Ω; analog output resistance value 15Ω, analog target resistance value 20Ω, and so on. The linear relationship between the analog target resistance value and the analog output resistance value is y=x-5 (k=1, b=-5). In this application scenario, to obtain an actual output resistance value of 60Ω, the actual target resistance value given to the system should be x=y+5=60+5=65Ω.
[0104] Further, the K and B coefficients are different in different application scenarios, including different test temperatures, test methods, and power-on running time, etc. Through the configuration function of the main controller, the K and B coefficients of different channels can be written into the corresponding positions, and the main controller can use the K and B coefficients to perform pre-calculation, and then control the actual output resistance value, so as to eliminate the actual deviation caused by external influences in a software manner, and finally achieve the purpose of calibration. Specifically, in actual use, the main controller selects a corresponding output channel to output a specific actual output resistance value, the main controller calculates the actual target resistance value according to the pre-stored K and B coefficients, after obtaining the actual target resistance value, the main controller uses the member resistance value read from the corresponding channel flash according to the selection of the output channel, obtains the optimal relay combination through the traversal algorithm, and controls the relay to access the corresponding member resistance, so as to output an actual output resistance value close to the actual target resistance value.
[0105] Here, the traversal method is similar to the simulation process, that is, the resistance network output by each independent channel has 2 4N +1 kinds of resistance values, and the main controller compares the difference between the 2 4N +1 kinds of actual output resistance values and the actual target resistance value one by one, and selects the relay state combination corresponding to the minimum absolute value of the difference as the optimal relay state combination.
[0106] After obtaining the optimal relay state combination, the controller controls the switching state of the corresponding relay, outputs the corresponding resistance value, and finally achieves the purpose of calibration.
[0107] In another exemplary embodiment, based on the same inventive concept as the system, as shown in Figure 7 a matrix resistance output control system is provided, including the following steps:
[0108] S1, when power is on, measuring the measured resistance value of the base resistance and the member resistance;
[0109] S2, storing the measured resistance value to the storage unit of the corresponding channel;
[0110] S3, generating calibration coefficients of different channels by simulating the actual measurement environment, and writing the calibration coefficients into the storage unit of the corresponding channel; the generation of the calibration coefficients of different channels by simulating the actual measurement environment includes:
[0111] a plurality of groups of simulated target resistance values are preset, and the optimal relay state combination in different channels is calculated by traversing under the corresponding simulated target resistance value, and a plurality of groups of simulated output resistance values closest to the simulated target resistance value under the state are measured;
[0112] According to the plurality of groups of simulated target resistance values and simulated output resistance values, a linear equation is fitted:
[0113] y = Kx + B
[0114] Wherein, y represents analog output resistance value, x represents analog target resistance value, K, B are calibration coefficients;
[0115] S4, according to the calibration coefficient and actual output resistance value, the actual target resistance value of different channels is calculated;Also be used for according to the actual target resistance value traversal calculation obtains the optimal relay state combination in different channels, and control relay access corresponding member resistance, in turn control the output of actual output resistance value.
[0116] The above specific embodiments are detailed descriptions of the present application, which cannot be considered as limiting the specific embodiments of the present application only to these descriptions. For ordinary skilled persons in the technical field to which the present application belongs, without departing from the concept of the present application, a number of simple deductions and substitutions can be made, which should be considered as belonging to the protection scope of the present application.
Claims
1. A matrix resistance output control system characterized by comprising: The application relates to a multi-channel resistance output card, which supports multiple independent channels, each of which is configured with a resistance network, the resistance network comprising a basic resistance and multiple member resistances connected in series, each member resistance being connected or disconnected by a relay; a measurement module for measuring the actual resistance values of the basic resistance and the member resistances by inputting a large current and using an 8421 BCD coding mode, wherein the member resistances are divided into N groups according to different orders of magnitude, each group containing four member resistances, and the member resistances of each group use the 8421 BCD coding mode to realize corresponding order-of-magnitude output, three orders of magnitude of the resistance output all form intersections at the intersection point, thereby avoiding the missing of the output value of the resistance resistance value connection section; the resistance value measurement of the basic resistance comprises the following steps: disconnecting the relays of all the member resistances, connecting the basic resistance to the output end, and measuring the initial circuit resistance value at the output port, wherein the initial circuit resistance value comprises the basic resistance value, the overall loop resistance value of the PCB trace, the relay resistance value and the port connector resistance value; a calibration module for generating calibration coefficients of different channels by simulating different actual measurement environments; the calibration coefficients of different channels generated by simulating the actual measurement environment comprise the following steps: presetting multiple groups of simulated target resistance values in different application scenarios, and iteratively calculating the optimal relay state combination in different channels under the corresponding simulated target resistance values, calculating the multiple groups of simulated output resistance values closest to the simulated target resistance values under the state according to the actual resistance values of the basic resistance and the member resistances obtained by the measurement module; the different application scenarios include different test temperatures, test methods and power-on running time lengths; a linear equation is fitted according to the multiple groups of simulated target resistance values and the simulated output resistance values: y=Kx+B, wherein y represents the simulated output resistance value, x represents the simulated target resistance value, and K and B are calibration coefficients; a main controller for calculating the actual target resistance values of different channels according to the calibration coefficients and the actual output resistance values, and further for iteratively calculating the optimal relay state combination in different channels according to the actual target resistance values, and controlling the relays to connect the corresponding member resistances, thereby controlling the output of the actual output resistance value; the resistance value measurement of the member resistances comprises the following steps: on the basis of measuring the initial circuit resistance value, sequentially and individually controlling the relays to cut in each member resistance, and subtracting the resistance value measured each time from the initial circuit resistance value to obtain the actual resistance value of the corresponding member resistance; the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, and comprises the following steps: the main controller iteratively calculates the optimal relay state combination in different channels according to the actual target resistance values, 2. A matrix resistance output control system according to claim 1, wherein 3. A matrix resistance output control system according to claim 1, wherein The resistance value output by the resistor network for each independent channel is 2. 4N +1 type, the main controller compares 2 one by one 4N The optimal relay state combination is the relay state combination that corresponds to the smallest absolute value of the difference between the +1 output resistance value and the target resistance value.
4. A method for controlling the output of a matrix resistor, for use in a system as claimed in any one of claims 1 to 3, characterized in that According to a plurality of sets of analog target resistance values and analog output resistance values, a linear equation is fitted: y=Kx+B Wherein, y represents the analog output resistance value, x represents the analog target resistance value, K and B are calibration coefficients; S4, according to the calibration coefficient and the actual output resistance value, the actual target resistance value of different channels is calculated; also used for calculating the optimal relay state combination in different channels according to the actual target resistance value, and controlling the relay to access the corresponding member resistance, and then controlling the output of the actual output resistance value.
5. A method of matrix resistance output control according to claim 4, wherein The measured resistance value of the base resistance and the member resistance is measured by inputting a large current and the 8421 BCD encoding mode in the step S1.
6. A method of matrix resistance output control according to claim 5, wherein The optimal relay state combination in different channels is calculated according to the actual target resistance value, including: The output resistance of the resistor network has 2. 4N +1 type, the main controller compares 2 one by one 4N The optimal relay state combination is the relay state combination that corresponds to the smallest absolute value of the difference between the +1 output resistance value and the target resistance value.
Citation Information
Patent Citations
High-precision passive resistance generator for compensating hardware error influence
CN105741992A
Test machine calibration method, calibration device and test machine
CN114184994A