icdevice error: file has different architecture than host

2 visualizaciones (últimos 30 días)
seackone
seackone el 8 de Dic. de 2020
Respondida: seackone el 11 de Dic. de 2020
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

Respuestas (1)

seackone
seackone el 11 de Dic. de 2020
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.

Community Treasure Hunt

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

Start Hunting!

Translated by