LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Ocean Optics Spectrometer HR2000+ puts out an intensity offset of ~625 points

Highlighted

Hello Community,

 

I am currently working with the Ocean Optics Spectrometer Hr2000+ which is needed to scan the reflection/transmission of several samples. 

I downloaded the driver provided on the NI website and used the given "Acquire Continuous Waveform" as the base for my program (i aleady added some functions like graph scaling, boxcar averaging and saving the current data from the graph to a txt). Basically it works totally fine. The only problem is that the "intensity" or "spectra" on the y-axis has an offset. If no light gets to the Spectrometer the noise fluctuates around 625 points and it should fluctuate around 0 like it does in the already existing programm from Ocean Optics (Oceanview). 

I could just hardcode the offset away but i do not know the actual value of the offset. 

I thank you for your help in advance

0 Kudos
Message 1 of 7
(718 Views)
Highlighted

Blast from the past.

 

I believe OceanOptics actuall yuses part of the linear sensor array to determine the "dark" value per scan and can use this as a baseline to do an "automatic" dark correction.  I don't know if their drivers expose this functionality or not, maybe this is part of the difference you see.  I do remember interfacing myself with such spectrometers in the past and having a bunch of "dead" pixels at the start of each scan until I realised what they were for.

0 Kudos
Message 2 of 7
(686 Views)
Highlighted

The "Read Spectrum" VI has a black pixel median output which you may be able to use.

 

What I have done is take some number of readings (depending on integration time), at the start of your program with all light sources off. Take the average of all readings as the dark reading and subtract this from all future acquisitions. This will probably make values of some pixels negative. You could use in range and coerce to make sure it doesn't go below 0, but for my application I didn't care.

0 Kudos
Message 3 of 7
(682 Views)
Highlighted
Thank you for your help, I think my Problem is solved: At first I averaged the "black Pixel value" Output from the Ocean Optics "Read Spectrum.vi" by adding up the value of each Iteration and dividing the resultung number by the the number of Iterations, just to see if the value fits the Offset. Instead of subtracting a fix value from the Pixel spectrum I am now subtracting the "black Pixel value" of each measurement from the spectrum and the Noise now fluctuates around 0 like it should.
0 Kudos
Message 4 of 7
(670 Views)
Highlighted
Edit: What i ment with "black Pixel value" is "black Pixel median" like gregoryj mentioned.
0 Kudos
Message 5 of 7
(668 Views)
Highlighted

You can find "correct electric dark" in the omnidriver.  

0 Kudos
Message 6 of 7
(450 Views)
Highlighted

Hi Opto_us, I don't believe you can use the Omnidriver (which costs a couple hundred dollars if I remember correctly) and the 3rd party VISA driver at the same time.

0 Kudos
Message 7 of 7
(445 Views)