Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Trubble initiating USB 2000 Ocean optics spectrometer

You have already downloaded the "driver".

The code you see is the first communication.

Did you get an error message (if so please name it) or does it just stop?

 

 

greetings from the Netherlands
0 Kudos
Message 31 of 58
(2,763 Views)

Hi

Thank you for your quick reply. I figured the problem! The problem has to do with the USB configuration. Labview USB4000 USB driver must be used in place of the Windows USB driver. I know this was the recurring theme in the previous replies, but once this is done, the Labview VISA recognizes the USB4000.

This is great! Thank you so much.

If anyone needs help along these lines, please don't hesitate to post it. I struggled with this problem for 2 days!

Allan

 

0 Kudos
Message 32 of 58
(2,758 Views)

Hi friends,

I have downloaded the drives for Ocean Optics USB2000 spectrometer. I have a LabVIEW 2010, VISA 5.6 and Windows XP SP3. I installed the driver from VISA-USB folder and can find the device in MAX. In MAX the device is reported as working, and same for Windows device manager. Currently I am trying to run a simple example code "Acquire continuous waveform" with default parameters. I can successfully shoose a USB-VISA device in front panel. However, then the code comes to the point where it excites "read spectra.vi" the programm freezes. Stop button does not help, so I have to hit "abort". Attached is IN\O trace.

Did anyone have same trubbles?

Thank you

0 Kudos
Message 33 of 58
(2,699 Views)

I see nothing obvious.  The get spectrum is send (0x09) and the last thing that happens is that it switched to end point 2 and tried a read.  Apparently nothing came back.  Just to make sure there was no general issue with this driver I tried a usb2000 and it ran fine.  Do you have any OOI software to test this device with?  Its possible the device is broken.

 

James

0 Kudos
Message 34 of 58
(2,691 Views)

Just had a thought.  It is possible your integration time is longer than your timeout?  I don't see any commands setting integration time at all in the trace so it is likely at the default for the device which I believe is 100 ms.

0 Kudos
Message 35 of 58
(2,690 Views)

Hi, I've tried to set the integration time up. It does not help.

The spectrometer works OK with standart OOI program.

I installed LabView on another computer (thought that could be a windows problem) but it did not help. So frustrating(

0 Kudos
Message 36 of 58
(2,682 Views)

Hi

Did you correctly switch between Ocean optics and the raw LabVIEW driver as reported in the readme?

It is not just running one or the other software but really switch the driver!

greetings from the Netherlands
0 Kudos
Message 37 of 58
(2,674 Views)

The trace suggests he is talking to the device which means he must have switched drivers.

0 Kudos
Message 38 of 58
(2,671 Views)

You are right, I did not check the vi

greetings from the Netherlands
0 Kudos
Message 39 of 58
(2,663 Views)

Hi, I've gone to my friend, who has 8.6 version. Still nothing works. Hell knows what is the problem, but I really need to get this device working. I've replaced subVI "read spectrum" from original example (continious...) with internal scheme of subVI. There is a mistake that goes from "read VISA": Timeout expired before operation completed. (0xBFFF0015 (VI_ERROR_TMO))

I've set up the timeout  and integration times, but it does not help.

 

NI supporters, please-please check the code and the SPY report. Thank you.

0 Kudos
Message 40 of 58
(2,652 Views)