Abstract:
A method to compensate for lamp spectrum shift, comprises exposing a first detector to a first light from a lamp, thereby generating a first signal indicative of intensity of said first light; exposing a second detector to a wavelength (λ) of a second light from said lamp, thereby generating a second signal indicative of intensity of said wavelength of said second light, after said second light has interacted with a sample; determining a new color temperature (T 1 ) of said first light using the following equation 
     
       T.sub.1 =(F.sub.1 /A).sup.1/x 
     
     where A=F i  /(T i ) x , 
     x=a color temperature exponent of said lamp, F 1  =said first signal, F i  =an initial reference signal, and T i  =an initial color temperature corresponding to said initial reference signal; and determining a first compensated signal (I 1 ) using the following equation 
     
       I.sub.1 32 S.sub.1 /B.sub.1 
     
     where ##EQU1##  S1=said second signal, h=Planck&#39;s constant, c=speed of light in vacuum, and k=Boltzman constant.

Description:
This Application claims the benefit of U.S. Provisional No. 60/074,309 filed Feb. 11, 1998. 
    
    
     TECHNICAL FIELD OF THE INVENTION 
     The present invention generally relates to a method for compensating for changes in the spectrum of a lamp for use in spectrophotometery and, more particularly, to a method for blackbody lamp reference compensation using a single silicon photodiode. 
     BACKGROUND OF THE INVENTION 
     Spectrophotometers may be used to measure the color spectrum on the surface of objects, such as paper, paint chips or fabric swatches. A spectrophotometer for reflectance spectrometry usually includes a light source, such as a light bulb (or lamp) and a power source, optics for transferring the light from the light source to the sample, such as fiber optics, lenses and/or mirrors, and optics for collecting the light, which may also include fiber optics, lenses and/or mirrors. The collected light is then transferred to a device for separating the light into its component wavelengths, such as a diffraction grading or a prism, and then to a detector to measure the intensity of one or more of the different wavelengths of the light. 
     As a reference, the intensity of light generated by the light source may also be transferred by optics to a detector. The signal generated by the detector from the sample light, and the signal generated by the detector from the reference light, may be transferred through a data processing system, such as a computer, and the result displayed or stored. A large variety of configurations and methods are known, and are described in U.S. Pat. Nos. 5,701,175; 5,400,138; 5,319,437; 4,773,761; 3,885,878; and 3,806,256; all of which are incorporated by reference. 
     The typical lamp variation compensation method for the Reflectometry industry is to divide the signal of the sample by the signal of the lamp reference. In monochromatic applications, a monochromatic reference detector, such as a silicon photodiode, is adequate. In polychromatic applications, the best reference is a detector that matches the polychromatic response of the sample detector so that color shifts due to lamp temperature variations can be compensated. However, this requires great cost (e.g., two spectrophotometers instead of one). A typical compromise in lower cost systems is to use the reference reading from a monochromatic detector in each of the denominations of the polychromatic sample readings to compensate for lamp variations. It would nevertheless be desirable to have a method which could accurately compensate for variation in lamp temperature which uses only a single reference detector. 
     SUMMARY OF THE INVENTION 
     A method to compensate for lamp spectrum shift, comprises exposing a first detector to a first light from a lamp, thereby generating a first signal indicative of intensity of said first light; exposing a second detector to a wavelength (λ) of a second light from said lamp, thereby generating a second signal indicative of intensity of said wavelength of said second light, after said second light has interacted with a sample; determining a new color temperature (T 1 ) of said first light using the following equation 
     
         T.sub.1 =(F.sub.1 /A).sup.1/x 
    
     where A=F i  /(T i ) x , 
     x=a color temperature exponent of said lamp, F 1  =said first signal, F i  =an initial reference signal, and T i  =an initial color temperature corresponding to said initial reference signal; and determining a first compensated signal (I 1 ) using the following equation 
     
         I.sub.1 =S.sub.1 /B.sub.1 
    
     where ##EQU2##  S1=said second signal, h=Planck&#39;s constant, c=speed of light in vacuum, and k=Boltzman constant. 
     Accordingly, an object of the present invention is to provide a method to compensate for variations in lamp temperature using only a single reference detector. 
     Another object of the invention is to provide a spectrophotometer which can carry out this novel method. 
     Another object of the invention is to provide a computer program product to cause a spectrophotometer to compensate for variations in lamp temperature. 
     These objects may be achieved by a method comprising: exposing a first detector to a first light from a lamp, thereby generating a first signal indicative of intensity of said first light; exposing a second detector to a wavelength of a second light form said lamp, thereby generating a second signal indicative of intensity of said wavelength of said second light, after said second light has interacted with a sample; determining a new color temperature (T 1 ) of said first light using the following equation 
     
         T.sub.1 =(F.sub.1 /A).sup.1/x 
    
     where A=F i  /(T i ) x , 
     x=color temperature exponent of said lamp, F 1  =said first signal, F i  =an initial reference signal, and T 1  =an initial color temperature corresponding to said initial reference signal; and determining a first compensated signal (I 1 ) using the following equation 
     
         I.sub.1 =S.sub.1 /B.sub.1 
    
     where ##EQU3##  S 1  =said second signal, h=Planck constant, c=speed of light in vacuum, and k=Boltzman constant. 
     These objects may also be achieved by a computer program product, comprising: a computer storage medium and a computer program code mechanism embedded in the computer storage medium for causing a spectrometer to compensate for lamp spectrum shift, the computer program code mechanism comprising: a fist computer code device configured to receive a first signal from the spectrophotometer indicative of intensity of a first light from a lamp, said spectrophotometer comprising said lamp; a second computer code device configured to receive a second signal from the spectrophotometer indicative of intensity of a wavelength of a second light, after said second light has interacted with a sample; a third computer code device configured to calculate a new color temperature (T 1 ) using the following equation: 
     
         T.sub.1 =(F.sub.1 /A).sup.1/x 
    
     where A=F i  /(T i ) x , 
     x=color temperature exponent of said lamp, F 1  =said first signal, F i  =an initial reference signal, and T i  =an initial color temperature corresponding to said initial reference signal; and 
     a fourth computer code device configured to determine a compensated signal (I1) using the following equation: 
     
         I.sub.1 =S.sub.1 /B.sub.1 
    
      where ##EQU4## S 1  =said second signal, h=Planck constant, c=speed of light in vacuum, and k=Boltzman constant. 
     These objects may also be achieved by a spectrophotometer which comprises the computer program product. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     Various other objects, features and attendant advantages of the present invention will be more fully appreciated as the same becomes better understood from the following detailed description when considered in connection with the accompanying drawings in which like reference characters designate like or corresponding parts throughout the several views and wherein: 
     FIG. 1 is the graybody response versus wavelength of a tungsten lamp based on lamp voltage; 
     FIG. 2 is a preferred embodiment C source code for controlling a computer according to the present invention; and 
     FIG. 3 is a schematic illustration of a computer system. 
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     For the purposes of promoting an understanding of the principles of the invention, reference will now be made to the embodiment illustrated in the drawings and specific language will be used to describe the same. It will nevertheless be understood that no limitation of the scope of the invention is thereby intended, and alterations and modifications in the illustrated device, and further applications of the principles of the invention as illustrated therein are herein contemplated as would normally occur to one skilled in the art to which the invention relates. 
     A perfect radiator is called a blackbody. The intensity of radiation emitted by a blackbody is defined by Planck&#39;s Law: ##EQU5## where L=the intensity of radiation given off by the blackbody at a particular wavelength, 
     c=the speed of light in vacuum, 
     h=Planck&#39;s constant, 
     k=Boltzman constant, 
     T=temperature of the blackbody, 
     λ represents a wavelength of the light, 
     and other symbols have their traditional meanings. 
     The blackbody equation can be adjusted for a graybody by multiplying Planck&#39;s Law by the emissivity, ε, of the material which is radiating the light. Furthermore, the total intensity of light of all frequencies emitted by the blackbody, or graybody, can be found by integrating Planck&#39;s Law over all wavelengths. 
     Planck&#39;s Law gives the perfect theoretical result for light emitted from a perfect blackbody. By including emissivity in the equation, Planck&#39;s Law is adjusted for deviations in the &#34;blackness&#34; of the blackbody. However, it is important to recognize that real materials have chemical compositions, and imperfect surface structures which effect the color and intensity of light emitted by a hot body, and therefore it is difficult to predict the true spectrum of real materials with the exactitude suggested by Planck&#39;s Law. 
     The present inventors have made the surprising discovery that using a single reference detector to measure the intensity of light emitted by a lamp of a spectrophotometer, together with the blackbody equation, can be used to much more accurately correct for changes in light emitted by a lamp at specific wavelengths, than previous compensation methods, such as simply dividing the sample signal (at a specific wavelength of light) by the signal of the lamp reference. 
     Compensating for changes in the lamp brightness using Planck&#39;s Law is complex compared with the prior art method of simply dividing the sample signal by the reference signal. Furthermore, a number of assumptions must be accurate or cancel out: the lamp acts as a blackbody or graybody; the reference detector is insensitive to changes in the color of the light as the spectrum of the lamp drifts; and changes in the spectrum of the lamp are due to changes in the temperature of the lamp. The validity of these assumptions was previously unknown. In addition, the complex calculations necessary to use Planck&#39;s Law to compensate for changes in the light from the lamp requires transforming the data from the detectors back and forth, which naturally results in degradation of the signal, including roundoff errors. In spite of all of these sources for loss in accuracy, the present inventors discovered that, in fact, the resulting method for compensating for lamp variation is dramatically more accurate than simply dividing the sample signal by the signal of the lamp reference. 
     The method for compensating for variations in the spectral characteristics of the light source include measuring the reference signal from a reference detector; measuring a sample signal from the sample detector; determining a new color temperature using the reference signal, an initial reference signal and an initial color temperature of the lamp corresponding to the initial reference signal; and determining a compensated sample signal using the initial color temperature and the new color temperature. The initial reference signal may be determined by measuring the signal from the reference detector when the lamp is first installed in the spectrophotometer, or when it is first used in the spectrophotometer. The initial color temperature is usually reported by the manufacturer of the lamp, and is a function of voltage. For example, the GILWAY Lamp No. L513 (miniature halogen reflector lamp) from GILWAY TECHNICAL LAMP has a color temperature at the rated voltage (12 V) of 2,900 K; as a function of voltage, the color temperature is also reported: T(V)=(2900K) ((new voltage)/12 V)) 1/3 . If the rated color temperature of the lamp is not reported by the manufacturer, it may be measured by measuring the temperature of the filament of the lamp by methods well known to those of ordinary skill in the art, such as with an optical pyrometer. 
     The flux (or total intensity of light at all wavelengths) given off by the lamp may also be reported by the manufacturer. In the case of GILWAY Lamp No. L513 (miniature halogen reflector lamp) from GILWAY TECHNICAL LAMP, the flux is proportional to the color temperature raised to the 9.6 power. For a lamp whose relationship between flux and color temperature is not reported by the manufacturer, this relationship can be determined by measuring the intensity of each frequency of light across the spectrum of interest (for example, 380-770 nm) at a variety of different temperatures of the lamp. The temperature of the lamp may be varied by adjusting the voltage supply to the lamp. Once these spectrums are plotted on a graph, the flux over the spectrum of interest can be determined by measuring the area under the curve on a graph of the intensity of the light versus the wavelength of light. Since the flux will be proportional to the color temperature raised to some exponent x (flux=DT x , where D is proportionality constant), plotting the flux versus temperature on log paper will allow determination of the exponent x. The exponent x is the color temperature exponent. It can generally be assumed that lamps of the same specific type will have the same exponent x. Furthermore, it can generally be assumed that lamps having the same filament type, such as a tungsten filament, will all follow the same proportionality relationship; for example, in the case of tungsten lamp, flux is proportional to color temperature raised to the 9.6 power, i.e., color temperature exponent x=9.6. 
     For purposes of the present invention, the signal of the reference detector is assumed to be proportional to the flux given off by the lamp (F=A·(flux) AT x , where F=reference signal, and A is a proportionality constant). Once the value of A for a specific spectrophotometer is determined, then a change in the reference signal can be used to calculate the change in color temperature. For example, when F i  =initial reference signal, F 1  =new reference signal, T i  =an initial color temperature corresponding to the initial reference signal, and T 1  =new color temperature corresponding to the new reference signal, then 
     
         T.sub.1 =(F.sub.1 /A).sup.1/x and A=F.sub.i /(T.sub.i).sup.x. 
    
     In the case of a GILWAY Lamp No. L513 (miniature halogen reflector lamp) from GILWAY TECHNICAL LAMP, the color temperature exponent is x=9.6. Therefore, when a spectrophotometer is initially set up, and the initial color temperature is known (or measured) and the initial reference signal is measured, the proportionality constant A can be determined. Then for each subsequent reference signal (F 1 , F 2 , F 3 , etc.) a new corresponding color temperature (T 1 , T 2 , T 3 , etc.) can be determined. 
     Once a new color temperature is determined, then any change in intensity of a sample signal at a specific wavelength, λ, can be compensated for any drift in the spectrum of the lamp. For example, when each sample signal is measured (S 1 , S 2 , S 3 , etc.) a reference signal is also measured (F 1 , F 2 , F 3 , etc.). For each reference signal measured, a new corresponding color temperature (T 1 , T 2 , T 3 , etc.) is also determined. For each new color temperature, a corresponding signal correction constant (B 1 , B 2 , B 3 , etc.) is determined, and then a corresponding compensated sample signal (I 1 , I 2 , I 3 , etc.) is determined by dividing each sample signal with its corresponding correction constant (i.e. I 1  =S 1  /B 1 ). The correction constant B is a ratio of the intensity of radiation emitted at the wavelength (λ) of interest by a blackbody at the new color temperature, divided by the intensity of radiation emitted by a blackbody at the wavelength (λ) of interest at the initial color temperature. Since the numerator of Planck&#39;s Law is composed of constants, and furthermore the wavelength of interest (λ) is also constant with regard to B, the ratio of L (new color temperature)/L (initial color temperature)=B, and therefore ##EQU6## where the compensated sample signal is I 1  =S 1  /B 1 . 
     In calculating B 1 , the emissivity of the tungsten filament is assumed to be constant from time 1 (when the initial reference signal F i , is obtained) to time 2 (when the reference signal, F 1 , is obtained) and is therefore canceled out of the equation. This may not be true, especially with an aging filament. Another compensation factor or ratio, E, could be empirically determined, E=ε 1  /ε i , where a new signal correction constant, B=B·E. However, it is believed that such a factor or ratio is secondary to color temperature variation. 
     The present invention only requires a single reference detector, such as a silicon detector from HAMAMATSU (S1226-5BQ). A reference signal generated by exposing the reference detector to light from the lamp of the spectrophotometer may be taken prior to each sample signal, thereby generating a reference signal (F 1 , F 2 , F 3 , etc.) for each sample signal (S 1 , S 2 , S 3 , etc.). Alternatively, although not preferred, a single reference signal may be taken for each set of multiple sample signals. 
     Once the sample signal and reference signal have been collected, the data manipulation for determining the compensated sample signal can be carried out using a computer system. FIG. 3 is a schematic illustration of a computer system. A computer 100 implements the method of the present invention, wherein the computer housing 102 houses a motherboard 104 which contains a CPU 106, memory 108 (e.g., DRAM, ROM, EPROM, EEPROM, SRAM and Flash RAM), and other optional special purpose logic devices (e.g., ASICs) or configurable logic devices (e.g., GAL and reprogramable FPGA). The computer 100 also includes plural input devices, (e.g., a keyboard 122 and mouse 124), and a display card 110 for controlling monitor 120. In addition, the computer system 100 further includes a floppy disk drive 114; other removable media devices (e.g., compact disc 119, tape, and removable magneto-optical media (not shown)); and a hard disk 112, or other fixed, high density media drives, connected using an appropriate device bus (e.g., a SCSI bus or an Enhanced IDE bus). Although compact disc 119 is shown in a CD caddy, the compact disc 119 can be inserted directly into CD-ROM drives which do not require caddies. Also connected to the same device bus or another device bus as the high density media drives, the computer 100 may additionally include a compact disc reader 118, a compact disc reader/writer unit (not shown) or a compact disc jukebox (not shown). In addition, a printer (not shown) may also provide printed listings of sample signals, reference signals or compensated signals. 
     The system further includes at last one computer readable media. Examples of such computer readable media are compact discs 119, hard disks 112, floppy disks, tape, magnetooptical disks, PROMs (EPROM, EEPROM, Flash EPROM), DRAM, SRAM, etc. 
     Stored on any one or on a combination of the computer readable media, the present invention includes software for controlling both the hardware of the computer 100 and for enabling the computer 100 to interact with the human user. Such software may include, but is not limited to, device drivers, operating systems and user applications, such as development tools. Such computer readable media further includes the computer program product of the present invention for compensating spectrum shift of a lamp. An example of a source code program, written in the C language, for a computer program product of the present invention, is shown in FIG. 2. 
     The computer system may be directly connected to the spectrophotometer so that the signals generated by the sample and reference detector are sent directly to the computer system. Furthermore, the computer system can directly control all aspects of the spectrophotometer, as is well known to those of ordinary skill. In addition, it is also possible to integrate the computer system with the spectrophotometer into a single unit. Possibly, but less preferred, the reference and simple signals from the spectrophotometer can be input to the computer system by hand, through the keyboard. 
     Having generally described this invention, a further understanding can be obtained by reference to certain specific examples which are provided herein for purposes of illustration only and are not intended to be limiting unless otherwise specified. 
     EXPERIMENT 
     Reference and sample signals were measured using a spectrophotometer. In the experiment, the applied voltage was actively controlled to simulate the aforementioned color fluctuations in the light source. Knowing the applied voltage allowed determination of the color temperature as well; the color temperature is proportional to the applied voltage raised to the 1/3 power. Three different sample wavelengths, λ1=487 nm, λ2=550 nm and λ3=694 nm, were used. L was determined for the rated (initial) color temperature and each specified wavelength. As the applied voltage was varied (and the color temperature as well), L was recalculated for each specified wavelength. The ratio of L (new color temperature) to L (initial color temperature) is B, a measure of the change in coloration of the light source from the rated values. Dividing the sample measurements by B gives a compensated sample signal (I) for the fluctuations in the color of the lamp. 
     A tungsten GILWAY Lamp No. L513 (miniature halogen reflector lamp) from GILWAY TECHNICAL LAMP was used in the spectrophotometer, and a silicon photodetector was used as the reference detector. For λ1=487 nm, voltage to the lamp (V), the sample signal (Sλ1 i ), the reference signal (R i ) and the color temperature (TRATE), are shown in Table 1, along with the signal correction constant (RATIO), the sample signal corrected using the present method (NEWREADING) and the sample signal corrected by the prior art method of simply dividing the sample signal with the reference signal (OLDREADING). 
     
                       TABLE 1______________________________________                            NEW-    OLD-  V     S1.sub.i  R.sub.i  TRATE             RATIO  READING   READING______________________________________10.8 27      793    2.8 · 10.sup.3                      0.694 38.886  0.034  12   41           1043     2.9 · 10.sup.3     1       41                                     0.039  13.2  58           1397    2.994 · 10.sup.3 1.376   42.153                                     0.042______________________________________ 
    
     FIG. 1 is a graph of intensity or radiance, L, versus the wavelength, λ. ##EQU7## 
     Table 2 shows the percentage differences between the uncorrected sample signals (SMP%DIFF i ), the sample signals correct by the inventive method (NEW%DIFF i ), and the sample signals corrected by the prior art method of simply dividing by the reference signal (ODL%DIFFi). 2900K is the rated color temperature of the lamp at 12 Volts. Relative color temperature change=(relative voltage change) 1/3 . These readings were taken at 12 V+/-10% lamp voltage. 
     
                       TABLE 2______________________________________V      NEW%DIFF.sub.i               OLD%DIFF.sub.i                          SMP%DIFF.sub.i______________________________________10.8   -5.156       -13.385    -34.146  12          0                     0                      0  13.2         2.182                 5.617                  41.463______________________________________ 
    
     The percent difference in average measurements when the lamp voltage is varied from the 12 V is summarized in Table 3. 
     
                       TABLE 3______________________________________S(mV)     Sample signal divided by reference                        Present invention______________________________________V = 10.8 V  487    -33.33%  -12.38%          -2.26%  550  -32.20%  -11.40%                          -4.67%  694  -26.14%  -3.50%                           -2.85%V = 13.2 V  487    41.46%   11.17%           1.33%  550  35.59%      7.34%                               0.73%  694  29.02%      1.9%                                1.61%______________________________________ 
    
     The readings calculated from the Graybody ratio. 
     The variables and formulas used in the experiment are as follows: 
     λ1 i  =487, the wavelength [nM] of interest in the spectrometer; i: 1.3 
     Sλ1 i  =The dark corrected readings of samples from the spectrometer at λ1. 
     R i  =The dark corrected readings from the Si detector which are set equal to the TRATE values during the factor calibration for each instrument. Future readings are then transposed into RATIO. 
     Initial color temperature, TNOM=2900K; initial voltage for the initial color temperature, VNOM=12 V. ##EQU8## h=6.63·10 -34  c=2.00·10 8  k=1.38·10 -23  ε=0.33 
     CONCLUSION 
     While simply dividing by the reference signal of the silicon detector helps to compensate the readings for fluctuations in the applied voltage (representing fluctuations in the color temperature), the improvement is not impressive. The technique of the present invention shows greater improvement. Applying this to a wavelength of 580 nm, we can use a silicon photodiode to measure the flux from the lamp. Then, as discussed above, translate that information into the color temperature of the lamp. To determine the &#34;starting point,&#34; the instrument would have to go through calibration every time a new bulb is installed. 
     Obviously, numerous modifications and variations of the present invention are possible in light of the above teachings. It is therefore to be understood that within the scope of the appended claims, the invention may be practiced otherwise than as specifically described herein.