error constructing a device object from matlab instrument driver via instrument control toolbox

Hi,
I am trying to construct a device object from a matlab instrument driver via instrument control toolbox. I have converted a VXIplug&play driver into a matlab instrument driver. Now I wanto to create a device object with
obj=icdevice('matlab_rssmb_driver.mdd','TCPIP::139.11.161.251::INSTR')
This yields an error saying:
Error using rethrow
Input must be a structure.
Error in icdevice>localLoadLib (line 535)
rethrow e;
Error in icdevice>localLoadVXIPnPLibrary (line 431)
errflag = localLoadLib(driverName, binary, includeFile, includePath, visaIncludePath);
Error in icdevice>localCreateWithMatlabInstrumentDriver (line 774)
driverFound = localLoadVXIPnPLibrary(vxiDriverFileName);
Error in icdevice (line 235)
obj.jobject = localCreateWithMatlabInstrumentDriver(mdd, hwobj,optionstring);
Where is the problem? Cheers Stefan

Answers (2)

The immediate error is that the code should be using
rethrow(e);
instead of
rethrow e;
If you were to change that, some level would show you the actual error message, what-ever it may be.

Categories

Asked:

on 8 Dec 2011

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!