08-17-2016 04:11 PM
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.
08-17-2016 04:18 PM
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?
08-17-2016 07:36 PM
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
08-17-2016 07:39 PM
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
08-18-2016 12:15 AM
08-18-2016 03:32 AM
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.
08-18-2016 08:09 AM
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:
But still if I run the same code I'll receive the same error!
Would you please help me with that?
REgards
08-18-2016 08:26 AM
Hi,
are we mixing things? We are talking about OmniDriver under LabView, not Matlab, right?
Cheers, Oli
08-18-2016 08:34 AM
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
08-18-2016 08:42 AM
hi,
let´s solve that via email, then.