필터 지우기
필터 지우기

When interfaced with Mindwave generates error: Error using loadlibrary

조회 수: 4 (최근 30일)
Prajna Upadhyaya
Prajna Upadhyaya 2017년 5월 17일
편집: Manish Annappa 2017년 5월 19일
While the code for the Mindwave is written inspite of the having ThinkGear.dll, it generates the error: Error using loadlibrary Could not find file ThinkGear.h.
Error in loadlibrary
Error in program (line 21) loadlibrary('ThinkGear.dll');
Error in loadlibrary
Error in program (line 21) loadlibrary('ThinkGear.dll');
Kindly help me with this.

답변 (1개)

Manish Annappa
Manish Annappa 2017년 5월 19일
편집: Manish Annappa 2017년 5월 19일
According to the tutorial link (refer to the MATLAB section in the web page) below, ThinkGear SDK should also have a header file ThinkGear.h along with the DLL.
So, to load ThinkGear.dll in MATLAB, even the header file name should be included as an argument to the 'loadlibrary' function as shown below: loadlibrary('ThninkGear.dll','ThninkGear.h');
Refer to the link below for more information on 'loadlibrary' function:
https://www.mathworks.com/help/matlab/ref/loadlibrary.html

카테고리

Help CenterFile Exchange에서 C Shared Library Integration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by