Control system and method for spectrograph and electronic equipment
By designing the temperature measurement module, drive module and temperature control module in the spectrometer, collecting heat maps and generating control information, the problem of dynamic adjustment and real-time monitoring of the temperature control of the spectrometer is solved, and the stability and measurement accuracy of the equipment are improved.
Patent Information
- Application Number
- CN202410825886.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-20
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing spectrometers lack dynamic adjustment capabilities in temperature control and cannot monitor the temperature status of the entire system in real time, causing system performance and stability to be affected.
A control system is designed, including a temperature measurement module, a drive module and a temperature control module. By collecting the heat map of the spectrometer, marking the position of the target component, generating abnormal and normal control information, closed-loop control is performed based on the temperature threshold to ensure that the equipment is at a stable temperature. run below.
It achieves accurate temperature control of the spectrometer body and target components, improves measurement accuracy and stability, responds to abnormal situations in a timely manner, and reduces the impact of temperature fluctuations on measurement results.
Smart Images

Figure CN118670516A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of spectrometer control, and in particular relates to a control system, method and electronic equipment for a spectrometer. Background Art
[0002] Spectrometers are detection tools that measure the structure and composition of substances. Spectroscopic measurement technology has penetrated almost all scientific fields. In order to ensure that the spectrometer operates under stable temperature conditions, it is necessary to keep the temperature of each key component inside the spectrometer constant to obtain accurate and reliable spectral data. Through precise temperature control, the effects of thermal expansion and thermal drift can be reduced, and the repeatability and stability of the measurement can be improved.
[0003] However, the temperature control of existing spectrometers usually simply monitors the temperature and issues an alarm when it exceeds a certain threshold, rather than dynamically adjusting the working state of the spectrometer. In addition, most existing spectrometers monitor a certain component, and do not uniformly monitor all key components. It is impossible to understand the temperature status of the entire spectrometer system in real time, resulting in temperature changes of other components not being discovered in time, thereby affecting the overall performance and stability of the system. Summary of the invention
[0004] In view of the above-mentioned defects in the prior art, the present invention provides a control system, method and electronic device for a spectrometer.
[0005] In a first aspect, the present application provides a control system for a spectrometer, comprising:
[0006] Temperature measurement module, drive module and temperature control module;
[0007] The temperature measurement module is used to collect the thermal map of the spectrometer, select the target component of the spectrometer, mark the position of the target component in the thermal map of the spectrometer, obtain the thermal map of the target component, and send the thermal map of the target component to the driving module;
[0008] The driving module is used to generate abnormal control information and normal control information based on the thermal map of the target component, and send the abnormal control information and normal control information to the temperature control module;
[0009] The temperature control module is used to control the temperature of the spectrometer body and perform closed-loop control according to the default temperature control settings. When receiving the abnormal control information, the spectrometer is powered off and suspended. When receiving the normal control information, the spectrometer operates normally.
[0010] Preferably, the temperature measurement module further includes a storage unit for storing the thermal map data of the target component.
[0011] Preferably, the target components of the spectrometer include but are not limited to a collection light source, an incident grating, a detector, a spectrometer and mechanical components.
[0012] Preferably, the generating of abnormal control information and normal control information based on the thermal map of the target component comprises:
[0013] The highest temperature of the thermal map of the target component is calculated as the temperature value of the current target component, the temperature values of the target component are fused and the state value of the spectrometer is output. When the state value is greater than or equal to a preset threshold, abnormal control information is output, and when the state value is less than the preset threshold, normal control information is output.
[0014] Preferably, calculating the maximum temperature of the thermal map of the target component comprises:
[0015] The pixel data of the entire thermal map of the target component are traversed, the pixel data are converted into grayscale values, the grayscale value area where color needs to be injected is determined and the color is injected. The color intensity is positively correlated with the grayscale value. The temperature corresponding to the point with the highest color intensity is taken as the highest temperature of the thermal map of the current target component.
[0016] Preferably, the formula for converting pixel data into grayscale values is as follows:
[0017]
[0018] Where Gray is the grayscale value of the thermal map of the target component, and Pixel is the pixel data of the thermal map of the target component.
[0019] Preferably, determining the gray value area that needs to be injected with color includes:
[0020] When the grayscale value of the heat map of the target component is greater than or equal to half of the total grayscale value of the heat map of the target component, it is a grayscale value area that needs to be injected with color, otherwise it is a grayscale value area that does not need to be injected with color. The formula is as follows:
[0021]
[0022] Wherein Gray' is the total gray value of the thermal map of the target component.
[0023] Preferably, fusing the temperature value of the target component and outputting the state value of the spectrometer comprises:
[0024] Preset the safety temperature value and unit time period of each target component of the spectrometer. When the temperature value of the corresponding target component is higher than the set safety temperature value in the unit time period, it is recorded as a dangerous temperature. The danger rate of the temperature value of the target component in the unit time period is obtained and fused. The fusion formula is as follows:
[0025]
[0026] Where S(T) is the state value of the spectrometer, S b (T a ) is the abnormal rate of target component a in time period b, n is the number of target components, α a,b is the exponential weight of the anomaly rate.
[0027] In a second aspect, the present application provides a control method for a spectrometer, comprising:
[0028] Collecting a thermal map of a spectrometer, selecting a target component of the spectrometer, marking a position of the target component in the thermal map of the spectrometer, and obtaining a thermal map of the target component;
[0029] generating abnormal control information and normal control information based on the thermal map of the target component;
[0030] The temperature of the main body of the spectrometer is controlled and closed-loop control is performed according to the default temperature control setting. When the abnormal control information is received, the spectrometer is powered off and suspended. When the normal control information is received, the spectrometer works normally.
[0031] In a third aspect, the present application provides an electronic device, including:
[0032] A processor, and a memory connected to the processor;
[0033] The memory is used to store computer-executable instructions;
[0034] The processor executes the computer-executable instructions stored in the memory to perform a control method for a spectrometer provided in the second aspect.
[0035] Beneficial effects: Through the temperature measurement module and the temperature control module, the system of this application can accurately obtain the temperature information of the spectrometer body and the target component, and perform precise temperature control as needed to ensure that the equipment operates at a stable operating temperature, which is beneficial to improving measurement accuracy and reducing the impact of temperature fluctuations on measurement results; in addition, the driving module can generate abnormal control information based on the thermal map of the target component, so that the system can respond to abnormal situations in a timely manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 It is a structural schematic diagram of a preferred embodiment of the present invention. DETAILED DESCRIPTION
[0037] The embodiments of the present invention are described in detail below. The following embodiments are implemented on the premise of the technical solution of the present invention, and detailed implementation methods and specific operation processes are given, but the protection scope of the present invention is not limited to the following embodiments.
[0038] The present invention provides a control system, method and electronic equipment for a spectrometer, which specifically include:
[0039] First, as Figure 1 As shown, the present application provides a control system for a spectrometer, comprising:
[0040] Temperature measurement module, drive module and temperature control module;
[0041] The temperature measurement module is used to collect the thermal map of the spectrometer, select the target component of the spectrometer, mark the position of the target component in the thermal map of the spectrometer, obtain the thermal map of the target component, and send the thermal map of the target component to the driving module;
[0042] The driving module is used to generate abnormal control information and normal control information based on the thermal map of the target component, and send the abnormal control information and normal control information to the temperature control module;
[0043] The temperature control module is used to control the temperature of the spectrometer body and perform closed-loop control according to the default temperature control settings. When receiving abnormal control information, the spectrometer is powered off and suspended. When receiving normal control information, the spectrometer works normally.
[0044] Preferably, the temperature measurement module further includes a storage unit for storing the thermal map data of the target component.
[0045] Preferably, the target components of the spectrometer include but are not limited to a collection light source, an incident grating, a detector, a spectrometer and mechanical components.
[0046] Preferably, generating abnormal control information and normal control information based on the thermal map of the target component includes:
[0047] The highest temperature of the thermal map of the target component is calculated as the temperature value of the current target component, the temperature values of the target component are fused and the state value of the spectrometer is output. When the state value is greater than or equal to the preset threshold, abnormal control information is output, and when the state value is less than the preset threshold, normal control information is output.
[0048] Preferably, calculating the maximum temperature of the thermal map of the target component includes:
[0049] Traverse the pixel data of the thermal map of the entire target component, convert the pixel data into grayscale values, determine the grayscale value area that needs to be injected with color and inject the color. The color intensity is positively correlated with the grayscale value. The temperature corresponding to the point with the highest color intensity is taken as the highest temperature of the thermal map of the current target component.
[0050] Specifically, injecting color can be achieved by mapping grayscale values to color space, using a predefined color map (colormap) to map grayscale values to corresponding colors. Common color maps include grayscale, rainbow, heat map, etc.; the conversion of pixel data and grayscale values of the thermal map is combined to make the temperature distribution of the target component more intuitive. By converting grayscale values into colors, the distribution of temperature can be displayed more intuitively, allowing people to understand the thermal state of the target component more quickly and accurately. In addition, the design of a positive correlation between color intensity and grayscale value also makes the color of the thermal map more expressive and can better reflect temperature changes. Finally, by taking the temperature corresponding to the point with the highest color intensity as the highest temperature of the thermal map, the hottest area of the target component can be easily found.
[0051] Preferably, the formula for converting pixel data into grayscale values is as follows:
[0052]
[0053] Where Gray is the grayscale value of the thermal map of the target component, and Pixel is the pixel data of the thermal map of the target component.
[0054] Specifically, through Adjustment and normalization are performed. π is used to convert the angle into radians. 510 is a constant used to adjust the range of Gray to between 0 and 255. This range is just acceptable to the 8-bit grayscale image represented by the computer, which is convenient for subsequent processing and display.
[0055] Preferably, determining the gray value area that needs to be injected with color includes:
[0056] When the grayscale value of the heat map of the target component is greater than or equal to half of the total grayscale value of the heat map of the target component, it is the grayscale value area that needs to be injected with color, otherwise it is the grayscale value area that does not need to be injected with color. The formula is as follows:
[0057]
[0058] Where Gray' is the total gray value of the heat map of the target component.
[0059] Specifically, by dividing the gray value area into the area that needs to be injected with color and the area that does not need to be injected with color, the image can be processed in a refined manner. This can better control the injection of color, making the image effect clearer and more accurate. Gray' is obtained by summing the gray values of all pixels. It represents half of the total grayscale value and is used as a threshold to divide the grayscale values of the heat map into two categories: one that needs color injection and the other that does not. This ensures that in most cases, the area injected with color is neither too much nor too little, ensuring the balance of image processing.
[0060] Preferably, fusing the temperature value of the target component and outputting the state value of the spectrometer comprises:
[0061] Preset the safety temperature value and unit time period of each target component of the spectrometer. When the temperature value of the corresponding target component is higher than the set safety temperature value in the unit time period, it is recorded as a dangerous temperature. The danger rate of the temperature value of the target component in the unit time period is obtained and fused. The fusion formula is as follows:
[0062]
[0063] Where S(T) is the state value of the spectrometer, S b (T a ) is the abnormal rate of target component a in time period b, n is the number of target components, α a,b is the exponential weight of the anomaly rate.
[0064] Specifically, the state value of the output spectrometer can comprehensively consider the abnormal rates of multiple target components in different time periods, and then calculate the overall state value of the spectrometer. This comprehensive consideration can more comprehensively reflect the operation of the system, rather than relying solely on the abnormal conditions of a single component. The purpose of the preset unit time period is to specify a unified time range within which the temperature of the target component is monitored and recorded. This helps to unify the monitoring data so that the system can evaluate the abnormal conditions of each target component on the same time scale, thereby better performing state assessment and abnormality control.
[0065] In addition, the determination of index weights reflects the importance of each component in the calculation of the state value. This application is determined based on risk assessment, including: using three risk assessment indicators, namely importance score, failure consequence score and failure probability score. The importance score is the impact of the component on the overall performance of the system, the failure consequence score is the possible consequences of component failure, and the failure probability score is the failure probability of the component. After determining the risk assessment indicators, quantify the risk indicators and score each component on each indicator, with a score range of 1 to 5. Calculate the comprehensive risk score and use the weighted average method to calculate the comprehensive risk score. Standardize the comprehensive risk score and standardize the comprehensive risk score to a range of 0 to 1 and convert it into an index weight.
[0066] In a second aspect, the present application provides a control method for a spectrometer, comprising:
[0067] Collecting a thermal map of the spectrometer, selecting a target component of the spectrometer, marking a position of the target component in the thermal map of the spectrometer, and obtaining a thermal map of the target component;
[0068] Generate abnormal control information and normal control information based on the thermal map of the target component;
[0069] Control the temperature of the main body of the spectrometer and perform closed-loop control according to the default temperature control settings. When receiving abnormal control information, the spectrometer is powered off and suspended. When receiving normal control information, the spectrometer works normally.
[0070] In a third aspect, the present application provides an electronic device, including:
[0071] A processor, and a memory connected to the processor;
[0072] Memory is used to store computer executable instructions;
[0073] The processor executes the computer-executable instructions stored in the memory to perform a control method for a spectrometer provided in the second aspect.
[0074] The preferred specific embodiments of the present invention are described in detail above. It should be understood that ordinary technicians in the field can make many modifications and changes based on the concept of the present invention without creative work. Therefore, all technical solutions that can be obtained by technicians in the technical field based on the concept of the present invention through logical analysis, reasoning or limited experiments on the basis of the prior art should be within the scope of protection determined by the claims.
Claims
1. A control system for a spectrometer, characterized in that: include: Temperature measurement module, drive module and temperature control module; The temperature measurement module is used to collect the thermal map of the spectrometer, select the target component of the spectrometer, mark the position of the target component in the thermal map of the spectrometer, obtain the thermal map of the target component, and send the thermal map of the target component to the driving module; The driving module is used to generate abnormal control information and normal control information based on the thermal map of the target component, and send the abnormal control information and normal control information to the temperature control module; The temperature control module is used to control the temperature of the spectrometer body and perform closed-loop control according to the default temperature control settings. When receiving the abnormal control information, the spectrometer is powered off and suspended. When receiving the normal control information, the spectrometer operates normally.
2. A control system for a spectrometer according to claim 1, characterized in that: The temperature measurement module also includes a storage unit for storing the thermal map data of the target component.
3. A control system for a spectrometer according to claim 1, characterized in that: The target components of the spectrometer include, but are not limited to, a collection light source, an incident grating, a detector, a spectrometer, and mechanical components.
4. A control system for a spectrometer according to claim 1, characterized in that: The generating of abnormal control information and normal control information based on the thermal map of the target component comprises: The highest temperature of the thermal map of the target component is calculated as the temperature value of the current target component, the temperature values of the target component are fused and the state value of the spectrometer is output. When the state value is greater than or equal to a preset threshold, abnormal control information is output, and when the state value is less than the preset threshold, normal control information is output.
5. A control system for a spectrometer according to claim 4, characterized in that: Calculating the maximum temperature of the thermal map of the target component includes: The pixel data of the entire thermal map of the target component are traversed, the pixel data are converted into grayscale values, the grayscale value area where color needs to be injected is determined and the color is injected. The color intensity is positively correlated with the grayscale value. The temperature corresponding to the point with the highest color intensity is taken as the highest temperature of the thermal map of the current target component.
6. A control system for a spectrometer according to claim 5, characterized in that: The formula for converting pixel data into grayscale values is as follows: Where Gray is the grayscale value of the thermal map of the target component, and Pixel is the pixel data of the thermal map of the target component.
7. A control system for a spectrometer according to claim 6, characterized in that: Determining the grayscale value area that needs to be injected with color includes: When the grayscale value of the heat map of the target component is greater than or equal to half of the total grayscale value of the heat map of the target component, it is a grayscale value area that needs to be injected with color, otherwise it is a grayscale value area that does not need to be injected with color. The formula is as follows: Wherein Gray' is the total gray value of the thermal map of the target component.
8. A control system for a spectrometer according to claim 4, characterized in that: The step of fusing the temperature value of the target component and outputting the state value of the spectrometer comprises: Preset the safety temperature value and unit time period of each target component of the spectrometer. When the temperature value of the corresponding target component is higher than the set safety temperature value in the unit time period, it is recorded as a dangerous temperature. The danger rate of the temperature value of the target component in the unit time period is obtained and fused. The fusion formula is as follows: Where S(T) is the state value of the spectrometer, S b (T a ) is the abnormal rate of target component a in time period b, n is the number of target components, α a,b is the exponential weight of the anomaly rate.
9. A control method for a spectrometer, characterized in that: include: Collecting a thermal map of a spectrometer, selecting a target component of the spectrometer, marking a position of the target component in the thermal map of the spectrometer, and obtaining a thermal map of the target component; generating abnormal control information and normal control information based on the thermal map of the target component; The temperature of the main body of the spectrometer is controlled and closed-loop control is performed according to the default temperature control setting. When the abnormal control information is received, the spectrometer is powered off and suspended. When the normal control information is received, the spectrometer works normally.
10. An electronic device, characterized in that: include: A processor, and a memory connected to the processor; The memory is used to store computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to perform the control method for a spectrometer according to claim 9.
