Conductivity detector calibration method and system and computer storage medium
By performing multi-point standard solution detection and temperature calibration on the conductivity detector, the theoretical value and change relationship of conductivity are determined, and the problem of large calibration error of the conductivity detector in the prior art is solved, achieving more efficient and accurate conductivity detection.
Patent Information
- Application Number
- CN202510209270.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-25
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2045-02-25
AI Technical Summary
The existing conductivity detector calibration methods have the problem that there is a large error or that the error does not meet the requirements in solutions with excessive conductivity.
By detecting N standard solutions, the temperature and conductivity detection values of each standard solution are obtained, the theoretical conductivity value is calculated and the relationship between the theoretical conductivity value changes with the detected value is determined, and calibration is performed to detect the conductivity of the liquid to be tested.
The calibration accuracy and efficiency of the conductivity detector are improved, especially in solutions with high conductivity, which reduces errors and improves the reliability of the detection results.
Smart Images

Figure CN119688791A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of sensor technology, specifically the field of liquid resistance detection, and in particular relates to a conductivity detector calibration method, system and computer storage medium. Background Art
[0002] Conductivity detectors are widely used to detect the concentration of ionized substances, and their accuracy is crucial to the accuracy of analytical results. The main purpose of calibration is to ensure that the detector can maintain good linear response and stability under different operating conditions. Through calibration, the influence of instrument drift, aging and other factors on the results can be eliminated, and the reliability and reproducibility of the measurement can be improved.
[0003] At present, the calibration of conductivity detectors usually adopts the external standard method and the standard solution method. The calibration process usually includes the following steps: first, select a suitable standard solution, the conductivity of which should cover the conductivity range of the sample to be tested; then, use the standard solution to perform conductivity detection and record the signal output; then, establish a standard curve based on the known conductivity of the standard solution and the signal intensity output by the detector, usually by drawing a relationship between the conductivity of the standard solution and the detection signal to obtain a linear or nonlinear fitting formula; finally, compare the detection signal of the sample with the standard curve to calculate the concentration of the substance to be tested.
[0004] However, the prior art has the problem that the error is still large after calibration or the error does not meet the requirement in a solution with too high conductivity. Summary of the invention
[0005] The present invention aims at the deficiencies in the prior art and provides a conductivity detector calibration method, system and computer storage medium.
[0006] In a first aspect, the present invention provides a conductivity detector calibration method, comprising:
[0007] Using the conductivity detector to be calibrated to detect N standard solutions respectively, to obtain the conductivity detection value of each standard solution; wherein the actual conductivity values of any two standard solutions among the N standard solutions are different, N≥3;
[0008] Acquiring the temperature of each standard solution when the conductivity detector to be calibrated detects N standard solutions as the first temperature;
[0009] Determining a theoretical value of the conductivity of each standard solution at the corresponding first temperature according to the actual value of the conductivity of each standard solution;
[0010] Determining a variation relationship between the conductivity theory value and the conductivity measurement value according to the conductivity measurement value and the conductivity theory value of each standard solution as a first variation relationship;
[0011] The conductivity detector to be calibrated is calibrated according to the first change relationship to detect the conductivity of the liquid to be tested.
[0012] Optionally, determining the theoretical value of the conductivity of each standard solution at the corresponding first temperature according to the actual value of the conductivity of each standard solution includes:
[0013] The theoretical value of the conductivity of each standard solution at the corresponding first temperature is calculated according to the following formula:
[0014] σ2=σ1+0.022σ1·(T1-25);
[0015] Wherein, σ2 is the theoretical value of the conductivity of the target standard solution at the corresponding first temperature; σ1 is the actual value of the conductivity of the target standard solution; and T1 is the first temperature corresponding to the target standard solution.
[0016] Optionally, the determining, according to the conductivity detection value and the conductivity theoretical value of each standard solution, a variation relationship between the conductivity theoretical value and the conductivity detection value as the first variation relationship comprises:
[0017] Construct a nonlinear function expression:
[0018] y=ax 2 +bx+c;
[0019] Where y is the conductivity first fitting value obtained based on the conductivity detection value; x is the conductivity detection value; a is x 2 The coefficient of is; b is the coefficient of x; c is the constant term;
[0020] The conductivity test value and the conductivity theoretical value of each standard solution in the N standard solutions are subjected to binomial fitting by the least square method to determine the values of a, b and c, and a nonlinear function of the determined values of a, b and c is used as the first variation relationship.
[0021] Optionally, the first aspect further includes:
[0022] The conductivity detector to be calibrated is used to detect pure water and M standard solutions respectively to obtain the conductivity detection values of pure water and each standard solution; wherein the actual conductivity values of any two standard solutions among the M standard solutions are different; M≥N;
[0023] acquiring the temperature of pure water and each standard solution when the conductivity detector to be calibrated detects pure water and M standard solutions, as a second temperature;
[0024] Determine a first conductivity fitting value of each of the pure water and the M standard solutions according to the conductivity detection value of each of the pure water and the M standard solutions and the first change relationship, and determine a conductivity re-measurement value of each of the pure water and the M standard solutions based on each conductivity first fitting value and the corresponding second temperature;
[0025] When the error between the re-measured conductivity value of each standard solution in pure water and the M standard solutions and the corresponding actual conductivity value is greater than a preset conductivity error threshold, linear fitting is performed on the re-measured conductivity values of pure water and the M standard solutions and the actual conductivity values in turn according to the actual conductivity values to obtain a second change relationship;
[0026] The conductivity detector to be calibrated is calibrated according to the second change relationship to detect the conductivity of the liquid to be tested.
[0027] Optionally, determining a first conductivity fitting value of each of the pure water and the M standard solutions according to the conductivity detection value of each of the pure water and the M standard solutions and the first change relationship, and determining a re-measured conductivity value of each of the pure water and the M standard solutions based on each conductivity first fitting value and the corresponding second temperature, comprises:
[0028] Calculate the conductivity retest value of pure water and each of the M standard solutions according to the following formula:
[0029] ;
[0030] Among them, K F is the re-measured value of the conductivity of the target standard solution in pure water or M standard solutions; y is the first fitting value of the conductivity of pure water and each of the M standard solutions obtained by the first change relationship; T2 is the second temperature corresponding to the target standard solution in pure water or M standard solutions.
[0031] Optionally, the linear fitting of the retested conductivity values of pure water and M standard solutions and the actual conductivity value is performed in sequence according to the actual conductivity value to obtain a second variation relationship, including:
[0032] Sort pure water and M standard solutions according to their actual conductivity values;
[0033] Perform linear fitting on the conductivity re-measured values and actual conductivity values of any two adjacent liquids in the sorted pure water and M standard solutions to obtain M line segments;
[0034] Connect the M line segments in sequence to obtain the second change relationship.
[0035] In a second aspect, the present invention provides a conductivity detector calibration system, comprising:
[0036] The first detection module is used to detect N standard solutions respectively using the conductivity detector to be calibrated to obtain the conductivity detection value of each standard solution; wherein the actual conductivity values of any two standard solutions among the N standard solutions are different, and N≥3;
[0037] A first acquisition module is used to acquire the temperature of each standard solution when the conductivity detector to be calibrated detects N standard solutions, as a first temperature;
[0038] A first determination module, used to determine a theoretical value of conductivity of each standard solution at a corresponding first temperature according to an actual value of conductivity of each standard solution;
[0039] A second determination module is used to determine a variation relationship between the theoretical conductivity value and the conductivity detection value according to the conductivity detection value and the conductivity theoretical value of each standard solution, as a first variation relationship;
[0040] The first calibration module is used to calibrate the conductivity detector to be calibrated according to the first change relationship to detect the conductivity of the liquid to be tested.
[0041] Optionally, the first detection module is further used to detect the pure water and M standard solutions respectively using the conductivity detector to be calibrated to obtain the conductivity detection values of the pure water and each standard solution; wherein the actual conductivity values of any two standard solutions among the M standard solutions are different; M≥N;
[0042] The first acquisition module is further used to acquire the temperature of pure water and each standard solution when the conductivity detector to be calibrated detects pure water and M standard solutions, as the second temperature.
[0043] Optionally, the second aspect further includes:
[0044] A third determination module is used to determine a first-time conductivity fitting value of each of the pure water and the M standard solutions according to the conductivity detection value of each of the pure water and the M standard solutions and the first change relationship, and determine a re-measured conductivity value of each of the pure water and the M standard solutions based on each conductivity first-time fitting value and the corresponding second temperature;
[0045] A linear fitting module is used to perform linear fitting on the remeasured conductivity values of pure water and the M standard solutions and the actual conductivity values in turn according to the actual conductivity values, when the error between the remeasured conductivity value of each standard solution in pure water and the M standard solutions and the corresponding actual conductivity value is greater than a preset conductivity error threshold, to obtain a second change relationship;
[0046] The second calibration module is used to calibrate the conductivity detector to be calibrated according to the second change relationship to detect the conductivity of the liquid to be tested.
[0047] In a third aspect, the present invention provides a computer-readable storage medium for storing a computer program; when the computer program is executed by a processor, the steps of the conductivity detector calibration method described in the first aspect are implemented.
[0048] The present invention provides a conductivity detector calibration method, system and computer storage medium. The method performs two calibrations. When the first calibration result does not meet the preset requirements, a second data correction is performed directly on the basis of the first calibration data, thereby improving the calibration efficiency and detection accuracy of the conductivity detector. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solution of the present invention, the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0050] Figure 1 A schematic diagram of a calibration process in a conductivity detector calibration method provided by an embodiment of the present invention;
[0051] Figure 2 A schematic diagram of a secondary calibration process in a conductivity detector calibration method provided by an embodiment of the present invention;
[0052] Figure 3 A schematic diagram of the structure of a conductivity detector calibration system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0053] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. Example 1
[0054] like Figure 1 As shown, this embodiment provides a conductivity detector calibration method, comprising:
[0055] Step 101, using a conductivity detector to be calibrated to detect N standard solutions respectively, to obtain a conductivity detection value of each standard solution; wherein the actual conductivity values of any two standard solutions among the N standard solutions are different, and N≥3.
[0056] Step 102: acquiring the temperature of each standard solution when the conductivity detector to be calibrated detects N standard solutions, as the first temperature.
[0057] Step 103: determining the theoretical value of the conductivity of each standard solution at the corresponding first temperature according to the actual value of the conductivity of each standard solution.
[0058] In this step, illustratively, the theoretical value of the conductivity of each standard solution at the corresponding first temperature is calculated according to the following formula:
[0059] σ2=σ1+0.022σ1·(T1-25).
[0060] Wherein, σ2 is the theoretical value of the conductivity of the target standard solution at the corresponding first temperature; σ1 is the actual value of the conductivity of the target standard solution; and T1 is the first temperature corresponding to the target standard solution.
[0061] Step 104 , determining a variation relationship between the theoretical conductivity value and the conductivity detection value according to the conductivity detection value and the conductivity theoretical value of each standard solution, as a first variation relationship.
[0062] Exemplarily, this step includes:
[0063] Construct a nonlinear function expression:
[0064] y=ax 2 +bx+c.
[0065] Where y is the conductivity first fitting value obtained based on the conductivity detection value; x is the conductivity detection value; a is x 2 is the coefficient of ; b is the coefficient of x; c is the constant term.
[0066] The conductivity test value and the conductivity theoretical value of each standard solution in the N standard solutions are subjected to binomial fitting by the least square method to determine the values of a, b and c, and a nonlinear function of the determined values of a, b and c is used as the first variation relationship.
[0067] Step 105: calibrate the conductivity detector to be calibrated according to the first change relationship to detect the conductivity of the liquid to be tested.
[0068] If the first calibration result does not meet the preset requirements, as further described below, a second data correction may be performed based on the first calibration data to improve the calibration efficiency and detection accuracy of the conductivity detector.
[0069] For example, Figure 2 As shown, the conductivity detector calibration method provided in this embodiment also includes:
[0070] Step 106, using the conductivity detector to be calibrated to detect the pure water and the M standard solutions respectively, to obtain the conductivity detection values of the pure water and each standard solution; wherein the actual conductivity values of any two standard solutions among the M standard solutions are different; M ≥ N. In this embodiment, M and N are both positive integers.
[0071] Exemplarily, in this step, M>N is preferably satisfied, and the actual conductivity value of the Mth standard solution used in step 106 is greater than the actual conductivity value of the Nth standard solution used in step 101, thereby confirming whether the measurement error of the high conductivity solution meets the requirements.
[0072] Step 107 , obtaining the temperature of pure water and each standard solution when the conductivity detector to be calibrated detects pure water and M standard solutions, as the second temperature.
[0073] Step 108, determining a first-time fitted value of the conductivity of pure water and each of the M standard solutions according to the conductivity detection value of each of the pure water and the M standard solutions and the first change relationship, and determining a re-measured value of the conductivity of pure water and each of the M standard solutions based on each first-time fitted value of the conductivity and the corresponding second temperature.
[0074] Exemplarily, the conductivity retest value of pure water and each of the M standard solutions is calculated according to the following formula:
[0075] .
[0076] Among them, K F is the re-measured value of the conductivity of the target standard solution in pure water or M standard solutions; y is the first fitting value of the conductivity of pure water and each of the M standard solutions obtained by the first change relationship; T2 is the second temperature corresponding to the target standard solution in pure water or M standard solutions.
[0077] Step 109, when the error between the remeasured conductivity value of pure water and each of the M standard solutions and the corresponding actual conductivity value is greater than a preset conductivity error threshold, linear fitting is performed on the remeasured conductivity values of pure water and the M standard solutions and the actual conductivity values in turn according to the size of the actual conductivity values to obtain a second change relationship.
[0078] Exemplarily, this step includes:
[0079] Sort pure water and M standard solutions according to their actual conductivity values.
[0080] Linear fitting is performed on the re-measured conductivity values and actual conductivity values of any two adjacent liquids in the sorted pure water and M standard solutions to obtain M line segments.
[0081] Connect the M line segments in sequence to obtain the second change relationship.
[0082] Step 1010: calibrate the conductivity detector to be calibrated according to the second change relationship to detect the conductivity of the liquid to be tested.
[0083] In order to make the solution of the present invention clearer, specific examples are further disclosed in the embodiments of the present invention.
[0084] Let a=0, b=1, c=0, and the nonlinear function y=ax of the first variation relationship 2 +bx+c initialization.
[0085] Prepare pure water (<100us / ms) for cleaning the conductivity detection circulation cell, and three standard solutions whose actual conductivity values are 1.413ms / cm, 12.88ms / cm and 80ms / cm, respectively, that is, N=3 in step 101, the actual conductivity values of any two standard solutions among the three standard solutions are different, the three standard solutions are all standard products, and the standard solution adopts HANNA standard buffer solution; the actual conductivity value of the standard solution in this embodiment refers to the conductivity value of the standard solution at the standard reference temperature (25°C).
[0086] After pure water is passed through the conductivity detection flow cell for cleaning, a standard solution with an actual conductivity value of 1.413 ms / cm (hereinafter referred to as the 1.413 ms / cm standard solution) is passed through the flow cell to observe the conductivity value. After the conductivity measurement value tends to be stable, the conductivity detection value of the 1.413 ms / cm standard solution of the conductivity detector to be calibrated and the temperature T1 of the current standard solution are recorded (step 101) and the theoretical conductivity value of the current standard solution at the temperature T1 is calculated according to σ2=1413·(1+(T1-25)·0.022) (step 103); the calculation result of the conductivity detection value (i) of the 1.413 ms / cm standard solution of the conductivity detector to be calibrated (for example, 34.6) and the theoretical conductivity value (i) (1413·(1+(T1-25)·0.022)=for example, 1357.0452) is taken as the first data point.
[0087] After pure water is passed through the conductivity detection flow cell for cleaning, a standard solution with an actual conductivity value of 12.88 ms / cm (hereinafter referred to as the 12.88 ms / cm standard solution) is passed through, and the conductivity value is observed. After the conductivity measurement value tends to be stable, the conductivity detection value of the conductivity detector to be calibrated for the 12.88 ms / cm standard solution (step 101) and the temperature T2 of the current standard solution are recorded (step 102), and the theoretical conductivity value of the current standard solution at the temperature T2 is calculated according to σ2=12880·(1+(T2-25)·0.022); the calculation result of the conductivity detection value (ii) of the conductivity detector to be calibrated for the 12.88 ms / cm standard solution (e.g., 296) and the theoretical conductivity value (ii) (12880·(1+(T2-25)·0.022)=e.g., 12369.952) is taken as the second data point.
[0088] After pure water is passed through the conductivity detection flow cell for cleaning, a standard solution with an actual conductivity value of 80 ms / cm (hereinafter referred to as the 80 ms / cm standard solution) is passed through, and the conductivity value is observed. After the conductivity measurement value tends to be stable, the conductivity detection value of the conductivity detector to be calibrated for the 80 ms / cm standard solution (step 101) and the temperature T3 of the current standard solution are recorded (step 102), and the theoretical conductivity value of the current standard solution at the temperature T3 is calculated according to σ2=80000·(1+(T3-25)·0.022); the conductivity detection value (iii) of the conductivity detector to be calibrated for the 80 ms / cm standard solution (e.g., 1638) and the calculated result of the theoretical conductivity value (iii) (80000·(1+(T3-25)·0.022)=e.g., 76832) are taken as the third data point.
[0089] Use Excel to perform binomial fitting on the three data points using the least squares method (set the formula to 5 decimal places), obtain the constants a, b and c in the first calibration fitting formula, and write them into the first calibration fitting formula to obtain the first change relationship, that is, the curve y=0.00368x 2 +40.91318x-62.939 (step 104) to complete the first calibration of the conductivity detector (step 105).
[0090] The temperature compensation is set to 2.2%, and pure water (actual conductivity value <100us / ms) and four standard solutions with actual conductivity values of 1.413ms / cm, 12.88ms / cm, 80ms / cm and 189.3ms / cm (3mol / L sodium chloride solution) are prepared. The four standard solutions are all standard products, that is, M=4 in step 106, and the actual conductivity values of any two standard solutions among the four standard solutions are different, and the actual conductivity value of the fourth standard solution used in step 106 is greater than the actual conductivity value of the third standard solution used in step 101.
[0091] In addition, in this embodiment, three of the four standard solutions used in step 106 are the same as the three standard solutions used in step 101, that is, three standard solutions with actual conductivity values of 1.413 ms / cm, 12.88 ms / cm and 80 ms / cm are used in both step 106 and step 101. However, it can be imagined that a standard solution different from that in step 101 can be used in step 106 for subsequent retesting and secondary calibration steps.
[0092] Pure water is passed through the conductivity detection circulation pool for cleaning until it is balanced. After the conductivity measurement value tends to be stable, the conductivity of the pure water is detected using the conductivity detector after the first calibration (step 106), and the current pure water temperature T4 (step 107) and the conductivity re-measurement value data (step 108) are recorded to obtain the fourth data point consisting of the pure water conductivity re-measurement value (iv) and the pure water conductivity actual value (0.003ms / cm).
[0093] The calculation method of the conductivity re-measurement value is as follows: Substitute the conductivity detection value measured by the conductivity detector after the first calibration after the pure water is passed into the variable x of the first calibration fitting formula. For example, the first calibration fitting formula y=0.00368x obtained in the above calibration step 2 +40.91318x-62.939, y is calculated, y represents the conductivity of the liquid at the current pure water or standard solution temperature without temperature compensation, and then according to the temperature compensation formula σ2=σ1+α·σ1·(T2-25), the temperature compensation is set to 2.2%, so α=0.022, the current standard solution temperature T4 is substituted into T2 in the formula, y is calculated and substituted into σ2, so as to obtain σ1, σ1 is the conductivity re-measurement value obtained after temperature compensation calculation of the conductivity first fitting value. Thus, the above formula is obtained:
[0094] .
[0095] It can be seen that the conductivity re-measurement value is calculated by fitting the conductivity measurement value measured by the conductivity detector (after the first calibration) after the first calibration and temperature compensation. If the first calibration fitting result is ideal, the conductivity re-measurement value should be close to the actual conductivity value.
[0096] A standard solution with an actual conductivity value of 1.413 ms / cm is introduced into the circulation cell, and the conductivity value is observed. After the conductivity measurement value tends to be stable, the conductivity of the current standard solution is detected using the conductivity detector after the first calibration (step 106), and the temperature T5 of the current standard solution (step 107) and the conductivity re-measurement value (step 108) are recorded to obtain a fifth data point consisting of the conductivity re-measurement value (v) and the actual conductivity value of the standard solution introduced, 1.413 ms / cm.
[0097] After pure water is passed through the conductivity detection circulation pool for cleaning, a standard solution with an actual conductivity value of 12.88 ms / cm is passed through, and the conductivity value is observed. After the conductivity measurement value tends to be stable, the conductivity of the current standard solution is detected using the conductivity detector after the first calibration (step 106), and the temperature T6 of the current standard solution (step 107) and the conductivity re-measurement value (step 108) are recorded to obtain the sixth data point consisting of the conductivity re-measurement value (vi) and the actual conductivity value of the standard solution passed through, 12.88 ms / cm.
[0098] After pure water is passed through the conductivity detection flow cell for cleaning, a standard solution with an actual conductivity value of 80 ms / cm is passed through, and the conductivity value is observed. After the conductivity measurement value tends to be stable, the conductivity of the current standard solution is detected using the conductivity detector after the first calibration (step 106), and the temperature T7 of the current standard solution (step 107) and the conductivity re-measurement value (step 108) are recorded to obtain the seventh data point consisting of the conductivity re-measurement value (vii) and the actual conductivity value of the standard solution passed through 80 ms / cm;
[0099] After pure water is passed through the conductivity detection circulation pool for cleaning, a standard solution with an actual conductivity value of 189.3 ms / cm is passed through, and the conductivity value is observed. After the conductivity measurement value tends to be stable, the conductivity of the current standard solution is detected using the conductivity detector after the first calibration (step 106), and the temperature T8 of the current standard solution (step 107) and the conductivity re-measurement value (step 108) are recorded to obtain the eighth data point consisting of the conductivity re-measurement value (viii) and the actual conductivity value of the standard solution passed through, 189.3 ms / cm.
[0100] If the above re-measured values after the first calibration are ideal, the second calibration coefficient fitting step below can be ignored, and the conductivity calibration is successful. Exemplarily, the above re-measured values after the first calibration are ideal, which means that the errors of the five conductivity re-measured value data from the fourth to the eighth data points relative to the actual conductivity values of pure water and the four standard solutions are within ±2%.
[0101] If the re-measured values are not ideal after the first calibration (the error exceeds ±2%), it is necessary to continue with the second calibration coefficient fitting step:
[0102] Assume that the second calibration fitting formula is Y=kX+d, X represents the conductivity remeasurement value data (data (iv), (v), (vi), (vi), (vii), (vii)); Y represents the conductivity quadratic fitting value obtained based on the conductivity remeasurement value; the second calibration value initialization: k0=1, d0=0, k1=1, d1=0, k2=1, d2=0, k3=1, d3=0. Combining the above, five data points are obtained: (conductivity remeasurement value iv, actual value of pure water conductivity 3), (conductivity remeasurement value v, 1413), (conductivity remeasurement value vi, 12880), (conductivity remeasurement value vi, 80000), (conductivity remeasurement value vi, 189300). Linear fitting is performed in sections, i.e. (conductivity retest value ⅳ, actual value of pure water conductivity 3) and (conductivity retest value ⅴ, 1413) are linearly fitted to obtain k0 and d0; (conductivity retest value ⅴ, 1413) and (conductivity retest value ⅵ, 12880) are linearly fitted to obtain k1 and d1; (conductivity retest value ⅵ, 12880) and (conductivity retest value ⅶ, 80000) are linearly fitted to obtain k2 and d2; (conductivity retest value ⅶ, 80000) and (conductivity retest value ⅶi, 189300) are linearly fitted to obtain k3 and d3. (The k value range is around 1, and the calibration data may be incorrect if the deviation is large).
[0103] The values of k0 and d0, k1 and d1, k2 and d2, and k3 and d3 are written into the conductivity second calibration fitting formula to complete the second calibration of the conductivity detector.
[0104] In summary, this embodiment provides a conductivity detector calibration method, and the calibration process can be completed in two calibrations. If the error between the conductivity re-measured value and the actual conductivity value after the first calibration is within a preset error (e.g., ±2%), the secondary calibration step can be omitted. The conductivity detection value of the first calibration and the conductivity theoretical value at the current solution temperature are used as the first fitting data points for nonlinear calibration (e.g., binomial fitting). After the first calibration, the conductivity re-measured value is obtained by re-measurement. The re-measured value is the value calculated after the measurement value is corrected by the first fitting formula and temperature compensation. If the error between the re-measured value and the actual conductivity value exceeds the preset error (e.g., ±2%), the re-measured value and the actual conductivity value are used as the data points for the second fitting for secondary calibration, such as segmented (e.g., four-segment) linear calibration, to improve the calibration efficiency and detection accuracy of the conductivity detector. Example 2
[0105] Based on the same inventive concept as Example 1, this embodiment provides a conductivity detector calibration system. Since the principle of solving the problem by this system is similar to the aforementioned conductivity detector calibration method, the implementation of this system can refer to the implementation of the conductivity detector calibration method.
[0106] like Figure 3 As shown, a conductivity detector calibration system comprises:
[0107] The first detection module 10 is used to detect N standard solutions respectively using the conductivity detector to be calibrated to obtain the conductivity detection value of each standard solution; wherein the actual conductivity values of any two standard solutions among the N standard solutions are different, and N≥3.
[0108] The first acquisition module 20 is used to acquire the temperature of each standard solution when the conductivity detector to be calibrated detects N standard solutions, as the first temperature.
[0109] The first determination module 30 is used to determine the theoretical value of the conductivity of each standard solution at the corresponding first temperature according to the actual value of the conductivity of each standard solution.
[0110] The second determination module 40 is used to determine the variation relationship between the theoretical conductivity value and the conductivity detection value according to the conductivity detection value and the conductivity theoretical value of each standard solution, as a first variation relationship.
[0111] The first calibration module 50 is used to calibrate the conductivity detector to be calibrated according to the first change relationship to detect the conductivity of the liquid to be tested.
[0112] Exemplarily, the first determining module includes:
[0113] The first calculation unit is used to calculate the theoretical value of the conductivity of each standard solution at the corresponding first temperature according to the following formula:
[0114] σ2=σ1+0.022σ1·(T1-25).
[0115] Wherein, σ2 is the theoretical value of the conductivity of the target standard solution at the corresponding first temperature; σ1 is the actual value of the conductivity of the target standard solution; and T1 is the first temperature corresponding to the target standard solution.
[0116] Exemplarily, the second determining module includes:
[0117] Building blocks for constructing nonlinear function expressions:
[0118] y=ax 2 +bx+c.
[0119] Where y is the conductivity first fitting value obtained based on the conductivity detection value; x is the conductivity detection value; a is x 2 is the coefficient of ; b is the coefficient of x; c is the constant term.
[0120] The conductivity test value and the conductivity theoretical value of each standard solution in the N standard solutions are subjected to binomial fitting by the least square method to determine the values of a, b and c, and a nonlinear function of the determined values of a, b and c is used as the first variation relationship.
[0121] Exemplarily, the first detection module is also used to use the conductivity detector to be calibrated to detect pure water and M standard solutions respectively to obtain conductivity detection values of pure water and each standard solution; wherein the actual conductivity values of any two standard solutions among the M standard solutions are different; M≥N.
[0122] The first acquisition module is further used to acquire the temperature of pure water and each standard solution when the conductivity detector to be calibrated detects pure water and M standard solutions, as the second temperature.
[0123] Illustratively, the conductivity detector calibration system provided in this embodiment further includes:
[0124] The third determination module is used to determine the first-time fitting value of the conductivity of each standard solution in pure water and the M standard solutions according to the conductivity detection value of each standard solution in pure water and the M standard solutions and the first change relationship, and determine the re-measured conductivity value of each standard solution in pure water and the M standard solutions based on each conductivity first-time fitting value and the corresponding second temperature.
[0125] The linear fitting module is used to perform linear fitting on the remeasured conductivity values of pure water and the M standard solutions and the actual conductivity values in turn according to the actual conductivity values, when the error between the remeasured conductivity value of each standard solution in pure water and the M standard solutions and the corresponding actual conductivity value is greater than a preset conductivity error threshold, to obtain a second change relationship.
[0126] The second calibration module is used to calibrate the conductivity detector to be calibrated according to the second change relationship to detect the conductivity of the liquid to be tested.
[0127] Exemplarily, the third determining module includes:
[0128] The second calculation unit is used to calculate the conductivity re-measurement value of pure water and each of the M standard solutions according to the following formula:
[0129] .
[0130] Among them, K F is the re-measured value of the conductivity of the target standard solution in pure water or M standard solutions; y is the first fitting value of the conductivity of pure water and each of the M standard solutions obtained by the first change relationship; T2 is the second temperature corresponding to the target standard solution in pure water or M standard solutions.
[0131] Exemplarily, the linear fitting module includes:
[0132] The sorting unit is used to sort the pure water and M standard solutions according to the actual values of the conductivity.
[0133] The second fitting unit is used to perform linear fitting on the re-measured conductivity values and actual conductivity values of any two adjacent liquids in the sorted pure water and the M standard solutions to obtain M line segments.
[0134] The third fitting unit is used to connect the M line segments in sequence to obtain a second change relationship.
[0135] For more specific working processes of the above modules, please refer to the corresponding contents disclosed in Example 1, which will not be repeated here. Example 3
[0136] This embodiment provides a computer device, including a processor and a memory; wherein the processor implements the steps of the conductivity detector calibration method described in Embodiment 1 when executing a computer program stored in the memory.
[0137] For more specific details of the above method, please refer to the corresponding contents disclosed in Example 1, which will not be repeated here. Example 4
[0138] This embodiment provides a computer-readable storage medium for storing a computer program; when the computer program is executed by a processor, the steps of the conductivity detector calibration method described in Embodiment 1 are implemented.
[0139] For more specific details of the above method, please refer to the corresponding contents disclosed in Example 1, which will not be repeated here. Example 5
[0140] This embodiment provides a computer program product, including computer executable instructions or a computer program. When the computer executable instructions or the computer program are executed by a processor, the steps of the conductivity detector calibration method described in Embodiment 1 are implemented.
[0141] For more specific details of the above method, please refer to the corresponding contents disclosed in Example 1, which will not be repeated here.
[0142] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the systems, devices, storage media, and computer program products disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0143] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention or certain parts of the embodiments.
[0144] In some embodiments, computer executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.
[0145] As an example, computer-executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file storing other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).
[0146] As an example, computer executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed at multiple sites and interconnected by a communication network.
[0147] The present invention has been described in detail above in conjunction with specific implementations and exemplary examples, but these descriptions cannot be understood as limiting the present invention. Those skilled in the art understand that, without departing from the spirit and scope of the present invention, a variety of equivalent substitutions, modifications or improvements may be made to the technical solution of the present invention and its implementation methods, all of which fall within the scope of the present invention. The scope of protection of the present invention shall be subject to the attached claims.
Claims
1. A conductivity detector calibration method, characterized in that: include: Using the conductivity detector to be calibrated to detect N standard solutions respectively, to obtain the conductivity detection value of each standard solution; wherein the actual conductivity values of any two standard solutions among the N standard solutions are different, N≥3; Acquiring the temperature of each standard solution when the conductivity detector to be calibrated detects N standard solutions as the first temperature; Determining a theoretical value of the conductivity of each standard solution at the corresponding first temperature according to the actual value of the conductivity of each standard solution; Determining a variation relationship between the conductivity theory value and the conductivity measurement value according to the conductivity measurement value and the conductivity theory value of each standard solution as a first variation relationship; The conductivity detector to be calibrated is calibrated according to the first change relationship to detect the conductivity of the liquid to be tested.
2. The conductivity detector calibration method according to claim 1, characterized in that: Determining the theoretical conductivity value of each standard solution at the corresponding first temperature according to the actual conductivity value of each standard solution includes: The theoretical value of the conductivity of each standard solution at the corresponding first temperature is calculated according to the following formula: σ2=σ1+0.022σ1·(T1-25); Wherein, σ2 is the theoretical value of the conductivity of the target standard solution at the corresponding first temperature; σ1 is the actual value of the conductivity of the target standard solution; and T1 is the first temperature corresponding to the target standard solution.
3. The conductivity detector calibration method according to claim 1, characterized in that: The step of determining the variation relationship between the theoretical conductivity value and the conductivity detection value according to the conductivity detection value and the conductivity theoretical value of each standard solution as a first variation relationship includes: Construct a nonlinear function expression: y=ax 2 +bx+c; Where y is the conductivity first fitting value obtained based on the conductivity detection value; x is the conductivity detection value; a is x 2 The coefficient of is; b is the coefficient of x; c is the constant term; The conductivity test value and the conductivity theoretical value of each standard solution in the N standard solutions are subjected to binomial fitting by the least square method to determine the values of a, b and c, and a nonlinear function of the determined values of a, b and c is used as the first variation relationship.
4. The conductivity detector calibration method according to claim 3, characterized in that: Also includes: The conductivity detector to be calibrated is used to detect pure water and M standard solutions respectively to obtain the conductivity detection values of pure water and each standard solution; wherein the actual conductivity values of any two standard solutions among the M standard solutions are different; M≥N; acquiring the temperature of pure water and each standard solution when the conductivity detector to be calibrated detects pure water and M standard solutions, as a second temperature; Determine a first conductivity fitting value of each of the pure water and the M standard solutions according to the conductivity detection value of each of the pure water and the M standard solutions and the first change relationship, and determine a conductivity re-measurement value of each of the pure water and the M standard solutions based on each conductivity first fitting value and the corresponding second temperature; When the error between the re-measured conductivity value of each standard solution in pure water and the M standard solutions and the corresponding actual conductivity value is greater than a preset conductivity error threshold, linear fitting is performed on the re-measured conductivity values of pure water and the M standard solutions and the actual conductivity values in turn according to the actual conductivity values to obtain a second change relationship; The conductivity detector to be calibrated is calibrated according to the second change relationship to detect the conductivity of the liquid to be tested.
5. The conductivity detector calibration method according to claim 4, characterized in that: The method comprises: determining a first conductivity fitting value of each of the pure water and the M standard solutions according to the conductivity detection value of each of the pure water and the M standard solutions and the first change relationship, and determining a conductivity re-measurement value of each of the pure water and the M standard solutions based on each conductivity first fitting value and the corresponding second temperature, including: Calculate the conductivity retest value of pure water and each of the M standard solutions according to the following formula: ; Among them, K F is the re-measured value of the conductivity of the target standard solution in pure water or M standard solutions; y is the first fitting value of the conductivity of pure water and each of the M standard solutions obtained by the first change relationship; T2 is the second temperature corresponding to the target standard solution in pure water or M standard solutions.
6. The conductivity detector calibration method according to claim 4, characterized in that: According to the actual value of the conductivity, linear fitting is performed on the re-measured conductivity values of pure water and M standard solutions and the actual value of the conductivity in turn to obtain a second change relationship, including: Sort pure water and M standard solutions according to their actual conductivity values; Perform linear fitting on the conductivity re-measured values and actual conductivity values of any two adjacent liquids in the sorted pure water and M standard solutions to obtain M line segments; Connect the M line segments in sequence to obtain the second change relationship.
7. A conductivity detector calibration system, characterized in that: include: The first detection module is used to detect N standard solutions respectively using the conductivity detector to be calibrated to obtain the conductivity detection value of each standard solution; wherein the actual conductivity values of any two standard solutions among the N standard solutions are different, and N≥3; A first acquisition module is used to acquire the temperature of each standard solution when the conductivity detector to be calibrated detects N standard solutions, as a first temperature; A first determination module, used to determine a theoretical value of conductivity of each standard solution at a corresponding first temperature according to an actual value of conductivity of each standard solution; A second determination module is used to determine a variation relationship between the theoretical conductivity value and the conductivity detection value according to the conductivity detection value and the conductivity theoretical value of each standard solution, as a first variation relationship; The first calibration module is used to calibrate the conductivity detector to be calibrated according to the first change relationship to detect the conductivity of the liquid to be tested.
8. The conductivity detector calibration system according to claim 7, characterized in that: The first detection module is further used to detect the pure water and M standard solutions respectively using the conductivity detector to be calibrated to obtain the conductivity detection values of the pure water and each standard solution; wherein the actual conductivity values of any two standard solutions among the M standard solutions are different; M≥N; The first acquisition module is further used to acquire the temperature of pure water and each standard solution when the conductivity detector to be calibrated detects pure water and M standard solutions, as the second temperature.
9. The conductivity detector calibration system according to claim 8, characterized in that: Also includes: A third determination module is used to determine a first-time conductivity fitting value of each of the pure water and the M standard solutions according to the conductivity detection value of each of the pure water and the M standard solutions and the first change relationship, and determine a re-measured conductivity value of each of the pure water and the M standard solutions based on each conductivity first-time fitting value and the corresponding second temperature; A linear fitting module is used to perform linear fitting on the remeasured conductivity values of pure water and the M standard solutions and the actual conductivity values in turn according to the actual conductivity values, when the error between the remeasured conductivity value of each standard solution in pure water and the M standard solutions and the corresponding actual conductivity value is greater than a preset conductivity error threshold, to obtain a second change relationship; The second calibration module is used to calibrate the conductivity detector to be calibrated according to the second change relationship to detect the conductivity of the liquid to be tested.
10. A computer-readable storage medium, characterized in that: Used to store a computer program; when the computer program is executed by a processor, the steps of the conductivity detector calibration method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Achieving method for conductivity measurement instrument without detecting front test block calibration
CN103293506A
Detection system and detection method for water quality conductivity
CN109187657A
Temperature compensation algorithm of water quality conductivity sensor
CN115389567A
Cited By
Liquid conductivity measuring method and system based on sensor
CN120820598A
Solution detection system of a hydroponic device and control method thereof
CN122505971A