SMI eye tracking with Matlab
Hi everyone,
looking for a solution to my frustrating Matlab-SMI battle Iv'e come along this website. which looks cool! good going.
I'm a cognitive phd student, trying to make my matlab experiment (psychtoolbox) work with SMI eye-tracker.
has anyone done that perhaps?
there's an SMI SDK, and all example scripts begins with the command
loadlibrary('iViewXAPI.dll', 'iViewXAPI.h');
this creates a long error on my matlab (pasted down here) which I do not understand. admittidely, I don't understand a lot of what's supposed to happen in this line, so the error could be very small and idiotic. but I'm lost. if anyone has experience with this kind of thing (Matlab compiling external C scripts) and has any tips I would be very very grateful.
Thanks,
Amir
Error using loadlibrary
Building iViewXAPI_thunk_pcwin64 failed. Compiler output is:
cl -I"C:\Program Files\MATLAB\R2015b\extern\include" /W3 /nologo -I"C:\Program Files\MATLAB\R2015b\extern\include"
-I"C:\Program Files\MATLAB\R2015b\simulink\include" /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE
/D_SECURE_SCL=0 -I"C:\Program Files (x86)\SMI\iView X SDK" -I"C:\Program Files (x86)\SMI\iView X SDK\include"
"iViewXAPI_thunk_pcwin64.c" -LD -Fe"iViewXAPI_thunk_pcwin64.dll"
iViewXAPI_thunk_pcwin64.c
C:\Program Files (x86)\SMI\iView X SDK\include\iViewXAPI.h(239) : error C2061: syntax error : identifier 'EyeDataStruct'
C:\Program Files (x86)\SMI\iView X SDK\include\iViewXAPI.h(240) : error C2061: syntax error : identifier 'rightEye'
C:\Program Files (x86)\SMI\iView X SDK\include\iViewXAPI.h(240) : error C2059: syntax error : ';'
C:\Program Files (x86)\SMI\iView X SDK\include\iViewXAPI.h(242) : error C2059: syntax error : '}'
C:\Program Files (x86)\SMI\iView X SDK\include\iViewXAPI.h(263) : error C2061: syntax error : identifier 'EyeDataStruct'
C:\Program Files (x86)\SMI\iView X SDK\include\iViewXAPI.h(264) : error C2061: syntax error : identifier 'rightEye'
C:\Program Files (x86)\SMI\iView X SDK\include\iViewXAPI.h(264) : error C2059: syntax error : ';'
C:\Program Files (x86)\SMI\iView X SDK\include\iViewXAPI.h(266) : error C2059: syntax error : '}'
C:\Program Files (x86)\SMI\iView X SDK\include\iViewXAPI.h(506) : error C2071: 'ImageStruct' : illegal storage class
C:\Program Files (x86)\SMI\iView X SDK\include\iViewXAPI.h(506) : error C2032: 'ImageStruct' : function cannot be member
of struct 'ImageStruct'
Comments
Hi Amir,
I'm not a Matlab user myself, but the error message indicates that the header file is simply not of the type that Matlab expects. My first guess is that this is a version conflict; for example, which versions of Matlab are supported? Have you contacted the SMI folk?
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Thanks Sebastian, you were right.
It's taken a while.. but after talking to SMI folk and their technical assistance, apparently the SMI SDK supports matlab 32-bit only, and that was what caused the problem.
Thanks again
Hello everyone.
For those who are still using SMI eye trackers / Software, im happy to pass by and let you know that we at EyeLogic have created an eye tracker that is fully compatible with SMI.
Please send me an email in case you need more informations on that, and on our upcoming new hardware and software at fabio.pinto@eyelogicsolutions.com
Thank you,
Fabio
https://www.eyelogicsolutions.com/