CN104596643B - A kind of system and method for PC control xenon lamp and spectrogrph - Google Patents
A kind of system and method for PC control xenon lamp and spectrogrph Download PDFInfo
- Publication number
- CN104596643B CN104596643B CN201510032617.6A CN201510032617A CN104596643B CN 104596643 B CN104596643 B CN 104596643B CN 201510032617 A CN201510032617 A CN 201510032617A CN 104596643 B CN104596643 B CN 104596643B
- Authority
- CN
- China
- Prior art keywords
- instruction
- xenon lamp
- light
- spectrogrph
- turning
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The present invention relates to the system and method for a kind of PC control xenon lamp and spectrogrph.Method step is that xenon lamp control module sends, to communication chip, turn on light instruction or instruction of turning off the light;Communication chip turns on light instruction or instruction of turning off the light carries out the conversion of level conversion and communications protocol to described;Single-chip microcomputer by complete conversion turn on light instruction or instruction of turning off the light is converted to pulse signal;Pulse signal is converted to voltage signal by xenon lamp trigger board;The voltage signal that xenon lamp is opened according to the voltage signal of instruction conversion of turning on light or changed according to instruction of turning off the light is closed;Spectrometer collection spectral signal also sends to spectrogrph control module;Spectrogrph controls module and described spectral signal carries out noise reduction process and reduces deviation processing.The present invention improves the communication efficiency between host computer and xenon lamp, reduces the fuzzy problem in conventional process mode, and the spectroscopic data obtained is more accurate.
Description
Technical field
The present invention relates to spectral measurement field, particularly to the system and method for a kind of PC control xenon lamp Yu spectrogrph.
Background technology
In existing spectrogrph, communication between host computer and xenon lamp generally adopts self-defining communications protocol, cause host computer and xenon lamp communication efficiency low, communication signal is unstable, unreliable, it addition, after obtaining spectral signal, spectral signal analysis is still immature with the method for process, there is spectral signal noise big, and spectral signal poor processing effect, problem that error is big.
Summary of the invention
The technical problem to be solved is to provide and a kind of provides a kind of more stable reliable communication modes for the communication between host computer and xenon lamp, and processes, for host computer, the spectral signal obtained and provide the noise management regime of a kind of better effects and if reduce the mode of error.
The technical scheme is that
The system of a kind of PC control xenon lamp and spectrogrph, including upper computer control system, xenon lamp control chip, xenon lamp and spectrogrph;Described upper computer control system includes xenon lamp control module and spectrogrph controls module;Described xenon lamp control chip includes communication chip, single-chip microcomputer and xenon lamp trigger board;
Described xenon lamp control module, for sending, to communication chip, turn on light instruction or instruction of turning off the light;
Described communication chip, for turning on light instruction or instruction of turning off the light carries out the conversion of level conversion and communications protocol to described;
Described single-chip microcomputer, for by complete conversion turn on light instruction or instruction of turning off the light is converted to pulse signal;
Described xenon lamp trigger board, for being converted to voltage signal by pulse signal;
Described xenon lamp, cuts out for the voltage signal opened according to the voltage signal of instruction conversion of turning on light or change according to instruction of turning off the light;
Described spectrogrph, is used for gathering tested gas SO2By the spectral signal of gained after gas compartment, and described spectral signal is sent to spectrogrph control module;
Described spectrogrph controls module, for sending open command or out code to spectrogrph, is additionally operable to accept the spectral signal that spectrometer collection arrives, and described spectral signal carries out noise reduction process and reduces deviation processing.
The invention has the beneficial effects as follows: provide a kind of more stable reliable communication modes for the communication between host computer and xenon lamp, improve the communication efficiency between host computer and xenon lamp.It addition, process, for host computer, the spectral signal obtained to provide the noise management regime of a kind of better effects and if the mode of reduction error, reducing the fuzzy problem in conventional process mode, the spectroscopic data obtained is more accurate.
On the basis of technique scheme, the present invention can also do following improvement.
Further, described single-chip microcomputer is additionally operable to according to turning on light instruction or whether instruction of turning off the light receives successfully to the communication chip corresponding response instruction of transmission;
Described communication chip, is additionally operable to described response instruction is carried out the conversion of level conversion and communications protocol, sends the response instruction completing conversion to xenon lamp control module;
Described xenon lamp control module, is additionally operable to judge whether that needs resend turn on light instruction or instruction of turning off the light according to described response instruction.
Further, described communication chip selects MAX-232 chip.
Further, described xenon lamp trigger board includes 74CH1G14Single phase inverter, triode discharge circuit and signal conditioning circuit;74CH1G14The input of single phase inverter connects the single-chip processor i/o port of single-chip microcomputer, 74CH1G14The outfan of single phase inverter connects the input of triode discharge circuit;The outfan of triode discharge circuit connects the input of signal conditioning circuit;The outfan of signal conditioning circuit connects xenon lamp.
Further, described spectrogrph control module includes: spectral signal receives unit, filtering noise reduction unit and reduces deviation unit;
Described spectral signal receives unit, for receiving the spectral signal of the tested gas of spectrogrph output;
Filtering noise reduction unit, for adopting the method for mean filter that spectral signal is carried out noise reduction process, obtains tested SO2The concentration value ppm of gas1;
Reduce deviation unit, for according to ppm1Carry out zeroing computing and obtain ppm2, and according to ppm2Carry out demarcating computing, obtain ppm3。
In order to solve above-mentioned technical problem, a kind of method that present invention also offers PC control xenon lamp and spectrogrph, comprise the following steps
Step 1: xenon lamp control module sends, to communication chip, turn on light instruction or instruction of turning off the light;
Step 2: communication chip turns on light instruction or instruction of turning off the light carries out the conversion of level conversion and communications protocol to described;
Step 3: single-chip microcomputer by complete conversion turn on light instruction or instruction of turning off the light is converted to pulse signal;
Step 4: pulse signal is converted to voltage signal by xenon lamp trigger board;
Step 5: the voltage signal that xenon lamp is opened according to the voltage signal of instruction conversion of turning on light or changed according to instruction of turning off the light is closed;
Step 6: spectrometer collection spectral signal, and send to spectrogrph control module;Spectrogrph controls module and described spectral signal carries out noise reduction process and reduces deviation processing.
Further, described step 3 is further comprising the steps of
Step 3a: single-chip microcomputer is according to turning on light instruction and whether instruction of turning off the light receives and successfully send corresponding response instruction to communication chip;
Step 3b: described response instruction is carried out the conversion of level conversion and communications protocol by communication chip, sends the response instruction completing conversion to xenon lamp control module;
Step 3c: according to described response instruction, xenon lamp control module judges whether that needs resend turn on light instruction and instruction of turning off the light.
Further, described step 6 also includes:
Step 6a: receive the spectral signal of the tested gas of spectrogrph output;
Step 6b: adopt the method for mean filter that spectral signal is carried out noise reduction process, obtain tested SO2The concentration value ppm of gas1;
Step 6c: according to ppm1Carry out zeroing computing and obtain ppm2, and according to ppm2Carry out demarcating computing, obtain ppm3。
Further, in described step 6b, the process of mean filter is:
Step 6b-1: set the width of filter window;
Step 6b-2 a: element of the array in selection filter window according to the order of sequence;
Step 6b-3: read the element value of described element;
Step 6b-4: judge whether this element is image border according to the element value of the described element read;If it is judged that be yes, then perform step 6b-5, if it is judged that for otherwise carrying out step 6b-6;
Step 6b-5: as mean filter result, the element value of currentElement is stored in result array, performs step 6b-7;
Step 6b-6: be added by the element value of all elements of the array in filter window, then the width divided by filter window, using the acquired results element value as currentElement, and be stored in result array, performs step 6b-7;
Step 6b-7: judge whether to process full number group, if it is judged that be yes, then perform step 6b-9, if it is judged that be no, then carries out step 6b-8;
Step 6b-8: read the element value of the next element of currentElement, and perform step 6b-4;
Step 6b-9: output result array, terminates mean filter process.
Further, the calculating process that returns to zero in described step 6c is:
Wherein, ppm1Tested sulfur dioxide SO for filtering noise reduction unit output2The concentration value of gas;
PPMbackFor by calibrating gas nitrogen N2Passing into gas compartment, when xenon lamp cuts out, spectrogrph obtains calibrating gas nitrogen N2Concentration value;
PPMlampFor by calibrating gas nitrogen N2Passing into gas compartment, when xenon lamp is opened, spectrogrph obtains calibrating gas nitrogen N2Concentration value;
Demarcation calculating process is:
ppm3=K*ppm2+B
Wherein, ppm2Obtained by above-mentioned zeroing computing;K, B are calibrating gas nitrogen N2Threshold value when special spectrum.
Accompanying drawing explanation
Fig. 1 is integrated connection relation schematic diagram of the present invention;
Fig. 2 is the internal annexation schematic diagram of xenon lamp trigger board of the present invention;
Fig. 3 is that xenon lamp of the present invention controls inside modules unit and xenon lamp control chip annexation schematic diagram;
Fig. 4 is that spectrogrph of the present invention controls inside modules unit and spectrogrph annexation schematic diagram;
Fig. 5 is for being with noisy spectral signal figure;
Fig. 6 is mean filter method flow diagram of the present invention;
Fig. 7 is the spectral signal design sketch after adopting mean filter to process;
Fig. 8 is desirable spectral signal design sketch.
Detailed description of the invention
Below in conjunction with accompanying drawing, principles of the invention and feature being described, example is served only for explaining the present invention, is not intended to limit the scope of the present invention.
As it is shown in figure 1, the system of PC control xenon lamp and spectrogrph, including upper computer control system, xenon lamp control chip, xenon lamp and spectrogrph;Upper computer control system is installed in host computer, and upper computer control system includes xenon lamp control module and spectrogrph controls module;Xenon lamp control chip includes communication chip, single-chip microcomputer and xenon lamp trigger board;
Upper machine communication mode adopts RS-485 agreement, and microcontroller communication mode adopts RS-232 agreement, and communication chip selects MAX-232 chip, and this chip supports that RS-485 agreement turns RS-232 agreement.
Xenon lamp control module sends, to communication chip, turn on light instruction or instruction of turning off the light;Communication chip is to turning on light instruction or instruction of turning off the light carries out the conversion of level conversion and communications protocol;Single-chip microcomputer by complete conversion turn on light instruction or instruction of turning off the light is converted to pulse signal;Pulse signal is converted to voltage signal by xenon lamp trigger board;The voltage signal that xenon lamp is opened according to the voltage signal of instruction conversion of turning on light or changed according to instruction of turning off the light is closed.
After xenon lamp is opened, spectrogrph controls module and sends open command to spectrogrph, and spectrogrph starts, the spectral signal of the tested gas of spectrometer collection, and is sent by spectral signal to spectrogrph control module;Spectrometer controls module and accepts the spectral signal that spectrometer collection arrives, and spectral signal is filtered noise reduction process and reduces deviation processing.
As in figure 2 it is shown, xenon lamp trigger board includes 74CH1G14Single phase inverter, triode discharge circuit and signal conditioning circuit.74CH1G14The input of single phase inverter connects the single-chip processor i/o port of single-chip microcomputer, 74CH1G14The outfan of single phase inverter connects the input of triode discharge circuit;The outfan of triode discharge circuit connects the input of signal conditioning circuit;The outfan of signal conditioning circuit connects xenon lamp.
Single-chip processor i/o port output pulse signal, pulse signal is undertaken reverse 180 degree by single phase inverter pulse signals, the pulse signal of reverse 180 degree is amplified by triode discharge circuit and signal conditioning circuit, Weak pulse signal is zoomed into the voltage signal that spoke value is bigger, lamp of each pulse-triggered is bright, interval between pulse issues a command to single-chip microcomputer under in upper computer control system, the frequency of control single chip computer output pulse.
As it is shown on figure 3, xenon lamp control module includes initialization unit, turn on light unit and unit of turning off the light;The detailed process of the opening and closing that xenon lamp control module controls xenon lamp is as follows,
Xenon lamp control module controls xenon lamp opening process:
Initialization unit starts configuration file, sends Handshake Protocol instruction by communication chip to single-chip microcomputer, and single-chip microcomputer sends a reply instruction by communication chip to initialization unit after receiving Handshake Protocol instruction;Initialization unit judges whether to shake hands successfully after receiving reply instruction, if it is judged that be successfully, then sends instructions to unit of turning on light, if it is judged that be unsuccessful, then again sends protocol instructions to communication chip.Unit of turning on light sends, to communication chip, instruction of turning on light, and instruction of turning on light is carried out the conversion of level conversion and communications protocol by communication chip, and the instruction of turning on light completing conversion is sent to single-chip microcomputer;The instruction of turning on light completing conversion is converted to pulse signal by single-chip microcomputer, and pulse signal is sent to xenon lamp trigger board;Pulse signal is converted to voltage signal by xenon lamp trigger board, and this voltage signal is sent to xenon lamp;Xenon lamp is opened after receiving voltage signal.
Xenon lamp control module controls xenon lamp closing process:
After xenon lamp is opened, spectrogrph controls module and sends open command to spectrogrph, and spectrogrph starts, and spectrogrph controls module timer program time delay, waits that spectrogrph starts complete.After spectrogrph starts, unit of turning off the light sends, to xenon lamp trigger board, instruction of turning off the light through communication chip;Instruction of turning off the light is carried out the conversion of level conversion and communications protocol by communication chip, and the instruction of turning off the light completing conversion is sent to single-chip microcomputer;The instruction of turning off the light completing conversion is converted to pulse signal by single-chip microcomputer, and pulse signal is sent to xenon lamp trigger board;Pulse signal is converted to voltage signal by xenon lamp trigger board, and this voltage signal is sent to xenon lamp;Xenon lamp cuts out after receiving voltage signal.
In above-mentioned xenon lamp opening process, when single-chip microcomputer receives and turns on light instruction, whether single-chip microcomputer receives according to instruction of turning on light successfully sends the first response instruction to communication chip;First response instruction is carried out the conversion of level conversion and communications protocol by communication chip, sends the first response instruction completing conversion to xenon lamp control module;According to the first response instruction, xenon lamp control module judges whether that needs resend instruction of turning on light.When unit of turning on light all fails to communication chip 5 instructions of turning on light of transmission, there is the prompting that reports an error in host computer.
In like manner, in above-mentioned xenon lamp closing process, when single-chip microcomputer receives and turns off the light instruction, whether single-chip microcomputer receives according to instruction of turning off the light successfully sends the second response instruction to communication chip;Second response instruction is carried out the conversion of level conversion and communications protocol by communication chip, sends the second response instruction completing conversion to xenon lamp control module;According to the second response instruction, xenon lamp control module judges whether that needs resend instruction of turning off the light.When unit of turning on light all fails to communication chip 5 instructions of turning off the light of transmission, there is the prompting that reports an error in host computer.
As shown in Figure 4, spectrogrph control module includes: spectral signal receives unit, filtering noise reduction unit and reduces deviation unit;Spectral signal receives the spectral signal that unit receives the tested gas of spectrogrph output;Filtering noise reduction unit adopts the method for mean filter that spectral signal is carried out noise reduction process, obtains tested SO2The concentration value ppm of gas1;Reduce deviation unit according to ppm1Carry out zeroing computing and obtain ppm2, and according to ppm2Carry out demarcating computing, obtain ppm3。
Spectrogrph controls module and also includes start unit, and start unit receives the spectrogrph enabled instruction that xenon lamp control module sends, and described spectrogrph enabled instruction is sent to spectrogrph;Spectrogrph, after receiving described spectrogrph enabled instruction, brings into operation, and gathers the spectral information of tested gas, and described spectral information converts to spectral signal is sent to spectral signal and receives unit.
As it is shown in figure 5, be with noisy spectral signal figure.After host computer receives spectral signal, impact due to ambient signals, the spectral signal received, generally with noise, this has had a strong impact on the spectrogrph result for the mensuration of tested gas with noisy spectral signal, it is therefore desirable to carry out noise reduction to being with noisy spectral signal.
For given image f, (x, (x y), takes its neighborhood S to each pixel in y)xyIf, SxyContaining M pixel, (x, y) light intensity at place replace the original light intensity of this pixel by the meansigma methods of pixel light intensity each in a neighborhood of pixels as gained image slices vegetarian refreshments after processing to take its meansigma methods.Mean filter effectively inhibits noise, and as well as on average causing blooming, fog-level is directly proportional to window size.Should avoid using bigger filter window to be filtered processing to be reduced as far as fuzzy distortion.During the pixel at latter two edge before treatment, continue to have less than the MARG of half window width.
As shown in Figure 6, the process of the method that the present invention filters noise reduction unit employing mean filter is:
Step 6b-1: set the width of filter window;
Step 6b-2 a: element of the array in selection filter window according to the order of sequence;
Step 6b-3: read the element value of described element;
Step 6b-4: judge whether this element is image border according to the element value of the described element read;If it is judged that be yes, then perform step 6b-5, if it is judged that for otherwise carrying out step 6b-6;
Step 6b-5: as mean filter result, the element value of currentElement is stored in result array, performs step 6b-7;
Step 6b-6: be added by the element value of all elements of the array in filter window, then the width divided by filter window, using the acquired results element value as currentElement, and be stored in result array, performs step 6b-7;
Step 6b-7: judge whether to process full number group, if it is judged that be yes, then perform step 6b-9, if it is judged that be no, then carries out step 6b-8;
Step 6b-8: read the element value of the next element of currentElement, and perform step 6b-4;
Step 6b-9: output result array, terminates mean filter process.
Fig. 7 is the spectral signal design sketch after adopting mean filter to process, and Fig. 8 is desirable spectral signal design sketch.From the contrast of Fig. 7 and Fig. 8 it can be seen that the spectral signal volume to greatest extent after adopting mean filter is close to desirable spectral signal, substantially reduce the fuzzy problem easily occurred in noise processed.
Owing to actual environment existing various external interference factor, therefore, spectrogrph export when there being interference factor to sulfur dioxide SO2The testing result of gas and the sulfur dioxide SO of output in ecotopia2There is deviation in the testing result of gas.In order to reduce deviation, by nitrogen N2Pass into gas compartment, detect nitrogen N when equal interference factor2Concentration value.Due to nitrogen N2For calibrating gas, by withered computing and demarcate computing and can improve tested sulfur dioxide SO2The accuracy of gaseous spectrum data.
The zeroing calculating process reducing deviation unit is:
Wherein, ppm1Tested sulfur dioxide SO for filtering noise reduction unit output2The concentration value of gas;
PPMbackFor by calibrating gas nitrogen N2Passing into gas compartment, when xenon lamp cuts out, spectrogrph obtains calibrating gas nitrogen N2Concentration value;
PPMlampFor by calibrating gas nitrogen N2Passing into gas compartment, when xenon lamp is opened, spectrogrph obtains calibrating gas nitrogen N2Concentration value.
The demarcation calculating process reducing deviation unit is:
ppm3=K*ppm2+B
Wherein, ppm2Obtained by above-mentioned zeroing computing;K, B are calibrating gas nitrogen N2Threshold value when special spectrum.
A kind of method that present invention also offers PC control xenon lamp and spectrogrph, comprises the following steps:
Step 1: xenon lamp control module sends, to communication chip, turn on light instruction or instruction of turning off the light;
Step 2: communication chip turns on light instruction or instruction of turning off the light carries out the conversion of level conversion and communications protocol to described;
Step 3: single-chip microcomputer by complete conversion turn on light instruction or instruction of turning off the light is converted to pulse signal;
Step 4: pulse signal is converted to voltage signal by xenon lamp trigger board;
Step 5: the voltage signal that xenon lamp is opened according to the voltage signal of instruction conversion of turning on light or changed according to instruction of turning off the light is closed;
Step 6: spectrometer collection spectral signal, and send to spectrogrph control module;Spectrogrph controls module and described spectral signal carries out noise reduction process and reduces deviation processing.
Wherein, further comprising the steps of after step 3:
Step 3a: single-chip microcomputer is according to turning on light instruction and whether instruction of turning off the light receives and successfully send corresponding response instruction to communication chip;
Step 3b: described response instruction is carried out the conversion of level conversion and communications protocol by communication chip, sends the response instruction completing conversion to xenon lamp control module;
Step 3c: according to described response instruction, xenon lamp control module judges whether that needs resend turn on light instruction and instruction of turning off the light.
Wherein, step 6 also includes:
Step 6a: receive the spectral signal of the tested gas of spectrogrph output;
Step 6b: adopt the method for mean filter that spectral signal is carried out noise reduction process, obtain tested SO2The concentration value ppm of gas1;
Step 6c: according to ppm1Carry out zeroing computing and obtain ppm2, and according to ppm2Carry out demarcating computing, obtain ppm3。
In step 6b, the process of mean filter is:
Step 6b-1: set the width of filter window;
Step 6b-2 a: element of the array in selection filter window according to the order of sequence;
Step 6b-3: read the element value of described element;
Step 6b-4: judge whether this element is image border according to the element value of the described element read;If it is judged that be yes, then perform step 6b-5, if it is judged that for otherwise carrying out step 6b-6;
Step 6b-5: as mean filter result, the element value of currentElement is stored in result array, performs step 6b-7;
Step 6b-6: be added by the element value of all elements of the array in filter window, then the width divided by filter window, using the acquired results element value as currentElement, and be stored in result array, performs step 6b-7;
Step 6b-7: judge whether to process full number group, if it is judged that be yes, then perform step 6b-9, if it is judged that be no, then carries out step 6b-8;
Step 6b-8: read the element value of the next element of currentElement, and perform step 6b-4;
Step 6b-9: output result array, terminates mean filter process.
In step 6c, zeroing calculating process is:
Wherein, ppm1Tested sulfur dioxide SO for filtering noise reduction unit output2The concentration value of gas;
PPMbackFor by calibrating gas nitrogen N2Passing into gas compartment, when xenon lamp cuts out, spectrogrph obtains calibrating gas nitrogen N2Concentration value;
PPMlampFor by calibrating gas nitrogen N2Passing into gas compartment, when xenon lamp is opened, spectrogrph obtains calibrating gas nitrogen N2Concentration value.
In step 6c, demarcating calculating process is:
ppm3=K*ppm2+B
Wherein, ppm2Obtained by above-mentioned zeroing computing;K, B are calibrating gas nitrogen N2Threshold value when special spectrum.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all within the spirit and principles in the present invention, any amendment of making, equivalent replacement, improvement etc., should be included within protection scope of the present invention.
Claims (10)
1. the system of a PC control xenon lamp and spectrogrph, it is characterised in that include upper computer control system, xenon lamp control chip, xenon lamp and spectrogrph;Described upper computer control system includes xenon lamp control module and spectrogrph controls module;Described xenon lamp control chip includes communication chip, single-chip microcomputer and xenon lamp trigger board;
Described xenon lamp control module, for sending, to communication chip, turn on light instruction or instruction of turning off the light;
Described communication chip, for turning on light instruction or instruction of turning off the light carries out the conversion of level conversion and communications protocol to described;
Described single-chip microcomputer, for by complete conversion turn on light instruction or instruction of turning off the light is converted to pulse signal;
Described xenon lamp trigger board, for being converted to voltage signal by pulse signal;
Described xenon lamp, cuts out for the voltage signal opened according to the voltage signal of instruction conversion of turning on light or change according to instruction of turning off the light;
Described spectrogrph, is used for gathering tested gas SO2By the spectral signal of gained after gas compartment, and described spectral signal is sent to spectrogrph control module;
Described spectrogrph controls module, for sending open command or out code to spectrogrph, is additionally operable to accept the spectral signal that spectrometer collection arrives, and described spectral signal carries out noise reduction process and reduces deviation processing.
2. the system of a kind of PC control xenon lamp and spectrogrph according to claim 1, it is characterised in that described single-chip microcomputer is additionally operable to according to turning on light instruction or whether instruction of turning off the light receives successfully to the communication chip corresponding response instruction of transmission;
Described communication chip, is additionally operable to described response instruction is carried out the conversion of level conversion and communications protocol, sends the response instruction completing conversion to xenon lamp control module;
Described xenon lamp control module, is additionally operable to judge whether that needs resend turn on light instruction or instruction of turning off the light according to described response instruction.
3. the system of a kind of PC control xenon lamp and spectrogrph according to claim 1, it is characterised in that described communication chip selects MAX-232 chip.
4. the system of a kind of PC control xenon lamp and spectrogrph according to claim 1, it is characterised in that described xenon lamp trigger board includes single phase inverter, triode discharge circuit and signal conditioning circuit;The input of single phase inverter connects the single-chip processor i/o port of single-chip microcomputer, and the outfan of single phase inverter connects the input of triode discharge circuit;The outfan of triode discharge circuit connects the input of signal conditioning circuit;The outfan of signal conditioning circuit connects xenon lamp.
5. the system of a kind of PC control xenon lamp and spectrogrph according to claim 1, it is characterised in that described spectrogrph controls module and includes: spectral signal receives unit, filtering noise reduction unit and reduces deviation unit;
Described spectral signal receives unit, for receiving the spectral signal of the tested gas of spectrogrph output;
Filtering noise reduction unit, for adopting the method for mean filter that spectral signal is carried out noise reduction process, obtains tested SO2The concentration value ppm of gas1;
Reduce deviation unit, for according to ppm1Carry out zeroing computing and obtain ppm2, and according to ppm2Carry out demarcating computing, obtain ppm3。
6. the method for a PC control xenon lamp and spectrogrph, it is characterised in that utilize the system of PC control xenon lamp as claimed in claim 1 and spectrogrph to realize, comprise the following steps:
Step 1: xenon lamp control module sends, to communication chip, turn on light instruction or instruction of turning off the light;
Step 2: communication chip turns on light instruction or instruction of turning off the light carries out the conversion of level conversion and communications protocol to described;
Step 3: single-chip microcomputer by complete conversion turn on light instruction or instruction of turning off the light is converted to pulse signal;
Step 4: pulse signal is converted to voltage signal by xenon lamp trigger board;
Step 5: the voltage signal that xenon lamp is opened according to the voltage signal of instruction conversion of turning on light or changed according to instruction of turning off the light is closed;
Step 6: spectrometer collection spectral signal, and send to spectrogrph control module;Spectrogrph controls module and described spectral signal carries out noise reduction process and reduces deviation processing.
7. a kind of method of PC control xenon lamp and spectrogrph according to claim 6, it is characterised in that described step 3 is further comprising the steps of:
Step 3a: single-chip microcomputer is according to turning on light instruction and whether instruction of turning off the light receives and successfully send corresponding response instruction to communication chip;
Step 3b: described response instruction is carried out the conversion of level conversion and communications protocol by communication chip, sends the response instruction completing conversion to xenon lamp control module;
Step 3c: according to described response instruction, xenon lamp control module judges whether that needs resend turn on light instruction and instruction of turning off the light.
8. a kind of method of PC control xenon lamp and spectrogrph according to claim 6, it is characterised in that described step 6 also includes:
Step 6a: receive the spectral signal of the tested gas of spectrogrph output;
Step 6b: adopt the method for mean filter that spectral signal is carried out noise reduction process, obtain tested SO2The concentration value ppm of gas1;
Step 6c: according to ppm1Carry out zeroing computing and obtain ppm2, and according to ppm2Carry out demarcating computing, obtain ppm3。
9. a kind of method of PC control xenon lamp and spectrogrph according to claim 8, it is characterised in that in described step 6b, the process of mean filter is:
Step 6b-1: set the width of filter window;
Step 6b-2 a: element of the array in selection filter window according to the order of sequence;
Step 6b-3: read the element value of described element;
Step 6b-4: judge whether this element is image border according to the element value of the described element read;If it is judged that be yes, then perform step 6b-5, if it is judged that for otherwise carrying out step 6b-6;
Step 6b-5: as mean filter result, the element value of currentElement is stored in result array, performs step 6b-7;
Step 6b-6: be added by the element value of all elements of the array in filter window, then the width divided by filter window, using the acquired results element value as currentElement, and be stored in result array, performs step 6b-7;
Step 6b-7: judge whether to process full number group, if it is judged that be yes, then perform step 6b-9, if it is judged that be no, then carries out step 6b-8;
Step 6b-8: read the element value of the next element of currentElement, and perform step 6b-4;
Step 6b-9: output result array, terminates mean filter process.
10. a kind of method of PC control xenon lamp and spectrogrph according to claim 8, it is characterised in that the calculating process that returns to zero in described step 6c is:
Wherein, ppm1Tested sulfur dioxide SO for filtering noise reduction unit output2The concentration value of gas;
PPMbackFor by calibrating gas nitrogen N2Passing into gas compartment, when xenon lamp cuts out, spectrogrph obtains calibrating gas nitrogen N2Concentration value;
PPMlampFor by calibrating gas nitrogen N2Passing into gas compartment, when xenon lamp is opened, spectrogrph obtains calibrating gas nitrogen N2Concentration value;
Demarcation calculating process is:
ppm3=K*ppm2+B
Wherein, ppm2Obtained by above-mentioned zeroing computing;K, B are calibrating gas nitrogen N2Threshold value when special spectrum.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510032617.6A CN104596643B (en) | 2015-01-22 | 2015-01-22 | A kind of system and method for PC control xenon lamp and spectrogrph |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510032617.6A CN104596643B (en) | 2015-01-22 | 2015-01-22 | A kind of system and method for PC control xenon lamp and spectrogrph |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104596643A CN104596643A (en) | 2015-05-06 |
CN104596643B true CN104596643B (en) | 2016-07-20 |
Family
ID=53122574
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510032617.6A Active CN104596643B (en) | 2015-01-22 | 2015-01-22 | A kind of system and method for PC control xenon lamp and spectrogrph |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104596643B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201142773Y (en) * | 2008-01-11 | 2008-10-29 | 中国科学院空间科学与应用研究中心 | Automatically starting and igniting electric power of low-voltage optical spectrum mercury lamp |
CN201607402U (en) * | 2010-03-02 | 2010-10-13 | 东南大学 | Ultraviolet absorption spectrum measuring device of coal sulfur content |
CN102564592A (en) * | 2012-01-09 | 2012-07-11 | 中国科学院上海光学精密机械研究所 | Device and method for measuring radiation spectrum of pulse flashlight |
CN103025036A (en) * | 2012-12-05 | 2013-04-03 | 钢研纳克检测技术有限公司 | Full-digital pulse combined light source |
CN103674248A (en) * | 2013-11-22 | 2014-03-26 | 深圳先进技术研究院 | Spectral data acquisition and transmission system and operating and application methods thereof |
WO2014080337A3 (en) * | 2012-11-26 | 2014-07-17 | Koninklijke Philips N.V. | Signal-level based control of power grid load systems |
CN203858030U (en) * | 2014-06-03 | 2014-10-01 | 中国地质大学(武汉) | Portable spectrometer pulse xenon lamp power supply and light intensity detection circuit |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8710771B2 (en) * | 2011-11-03 | 2014-04-29 | Echostar Technologies L.L.C. | Duty cycle adjustment of remote illumination source to maintain illumination output |
EP2595459A3 (en) * | 2011-11-17 | 2014-07-30 | Atlas Material Testing Technology, Llc. | Power supply for xenon lamps in an accelerated weathering test apparatus |
-
2015
- 2015-01-22 CN CN201510032617.6A patent/CN104596643B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201142773Y (en) * | 2008-01-11 | 2008-10-29 | 中国科学院空间科学与应用研究中心 | Automatically starting and igniting electric power of low-voltage optical spectrum mercury lamp |
CN201607402U (en) * | 2010-03-02 | 2010-10-13 | 东南大学 | Ultraviolet absorption spectrum measuring device of coal sulfur content |
CN102564592A (en) * | 2012-01-09 | 2012-07-11 | 中国科学院上海光学精密机械研究所 | Device and method for measuring radiation spectrum of pulse flashlight |
WO2014080337A3 (en) * | 2012-11-26 | 2014-07-17 | Koninklijke Philips N.V. | Signal-level based control of power grid load systems |
CN103025036A (en) * | 2012-12-05 | 2013-04-03 | 钢研纳克检测技术有限公司 | Full-digital pulse combined light source |
CN103674248A (en) * | 2013-11-22 | 2014-03-26 | 深圳先进技术研究院 | Spectral data acquisition and transmission system and operating and application methods thereof |
CN203858030U (en) * | 2014-06-03 | 2014-10-01 | 中国地质大学(武汉) | Portable spectrometer pulse xenon lamp power supply and light intensity detection circuit |
Also Published As
Publication number | Publication date |
---|---|
CN104596643A (en) | 2015-05-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103686767A (en) | Antenna downward inclination angle adjusting method and device based on LTE network | |
CN102378917A (en) | Line noise analysis and detection and measurement error reduction | |
CN103954946B (en) | A kind of TR assembly debugging instrument | |
CN108090883A (en) | High spectrum image preprocess method, device and electronic equipment | |
CN107404721A (en) | Internet of things equipment matches somebody with somebody network method, image-pickup method and equipment | |
EP4097449A1 (en) | Methods and systems for classifying fluorescent flow cytometer data | |
CN104596643B (en) | A kind of system and method for PC control xenon lamp and spectrogrph | |
CN101663818B (en) | Apparatus for varying a dynamic range | |
CN111052034A (en) | Method for detecting opening and closing of equipment cover, touch controller, touch pad and electronic equipment | |
CN208334191U (en) | A kind of foul gas detection system | |
CN107543965B (en) | IQ data analysis processing system, signal analyzer and method | |
CN111965128B (en) | Non-spectroscopic infrared carbon dioxide sensor control method, system, medium and application | |
CN112770282B (en) | Data processing system based on intelligent building Internet of things | |
CN115622634A (en) | Control method, test system and storage medium for radiation stray RSE test | |
CN109838375A (en) | Vacuum pump drive dynamic control device | |
CN115183879A (en) | Intelligent ultra-low temperature imaging test platform for infrared focal plane circuit and test method thereof | |
CN108267423A (en) | A kind of operating circuit of raster micro mirror near infrared spectrometer | |
CN114384400A (en) | Positioning system and positioning method for chip abnormal signals | |
CN108226238A (en) | A kind of method that nitrite concentration is measured using interdigital electrode | |
CN112671358A (en) | Design method of comprehensive signal generation processing system | |
CN108111684B (en) | Intelligent mobile terminal | |
JP2771059B2 (en) | Pulse noise detection and correction method for multifunctional remote control transmitter | |
CN110296068A (en) | Hydraulic pump control method, apparatus, chemical analysis instrument and storage medium | |
CN103616566A (en) | Linear average value detector realizing method based on software defined radio | |
CN104485913B (en) | The receiving circuit of logging while drilling apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |