Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW and OceanOptics USB2000

Hi everyone,

I am a new LabVIEW user and I am trying to drive the USB2000 spectrometer with LabVIEW.

 
and I was able to use the USB4000 (which is the older spectrometer model) with the VIs provided with the drivers. I also modified the "acquire continuously" VI adding the possibility to adjust the integration time.
Everything worked fine until I switched to the USB2000 (for its better optical resolution) and I found out that it seems "impossible" to both set the integration time and acquire the sampled spectrum. If I use the basic "acquire continuously" VI it works fine: on the other hand, when I try to add the integration time regulation, it returns me only the first sample. Then, for the following cycles, it remains stuck waiting for the "read optical spectrum" VI results.

I wonder if there is a different procedure to follow in order to set the integration time while acquiring the spectrum (which is a basic function for a spectrometer!) or if I am missing something.
I attach the zipped VI that I modified (the one that works correctly with the USB4000).
Thank you all in advance!
0 Kudos
Message 1 of 3
(5,428 Views)
Maybe the problem is in the value of the integration time.
The 2000, if I remember correctly has microseconds instead of ms timing and a too small integration time is just not good.
greetings from the Netherlands
0 Kudos
Message 2 of 3
(5,397 Views)

Hi Luca,

 

did you try to reinitialize VISA resource to set new integration time?

 

Did you notice any kind of delays?

 

Kind regards.

 

Cla_CUP

0 Kudos
Message 3 of 3
(5,373 Views)