필터 지우기
필터 지우기

icdevice error: file has different architecture than host

조회 수: 3 (최근 30일)
seackone
seackone 2020년 12월 8일
답변: seackone 2020년 12월 11일
Hello,
Im trying to create a new device object but im running always into trouble with the vendors *.dll.
What I already did:
  1. Using tmtool to check drivers: NI5690 VXIplug&play driver was found
  2. Using midedit to create a Matlab instrument driver (I used and imported the previously found VXIplug&play driver)
The Instrument Driver shows up in tmtool as well and all the few functions are found:
Now, if Im trying to create a device object, I always receive an error:
obj = icdevice('ni5690.mdd', 'PXI28::9::INSTR')
Error using instrgate (line 20)
Failed to load shared library.
Error in icdevice>localLoadVXIPnPLibrary (line 534)
errflag = instrgate('privateIviCLoadlibrary',driverName, binary, includeFile, includePath, visaIncludePath);
Error in icdevice>localCreateWithMatlabInstrumentDriver (line 779)
driverFound = localLoadVXIPnPLibrary(vxiDriverFileName);
Error in icdevice (line 267)
obj.jobject = localCreateWithMatlabInstrumentDriver(mdd, hwobj,optionstring);
Caused by:
Error using loadlibrary
There was an error loading the library "C:\Program Files\IVI Foundation\VISA\Win64\Bin\ni5690.dll"
'C:\Program Files\IVI Foundation\VISA\Win64\Bin\ni5690.dll' has different architecture than the host.
Error using loaddefinedlibrary
'C:\Program Files\IVI Foundation\VISA\Win64\Bin\ni5690.dll' has different architecture than the host.
MEX is configured to use 'MinGW64 Compiler (C)' for C language compilation. Am I doing something wrong or is there a problem with the vendors *.dll?
Best regards

답변 (1개)

seackone
seackone 2020년 12월 11일
No ideas?
I just need to know if it is a matlab problem or a problem with the provided *.dll. For the last case, I need to contact the vendor of the device.

카테고리

Help CenterFile 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!

Translated by