Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Hamamatsu Mini-Spectrometer

Solved!
Go to solution

Hi to everyone,

I have been trying to make a programme for the mini-spectrometer, and my main problem is when I want to change the integration time value during the adquisition of data. My idea is to change the integration time automatically when the light ammount is too high. 

When I do this, an error "22" appears, that means "it was not possible to read new data". 

Somebody knows why this happen?

 

Thanks

0 Kudos
Message 11 of 25
(2,455 Views)

A return of "22" means the spectrometer is telling you that it has not acquired new spectral data.  As you are changing the integration time, it probably needs more time.  Create a loop to check the return until something besides "22" is returned.  A return of "0" means the spectrometer has new spectral data.

0 Kudos
Message 12 of 25
(2,428 Views)

You are right, that was the problem. I realized shortly after making the question. Thank you very much!

0 Kudos
Message 13 of 25
(2,417 Views)

I'm trying to do some signal maths based on the spectal response butu as the wavelengths overlap slightly/get blinded by other signals i need to do some signal decomposition. Using the example vis I can't find a way to do this. Is it possible using the dll outputs as shown?

0 Kudos
Message 14 of 25
(2,344 Views)

You can use labview fitting tools, like "Gaussian Peak fit.vi" in LABVIEW 8.5.

0 Kudos
Message 15 of 25
(2,330 Views)

I need to apply the deconvolution vi first to separate the peaks as they overlap, or use multiple gaussian fits which also need to overlap.  The problem with the first method is that i can't get either of the deconvolution Vis to work with the example outputs (which are an xy graph/array of values) and the number of of overlapping guassian curves/wavelengths present changes randomly and constantly.

0 Kudos
Message 16 of 25
(2,323 Views)

Deconvolution vis work with "Dynamic Data" input, then convert 1D array (example output) to Dynamic Data, that can be found in: Functions: signal manipulation: "To DDT".  (I am not sure this is your problem)

0 Kudos
Message 17 of 25
(2,320 Views)

It helps a bit, at least i can now connect to it. However the signal i have coming in is the XY, i still don't have anything to connect to the Y, so no result.

0 Kudos
Message 18 of 25
(2,304 Views)

So you are trying to obtain the system efficiency (Y). But, can you explain how are you doing it, in more detail?

0 Kudos
Message 19 of 25
(2,294 Views)

The more i look at it the less convinved i am that a straight deconvolution will work. My problem is explained better in this post http://forums.ni.com/t5/LabVIEW/fitting-multiple-gaussians-to-curve/m-p/1886139/highlight/false#M636... (which i made before i found this topic). Essentially i need to remove the effects of neighbouring wavelengths on each other without knowing what they are.

 

Thanks for the efforts and time!

0 Kudos
Message 20 of 25
(2,292 Views)