LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Ocean Optics USB4000 Spectrometer

Go to the ocean optics website. and download it. it's free.

http://oceanoptics.com/product/omnidriver/

You can get the 32 or 64 bit versions, depending on what your labview is.

0 Kudos
Message 261 of 286
(3,481 Views)

no I can not see that and I dont see the directory that you have mentioned.

I'm installing the omnidriver for windows right now.

So you think after that I wold be able to find the device?

 

0 Kudos
Message 262 of 286
(3,473 Views)

Dear friend

 

Hello again

many thanks for your valuable advice

I hade installed omnidriver

 from this link:

http://oceanoptics.com/support/software-downloads/

But still when I want to open an example of the labview of the link it ask me to open Ocean Optics 2000 4000.lvlib

I dont know where can I find that!:-(

And if I cancel that the labview program wont be able to find the spectrameter

I have also tried this link to run it with matlab:

http://oceanoptics.com/faq/controlling-usb-spectrometers-omnidriver-matlab/

and although I hav followed what this link mentioned (I have saved the libpath.text in OOI_home) still I recived the same error

I should mention that my computer is windows 7 , 64 bit and  my labview is 2010 32 bit

 

Can you please help me with that!?

Many thanks in advance

 

0 Kudos
Message 263 of 286
(3,458 Views)

Hi

It seems that there are sufficient number of responders to help you with your problem. I'm going to bow out of this thread.

Allan

0 Kudos
Message 264 of 286
(3,457 Views)

where did you install the LabVIEW driver?

It should be installed by default in the instr.lib folder inside the LabVIEW folder.

 

Everything is included normally and the omnidriver is not needed at all.

greetings from the Netherlands
0 Kudos
Message 265 of 286
(3,446 Views)

Hi,

the OmniDriver contains all the things you will need - besides LabView of course. There is a subtile differences between the different interface packages. The OmniDriver uses the .NET interface in LabView while the NI provided lvlib is working entirely different.

Officially, the NI provided lvlib is considered a rogue instrument driver (you may want to call it a hack) to our official drivers and there is NO support of this from the OceanOptics side. OceanOptics also rejects any warranty case that is linked to the use of the NI driver. (personal note: I smoked my NIRQuest in the early days of the 2000 4000 library as the surge protection of the InGaAs chip was not properly included and my prof was not happy about the bill he had to pay.)

For the .NET interface mounting the instrument is fairly easy. A simple DAQ cycle can look like in the attached snippet for instruments not involving the TEC (like your instrument).

 

Please get in touch with me in case of questions directly. I am working from Europe, so please take time differences into account.

0 Kudos
Message 266 of 286
(3,435 Views)

Dear Friend

Many thanks for your help,

It means alot.

I have followed your advice and I have checked  this:

"Under Windows 7 this can be checked for instance under "Startmenu --> Devices and Printers". The spectrometer should show up under "unspecified". If you double click the icon the spectrometer status should be displayed as "working properly".

and also this:

" The launched program should detect the spectrometer attached, set the integration time and display a bunch of data before terminating."

Every things was fine.

But when I tun matlab and due to this link I write this code:

avaaddpath('C:\Program Files\Ocean Optics\OmniDriver\OOI_HOME\OmniDriver.jar');
>> wrapper = com.oceanoptics.omnidriver.api.wrapper.Wrapper();
>> wrapper.openAllSpectrometers();

 I recieve this error:

java.lang.ExceptionInInitializerError
            at com.oceanoptics.uniusb.USB.<init> (USB.java:20)
            at com.oceanoptics.omnidriver.features.USBImpl.<init> (USBImpl.java:62)
                 (blah blah blah)
            at com.oceanoptics.omnidriver.api.wrapper.Wrapper.openAllSpectrometers
                 (Wrapper.java:507)
Caused by: java.lang.RuntimeException: Failed to load any native library for USB.  
                 Tried base filenames: NatUSB_64, NatUSB_32, NatUSB
            at com.oceanoptics.uniusb.UniUSB.<clinit>(UniUSB.java:75)

 

due to this link's advice I have followed this:

  1. Launch MATLAB
  2. Type “mr = matlabroot” (this should display the path to matlabroot on your installation)
  3. Close MATLAB
  4. Open matlabroot/toolbox/local/librarypath.txt
    1. (you may have to manually open Accessories -> WordPad from the Start Menu by right-clicking “Run As Administrator”)
  5. Add path to OOI_HOME on your installation (e.g.I have saved the librarypath.text in OOI_HOME directory)
  6. Relaunch MATLAB

But still if I run the same code I'll receive the same error!

 

Would you please help me with that?

 

REgards

0 Kudos
Message 267 of 286
(3,423 Views)

Hi,

are we mixing things? We are talking about OmniDriver under LabView, not Matlab, right?

Cheers, Oli

0 Kudos
Message 268 of 286
(3,415 Views)

Dear Oli

Due to your advice every things seems working fine right now with labview and Omnidriver.

But I though that If I install omnidriver I would also be able to control spectrameter with matlab.Right?

Then I faced the issue that I mentioned above which I need your valuable help with.

 

Bests

 

0 Kudos
Message 269 of 286
(3,405 Views)

hi,

let´s solve that via email, then.

0 Kudos
Message 270 of 286
(3,399 Views)