Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Trubble initiating USB 2000 Ocean optics spectrometer

Sorry, I can't attache anything - some problems with the website. What a rot((

Will do it a bit later today.

 

UPD


I opend MAX - device manager - Ocean Optics spectrometer. MAX says "This device is working properly."

Then I go to visa test panel and check everything:

Manufacturer: USB2000 1.03.1 D (0x2457)

Model: Ocean Optics USB2000 (0x1002)

Serial number: NI-VISA-0

Pipe settings:

         Control Pipe: Default (0)

          Bulk in Pipe 82

          Bulk Out 02

I/O settings :

Timeout 20000

I/O protocol : normal

 

View attributes:

there is the only with error:

Interupt In Pipe Status: Error VISA:  (Hex 0x3FFF0082) The specified object reference is uninitialized.

 

Input/output : gives error when "querry", "read":

 

Read Operation
Error

VISA:  (Hex 0xBFFF0015) Timeout expired before operation completed.

 

 

Gives error when "read status byte":

 

Read STB Operation
Error

VISA:  (Hex 0xBFFF003A) Unable to start operation because setup is invalid (due to attributes being set to an inconsistent state).

 

That's it.

 

 

0 Kudos
Message 41 of 58
(4,528 Views)

Hi.

Did you manage to solve this problem? I'm getting the same errors, but I'm using the ocean optics usb 4000.

Can anyone tell me how can I fix this?

Thanks.

  

0 Kudos
Message 42 of 58
(4,468 Views)

What exactly is your problem?

Did you install the correct driver as shown in the readme.html?

greetings from the Netherlands
0 Kudos
Message 43 of 58
(4,460 Views)

Hello Albert,

 

Thank you for your response.

 

 

I'm having problems controlling an ocean optics usb4000 spectrometer with LabView.

 

Software details that I'm using:

-windows Xp, sp2
-Labview 2011, student edition
-NI_VISA 5.1.2
-USB4000 firmware version 3.00.03

 

Yes, I read it. I'm using the NI drivers for the usb4000 for windows xp (INF and PNF files), I even deleted the ones from OO but I keep getting the same errors.

 

The MAX recognises the device, USB4000, and says "The device is working properly".

 

But in the atributes there is one error, HEX 0x3FFF0082, "The specified object reference is uninitialized".

 

PrintScreen:

configurarion_view_atributes.JPG

 

 

In the input/output, MAX test panel returns errors when "query", "read" and "Read Status Byte". Visa (HEX 0xBFFF0015): "Timeout expired before operation completed".

 

PrintScreen:

 

IO_basicIO_read.JPG

 

In the input/output usb control the error is Read STB operation error, VISA: (HEX 0xBFFF003A), "Unable to start operation because setup is invalid (due to attributes being set to an inconsistent state)".

 

In the advanced,MAX test panel returns errors when execute "Events" and "Triggers". VISA: (HEX 0xBFFF003A).

 

 

I even tried the USBRAW-control.vi from the examples folder of Labview and it gave me an output error code 107367418.

 

PrintScreen:

control_vi_error.JPG 

 

 

And that's it.

I would like to thank in advance for your time and attention.

 

Best regards,

ToyB

 

 

 

 

 

 

 

 

 

 

0 Kudos
Message 44 of 58
(4,447 Views)

I don't see the instrument driver listed, what does initialise.vi do

The driver from the instrument driver network is called from there, you should not need the basic IO or troubling with MAX.

greetings from the Netherlands
0 Kudos
Message 45 of 58
(4,430 Views)

Hi, a few months ago I installed the driver to use the USB4000, HR4000 and QE65000 spectrometers with LabVIEW 2010. Recently, I measured the spectrum of the HG-1 Mercury Argon Calibration Source with QE65000 spectrometer using either SpectraSuite Software and a LabVIEW program ("Ocean Optics 2000 4000 Acquire Continuous Waveform.vi, example of library"). When I obtained both spectra I observed that with LabVIEW program there is a shift to infrared region, so I would like to know if there are problems with the example program of the library or what is the problem?. Because this shift can provoke stronger effects on the measurements. Attached to the this message I send the image of the spectra obtained.

The black graphic is the spectrum obtained with example program of LabVIEW including in  ocean optics library. The red graphic is the spectrum obtained with SpectraSuite and which coincides with the real spectrum of the HG-1 Lamp.

 

Regards, Diego

0 Kudos
Message 46 of 58
(4,339 Views)

Hi

First of all you should not hijack another post with a new message but open a new post.

 

Having said that:

In both LabVIEW and Spectra suite the software relies on the settings in the spectrometer to calculate the wavelength scale.

Did you correctly read those coefficients and can you check which one was correct with the Hg lines?

 

And which LabVIEW driver did you use (downloaded from NI?)

 

greetings from the Netherlands
0 Kudos
Message 47 of 58
(4,314 Views)

There is a discrepancy between the LabVIEW drivers and the OOI drivers.  NI did not know that some 10 pixels on the Qe65000 are moved from the front to the back in our Omnidriver software.  This matters only because our manufacturing uses our driver internally to wavelength calibrate our devices, which means the calibration will be off by this amount when using the NI drivers.  The simple fix is to move the first 10 (I think its 10, please check) pixels to the back of the array in the "read spectra.vi".  I have put a quick fix together but need someone to verify it.  Everything from there onward should work fine.

0 Kudos
Message 48 of 58
(4,284 Views)

Thanks for updating this.

 

You indeed moved the pixels to the back, but with rotate (-10) pixels I get the same result, without rebuilding the array, this makes it 10 times faster

Furthermore there is a problem with the merge error in this vi that is already solved on the NI webpage.

In fact the order inwhich the errors are merged is the wrong way around.

When not wiring a visa resource (and that happens sometimes) you will get the wrong errormessage (power needs to be cycled) instead of resource unknown.

 

So please update the internal used NI software.

 

PS I'm not an NI employee , just using ocean optics spectrometers.

greetings from the Netherlands
0 Kudos
Message 49 of 58
(4,279 Views)

Hi,

I still have exactly the same problems that you have dscribed. So I finally gave up.

It does not work with any vrsion of LV or visa. usb200 works well with original soft from OO.

0 Kudos
Message 50 of 58
(4,260 Views)