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

1 Ansicht (letzte 30 Tage)
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

Antworten (2)

Walter Roberson
Walter Roberson am 8 Dez. 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 am 19 Dez. 2011
First do what Walter suggested. Then,
mex -setup
and follow steps.

Kategorien

Mehr zu Instrument Control Toolbox Supported Hardware finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by