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
답변 (2개)
Walter Roberson
2011년 12월 8일
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
2011년 12월 19일
First do what Walter suggested. Then,
mex -setup
and follow steps.
카테고리
도움말 센터 및 File Exchange에서 Instrument Control Toolbox Supported Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!