Program works in 2008 but not in 2012
古いコメントを表示
I write a program to control Ocean optics spectrum analyzer through usb.
OmniDriverJarFilePath = 'C:\Program Files\Ocean Optics\OmniDriver
\OOI_HOME\OmniDriver.jar';
OmniDriverJavaClass = 'com.oceanoptics.omnidriver.api.wrapper.Wrapper';
spectrometerIndex = 0;
MatlabJavaClassPath = javaclasspath;
if(isempty(MatlabJavaClassPath))
javaaddpath(OmniDriverJarFilePath);
end
import(OmniDriverJavaClass);
clear wrapper
wrapper = Wrapper(); % used when called by a function
numoospec = wrapper.openAllSpectrometers();
It works well in m Matlab 2008, however, when I try to run it in Matlab 2012, it show error at the last command.
Java exception occurred:
java.lang.UnsatisfiedLinkError:
com.oceanoptics.uniusb.UniUSB.NatUSBGetInterfaceDescriptor(JLcom/oceanoptics
/uniusb/USBInterfaceDescriptor;)V
at com.oceanoptics.uniusb.UniUSB.NatUSBGetInterfaceDescriptor(Native Method)
at com.oceanoptics.uniusb.UniUSB.openDevice(UniUSB.java:106)
Does anybody know what's going on? Thanks a lot.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!