Welcome!

Sign in with your CogSci, Facebook, Google, or Twitter account.

Or register to create a new account.

We'll use your information only for signing in to this forum.

Supported by

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

  • sebastiaansebastiaan Posts: 2,737

    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

    There's much bigger issues in the world, I know. But I first have to take care of the world I know.
    cogsci.nl/smathot

  • amiramir Posts: 2

    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

Sign In or Register to comment.