icdevice error: file has different architecture than host
Show older comments
Hello,
Im trying to create a new device object but im running always into trouble with the vendors *.dll.
What I already did:
- Using tmtool to check drivers: NI5690 VXIplug&play driver was found
- 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
Answers (1)
seackone
on 11 Dec 2020
0 votes
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!