Unable to load .dll using load library. I get the error "dll file has different architecture than the host"
조회 수: 5 (최근 30일)
이전 댓글 표시
I am trying to use the command
loadlibrary('E516_DLL.dll', 'E516_DLL.h')
And I am unable to view the functions or use them as I get the following error
Error using loadlibrary
There was an error loading the library
"C:\Users\gs109971\Desktop\Adi\CD-Mirror_3.0.1\E516_GCS_DLL\E516_DLL.dll"
'C:\Users\gs109971\Desktop\Adi\CD-Mirror_3.0.1\E516_GCS_DLL\E516_DLL.dll' has different architecture than
the host.
Caused by:
Error using loaddefinedlibrary
'C:\Users\gs109971\Desktop\Adi\CD-Mirror_3.0.1\E516_GCS_DLL\E516_DLL.dll' has different architecture
than the host.
How can I fix this error?
댓글 수: 1
Walter Roberson
2022년 9월 30일
편집: Walter Roberson
2022년 9월 30일
Is that for a Promet PI E-516 Phase Shift Controller, perhaps for use in an NI-DAQ chassis?
답변 (1개)
Cel Kulasekaran
2022년 9월 30일
What is your localhost architecture? Or rather, what compiler do you have configured in Matlab, x64 or x86, or...? You may have to match that for loadlibrary to work.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!