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

1 vue (au cours des 30 derniers jours)
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

Réponses (2)

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

Catégories

En savoir plus sur Instrument Control Toolbox Supported Hardware dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by