Thermal resistor analog signal generation method and device, computer equipment and storage medium
By calculating the thermal resistance value and using the thermal resistance module to output the signal, the problems of poor stability, low accuracy and complex operation of the thermal resistance analog signal are solved, and efficient and accurate thermal resistance analog signal output is achieved.
Patent Information
- Application Number
- CN202411079201.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-07
- Publication Date
- 2024-11-22
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the prior art, there are problems such as poor stability, low accuracy and complex operation inconvenient occurrence of thermal resistance analog signals.
By inputting the set temperature value, the thermal resistance value data is calculated based on the correspondence between the temperature of the thermal resistance and the resistance value, and the analog signal is output using the thermoresis module. The resistance box or thermoresis simulation card is used as the thermoresis module, combining multiple Each input and output channel performs efficient analog signal output, and the analog signal is corrected by correction values to improve accuracy.
It realizes high stability and high-precision output of thermal resistance analog signals, simplifies the operation process, and improves efficiency and accuracy.
Smart Images

Figure CN118999819A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of thermal resistor signal simulation, and in particular to a method, device, computer equipment and storage medium for generating thermal resistor simulation signals. Background Art
[0002] At present, there are mainly two forms of temperature signal acquisition in DCS (Distributed Control System), collecting thermal resistors or collecting thermocouple signals; the basic acquisition principle is to convert the collected signal into a voltage signal and then convert it into digital processing through A / D conversion; when debugging the DCS temperature acquisition module, including the Pt100 / Pt1000 thermal resistor acquisition module and the thermocouple acquisition module, the common practice is to use a signal source, such as using a resistance box to directly connect the DCS acquisition module to achieve the simulation of the four-wire thermal resistor signal. A more advanced method is to use virtual instrument technology to use a dedicated temperature simulation module, such as a Pt100 thermal resistor simulation module, to perform signal simulation.
[0003] In the related art, there are generally several methods for simulating the temperature signal of a thermal resistor: one is to directly change the resistance value of the resistor box manually, which is time-consuming and labor-intensive, with low precision, low efficiency, or complex and inconvenient operation; the second is to use mature special instruments, such as the Fluke series signal generator, etc. This method is not accurate and has average stability; the third is to use a thermal resistor simulation card to superimpose an external circuit, which is generally embodied as a part of the entire test platform or a special device, especially in the field of nuclear power testing, based on PXI (PCI extensions for Instrumentation, PCI extensions for instrument systems) equipment combined with an external circuit to simulate the resistance value. This type of device is generally complex in structure and inconvenient to operate. Summary of the invention
[0004] In view of this, the present application provides a method, device, computer equipment and storage medium for generating a thermal resistor analog signal to solve or improve the problems of poor stability, low accuracy and complex and inconvenient operation of generating a thermal resistor analog signal.
[0005] On the one hand, the present application provides a method for generating a thermal resistor analog signal, including being applied to a thermal resistor analog signal generating device, comprising the steps of:
[0006] Input a set temperature value through an input channel, wherein the set temperature value is a temperature value to be simulated;
[0007] According to the corresponding relationship between the temperature and the resistance value of the selected thermal resistor, the thermal resistor value data corresponding to the set temperature value is calculated;
[0008] The calculated thermal resistance value data is input into the thermal resistance module, and the thermal resistance value analog signal is output through the output channel.
[0009] In an optional implementation, the thermal resistor module is a resistor box or a thermal resistor simulation card.
[0010] In an optional implementation, the type of the thermal resistor is any one of Pt100, Pt500 and Pt1000.
[0011] In an optional embodiment, the type of the thermal resistor is Pt100, and the corresponding relationship between its temperature and resistance value is:
[0012] In the range of 0℃~850℃:
[0013] R t =R0(1+A*t+B*t 2 )
[0014] -200℃~0℃ range:
[0015] R t =R0[1+A*t+B*t 2 +C(t-100)*t 3 ]
[0016] Among them, R t is the resistance at temperature t; R0 is the resistance at t = 0 °C; A, B, C are constants, A = 3.9083 × 10 -3 ℃ -1 , B = -5.775 × 10 -7 ℃ -2 , C = -4.183 × 10 -12 ℃ -4 .
[0017] In an optional embodiment, the input channel and the output channel are both provided in plurality and correspond one to one.
[0018] In an optional implementation, the thermal resistance value analog signal output by the thermal resistance module is corrected using the correction value before being output.
[0019] In an optional implementation, the correction value is determined by the temperature, humidity and cable characteristic factors of the environment where the thermal resistance module is located.
[0020] In the second aspect, the present application also provides a thermal resistor simulation signal generating device, comprising an input module, an operation module and a thermal resistor module; the input module is provided with at least one input channel for inputting a set temperature value, wherein the set temperature value is the temperature value to be simulated; the operation module is used to calculate the thermal resistor value data corresponding to the set temperature value according to the set temperature value input by the input module and the correspondence between the temperature and the resistance value of the selected thermal resistor; the thermal resistor module is used to output a thermal resistor value simulation signal through an output channel according to the thermal resistor value data output by the operation module, wherein the output channel is provided with at least one.
[0021] In a third aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores computer instructions; the memory and the processor are communicatively connected to each other, and the processor executes the resistance simulation signal generating method described in any one of the embodiments of the first aspect by executing the computer instructions.
[0022] In this embodiment, because the computer device can execute the computer instructions of the resistance simulation signal generating method in the first aspect, it has the same effect as the resistance simulation signal generating method, and will not be described in detail here.
[0023] In a fourth aspect, the present application further provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to enable a computer to execute the resistance simulation signal generating method described in any one of the embodiments of the first aspect above.
[0024] In this embodiment, because the computer-readable storage medium stores computer instructions for causing a computer to execute the resistance simulation signal generating method in the first aspect, it has the same effect as the resistance simulation signal generating method and is not described in detail here.
[0025] In a fifth aspect, the present application further provides a computer program product, including computer instructions, and the computer instructions are used to enable a computer to execute the resistance simulation signal generating method described in any one of the embodiments of the first aspect above.
[0026] In this embodiment, because the computer program product includes computer instructions for causing a computer to execute the resistance simulation signal generating method in the first aspect, it has the same effect as the resistance simulation signal generating method, and will not be described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the related technologies, the drawings required for use in the specific implementation methods or the related technical descriptions will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0028] Figure 1 A flow chart of a method for generating a thermal resistor simulation signal according to an embodiment of the present application;
[0029] Figure 2 Schematic diagram of the structure of a thermal resistor simulation signal generating device according to an embodiment of the present application.
[0030] Description of reference numerals:
[0031] 1. Input module; 2. Calculation module; 3. Thermal resistor module; 4. Output unit. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of this application.
[0033] In the related art, there are generally several methods for simulating the temperature signal of a thermal resistor: one is to directly change the resistance value of the resistor box manually, which is time-consuming and labor-intensive, with low precision, low efficiency, or complex and inconvenient operation; the second is to use mature special instruments, such as the Fluke series signal generator, etc. This method is not accurate and has average stability; the third is to use a thermal resistor simulation card to superimpose an external circuit, which is generally embodied as a part of the entire test platform or a special device, especially in the field of nuclear power testing, based on PXI (PCI extensions for Instrumentation, PCI extensions for instrument systems) equipment combined with an external circuit to simulate the resistance value. This type of device is generally complex in structure and inconvenient to operate.
[0034] In order to solve or improve the above problems, the present application provides a method, device, computer equipment and storage medium for generating thermal resistor analog signals to solve or improve the problems of poor stability, low accuracy and complex and inconvenient operation of thermal resistor analog signals.
[0035] Combine the following Figure 1 to Figure 2 , describing an embodiment of the present application.
[0036] According to an embodiment of the present application, in a first aspect, a method for generating a thermal resistor simulation signal is provided, such as Figure 1 As shown, the device is applied to a thermal resistor simulation signal generating device, and includes the following steps:
[0037] S1: Input the set temperature value through the input channel, where the set temperature value is the temperature value to be simulated.
[0038] S2: Calculate the thermal resistance value data corresponding to the set temperature value according to the corresponding relationship between the temperature and resistance value of the selected thermal resistance;
[0039] Specifically, the type of the thermal resistor is any one of Pt100, Pt500 and Pt1000, and of course it can also be other types of thermal resistors.
[0040] In a specific implementation, taking the type of thermal resistor as Pt100 as an example, the corresponding relationship between its temperature and resistance value is:
[0041] In the range of 0℃~850℃:
[0042] R t =R0(1+A*t+B*t 2 )
[0043] -200℃~0℃ range:
[0044] R t =R0[1+A*t+B*t 2 +C(t-100)*t 3 ]
[0045] Among them, R t is the resistance at temperature t; R0 is the resistance at t = 0 °C; A, B, C are constants, A = 3.9083 × 10 -3 ℃ -1 , B = -5.775 × 10 -7 ℃ -2 , C = -4.183 × 10 -12 ℃ -4 .
[0046] It should be noted that for other standard resistance values of R0, such as 5Ω, 500Ω or 1000Ω, it is only necessary to multiply the thermal resistance value data of the output end of S2 by (R0 / 100Ω) as the thermal resistance input to the thermal resistance module 3.
[0047] S3: Input the calculated thermal resistance value data into the thermal resistance module 3, and output the thermal resistance value analog signal through the output channel.
[0048] Specifically, the thermal resistor module 3 is a resistor box or a thermal resistor simulation card. Preferably, the thermal resistor module 3 is a thermal resistor simulation card. The thermal resistor module 3 outputs the generated thermal resistor value simulation signal to the outside through a three-wire or four-wire cable as an output unit 4.
[0049] In this embodiment, the set value is directly subjected to logical operation, and the thermal resistance value data corresponding to the set temperature value is calculated according to the corresponding relationship between the temperature and the resistance value of the selected thermal resistor, and then the thermal resistor module 3 is directly used to directly output the thermal resistor value simulation signal. The structure is simple, and only the temperature value to be simulated needs to be directly input, and the operation is easy; at the same time, the output thermal resistor value simulation signal has high stability and high accuracy.
[0050] In one embodiment, multiple input channels and output channels are provided, and they correspond one to one.
[0051] Specifically, multiple set temperature values to be simulated may be input simultaneously through multiple input channels, so that corresponding thermal resistance value simulation signals may be output through multiple corresponding output channels.
[0052] In this embodiment, by setting multiple input channels and multiple corresponding output channels, it is possible to achieve the output of multiple thermal resistor value simulation signals through multiple channels at the same time, thereby realizing batch simulation of multi-channel thermal resistor signals, and each individual simulation channel can be set separately, thereby improving the generation efficiency of thermal resistor value simulation signals.
[0053] In a specific embodiment, the method further includes step S4: using the correction value to correct the thermal resistance value analog signal output by the thermal resistance module 3 before outputting it.
[0054] Specifically, the correction value is determined by the temperature, humidity and cable characteristic factors of the environment where the thermal resistor module 3 is located. The correspondence between the correction value and the temperature, humidity and cable characteristic factors of the environment where the thermal resistor module 3 is located can be established based on data statistics. The correspondence can also be established by other means, such as artificial intelligence. First, a database of the correction value and its corresponding temperature, humidity and cable characteristic factors of the environment where the thermal resistor module 3 is located is established; then a part of the data in the database is used as a training data set and input into a convolutional neural network for training to obtain a correction model, and then the remaining data in the database is used as a verification data set to verify and improve the correction model, so as to obtain the final correction model to revise the set temperature value. This method is simple and can improve the accuracy of the correction value.
[0055] In this implementation, the thermal resistance value simulation signal output by the thermal resistance module 3 is corrected by the correction value, so that the accuracy of the thermal resistance value simulation signal can be further improved.
[0056] In a second aspect, the present application also provides a thermal resistance simulation signal generating device, such as Figure 2 As shown, it includes an input module 1, an operation module 2 and a thermal resistor module 3, the input module 1 is provided with at least one input channel for inputting a set temperature value, wherein the set temperature value is a temperature value to be simulated; the operation module 2 is used to calculate the thermal resistor value data corresponding to the set temperature value according to the set temperature value input by the input module 1 and the corresponding relationship between the temperature and the resistance value of the selected thermal resistor; the thermal resistor module 3 is used to output a thermal resistor value simulation signal through an output channel according to the thermal resistor value data output by the operation module 2, wherein at least one output channel is provided.
[0057] Specifically, the input module 1 is an operating interface with input function, such as the control input area of the control panel, a touch screen or a computer keyboard, a mouse screen, etc.; of course, the input module 1 can also input parameters such as correction values; the calculation module 2 is a single-chip microcomputer, a CPU, etc.; the thermal resistor module 3 is a resistor box or a thermal resistor simulation card.
[0058] In this embodiment, the set temperature value is input through the input channel of the input module 1, and then the operation module 2 is used to directly perform logical operations to calculate the thermal resistance value data corresponding to the set temperature value according to the corresponding relationship between the temperature and the resistance value of the selected thermal resistor, and then the thermal resistance module 3 is directly used to directly output the thermal resistance value simulation signal. The structure is simple, and only the temperature value to be simulated needs to be directly input, and the operation is easy; at the same time, the output thermal resistance value simulation signal has high stability and high accuracy.
[0059] The following takes a Pt100 type thermal resistor, where the input module 1 is a computer screen, a mouse, and a keyboard, the operation module 2 is a computer, and the thermal resistor module 3 is a thermal resistor simulation card as an example, and specifically describes the method for generating the thermal resistor simulation signal and the device thereof, wherein the thermal resistor simulation card adopts the Pickering thermal resistor simulation card 40-263-001 with a minimum resolution of 0.01Ω.
[0060] S1: Use the computer keyboard and mouse to input 8 set temperature values and correction values into the 8 channels RTD1 to RTD8 in the computer respectively, as shown in Table 1.
[0061] S2: According to the corresponding relationship between the temperature and resistance value of the selected thermal resistor, calculate the thermal resistor value data corresponding to the set temperature value.
[0062] S3: Input the calculated thermal resistance value data into the thermal resistance module 3, and output the thermal resistance value analog signal through the output channel.
[0063] S4: using the correction value to correct the thermal resistance value analog signal output by the thermal resistance module 3 and then output it, as shown in Table 1 for details.
[0064] Table 1
[0065]
[0066]
[0067] Through the above tests, the output accuracy at the selected temperature measurement point values is within the tolerance range of Class A accuracy, that is, the output of Class A accuracy can be achieved, and the tolerance level of the converted temperature signal can reach Class A, that is, ±(0.15+0.00172|t|) (National Standard GB / T 30121-2013 "Industrial Platinum Resistance and Platinum Resistance Temperature Sensing Elements", |t| is the absolute value of temperature, unit ℃); at the same time, for applications with relatively high accuracy requirements, the temperature compensation value can be added to the setting interface for correction according to the output of the thermal resistor. The temperature compensation value is adjusted according to the ambient temperature, humidity, cable characteristics, etc. until the output value meets the requirements.
[0068] In a third aspect, the present application also provides a computer device, including one or more processors and a memory, wherein the memory stores computer instructions; the memory and the processor are communicatively connected to each other, and the processor executes the thermal resistor simulation signal generation method in any one of the embodiments of the first aspect by executing the computer instructions; the processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to an interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system).
[0069] The processor may be a central processing unit, a network processor or a combination thereof. The processor may further include an integrated circuit. The integrated circuit may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable logic gate array, a general purpose array logic or any combination thereof.
[0070] The memory stores instructions executable by at least one processor, so that the at least one processor executes the method shown in the above embodiment.
[0071] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0072] The memory may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid state drive; the memory may also include a combination of the above types of memory.
[0073] In this embodiment, because the computer device can execute the computer instructions of the thermal resistor simulation signal generating method in the first aspect, it has the same effect as the thermal resistor simulation signal generating method, and will not be repeated here.
[0074] In a fourth aspect, the embodiments of the present application also provide a computer-readable storage medium. The above-mentioned method according to the embodiments of the present application can be implemented in hardware, firmware, or implemented as a computer code that can be recorded in a storage medium, or is implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium and downloaded through a network, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk, or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0075] In this embodiment, because the computer-readable storage medium stores computer instructions for causing the computer to execute the thermal resistor simulation signal generating method in the first aspect, it has the same effect as the firmware analysis and verification method and will not be described in detail here.
[0076] In the fifth aspect, a part of the present application may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can be called or provided through the operation of the computer. It should be understood by those skilled in the art that the existence of computer program instructions in computer-readable media includes, but is not limited to, source files, executable files, installation package files, etc., and accordingly, the way in which computer program instructions are executed by a computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0077] Although the embodiments of the present application are described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present application, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for generating a thermal resistance simulation signal, characterized in that: Applicable to thermal resistor analog signal generator, including: Input a set temperature value through an input channel, wherein the set temperature value is a temperature value to be simulated; According to the corresponding relationship between the temperature and the resistance value of the selected thermal resistor, the thermal resistor value data corresponding to the set temperature value is calculated; The calculated thermal resistance value data is input into a thermal resistance module (3), and a thermal resistance value analog signal is output through an output channel.
2. The method for generating a thermal resistance simulation signal according to claim 1, characterized in that: The thermal resistor module (3) is a resistor box or a thermal resistor simulation card.
3. The method for generating a thermal resistance simulation signal according to claim 2, characterized in that: The type of the thermal resistor is any one of Pt100, Pt500 and Pt1000.
4. The method for generating a thermal resistance simulation signal according to claim 1, characterized in that: The type of thermal resistor is Pt100, and the corresponding relationship between its temperature and resistance value is: In the range of 0℃~850℃: R t =R0(1+A*t+B*t 2 ) -200℃~0℃ range: R t =R0[1+A*t+B*t 2 +C(t-100)*t 3 ] Among them, R t is the resistance at temperature t; R0 is the resistance at t = 0 °C; A, B, C are constants, A = 3.9083 × 10 -3 ℃ -1 , B = -5.775 × 10 -7 ℃ -2 , C = -4.183 × 10 -12 ℃ -4 .
5. The method for generating a thermal resistance simulation signal according to any one of claims 1 to 4, characterized in that: The input channels and the output channels are both provided in plurality and correspond one to one.
6. The method for generating a thermal resistance simulation signal according to any one of claims 1 to 4, characterized in that: The thermal resistance value analog signal output by the thermal resistance module (3) is corrected using the correction value and then output.
7. The method for generating a thermal resistance simulation signal according to claim 6, characterized in that: The correction value is determined by the temperature, humidity and cable characteristic factors of the environment in which the thermal resistance module (3) is located.
8. A thermal resistance simulation signal generating device, characterized in that: include: An input module (1), the input module (1) being provided with at least one input channel for inputting a set temperature value, wherein the set temperature value is a temperature value to be simulated; A calculation module (2) is used to calculate the thermal resistance value data corresponding to the set temperature value according to the set temperature value input by the input module (1) and the corresponding relationship between the temperature and the resistance value of the selected thermal resistance; and The thermal resistance module (3) is used to output a thermal resistance value analog signal through an output channel according to the thermal resistance value data output by the operation module (2), wherein at least one output channel is provided.
9. A computer device, characterized in that: include: a memory, wherein computer instructions are stored in the memory; The processor, the memory and the processor are communicatively connected to each other, and the processor executes the thermal resistor simulation signal generating method according to any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the thermal resistor simulation signal generating method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Thermal-resistance simulating device
CN103017941A
Device for simulating thermistor type temperature sensor
CN103177641A
Device using multiple groups of digital potentiometers to simulate Pt 1000 platinum resistor and method of device simulating Pt 1000 platinum resistor
CN103196582A
Temperature simulating circuit and method
CN104345643A
Method of adjusting operating temperature range of heat control device
RU2400797C1
Cited By
Multi-channel platinum thermal resistor program control simulation card and method
CN121114519A
