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

1 view (last 30 days)
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)

Walter Roberson
Walter Roberson on 8 Dec 2011
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.

Vinod
Vinod on 19 Dec 2011
First do what Walter suggested. Then,
mex -setup
and follow steps.

Categories

Find more on Instrument Control Toolbox Supported Hardware in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!