Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Dual-PC setup with an SMI Eyetracker

Hi everyone,

I'm attempting to run a dual-pc setup for an eyetracking experiment, having an SMI eye-tracker attached to a desktop computer, which is in turn connected through an ethernet cable to a laptop running OpenSesame.

I've successfully made the laptop communicate with the eye-tracker with a couple of the sample applications bundled with SMI's SDK. I haven't however been able to make OpenSesame communicate with the eyetracker: the connection always fails.

The SMI API requires two IP addresses to be introduced, one to which to send "signals", and a second from which to receive signals. Looking (through very newbie eyes) at the implementation of SMI support in the PyGaze code (and in the PyGaze plugin in OpenSesame), it seems like it receives a single IP address as input, and uses that for both receiving and sending signals. That should work for a single-PC setup, but it'd cause problems in my situation.

Am I reading the situation right? Any thoughts? Thanks!


  • Hi Mario,

    I think you're right. As far as I know PyGaze always uses a single-PC setup. I don't know how to solve your problem other then programming everything yourself using the SMI API. But I guess thats a big challenging project on its own :|


  • Indeed! I can also opt out of the dual pc setup and go single-pc, but it's not ideal. Then again, I've heard things rarely are ideal in the world of experimental science.

    Thanks for the input, Jarik!

  • Problem solved!

    Inspired by ShiroAndy's post on another thread ( ) I changed a line on the file to use set values to connect to the eye-tracker rather than variables:


    res = iViewXAPI.iV_Connect(
        c_char_p(ip), c_int(sendport), c_char_p(ip), c_int(receiveport)


    res = iViewXAPI.iV_Connect(
        c_char_p(''), c_int(4444), c_char_p(''), c_int(5555)

    I think I had actually tried this before, but changed the wrong file, from a separate PyGaze installation in the same machine, rather than the one in the OpenSesame folder...

  • Hi Mario,

    Thanks for sharing!

    For completeness, I was mistaking in my previous post. Where PyGaze uses a single-PC setup when selecting EyeTribe as tracker type for example, it does use a dual-PC setup when selecting EyeLink.


  • Hi Mario,

    Do you know what installations are required on the stimulus pc in order to make this setup work ? I have as well difficulties to connect to an SMI Eyetracker via ethernet connection between two PCs, but the solution you found did not solve my problem.

    Opensesame keeps telling me iViewXAPI.dll is missing, but I copied it in the Opensesame folder, just as mentionned here :

    Thanks for any advice.

  • Hi Jessica,

    I didn't have to manually copy the iViewXAPI.dll file to any of OpenSesame's folders. I only installed the iView SDK and the latest version of OpenSesame and didn't need to any further tweaking to make that particular part of the connection work.

    I don't have access to computer I'm using to connect to the eye-tracking workstation right now, but if you think it'll help, I can check it later for where the iViewXAPI.dll file is located.

    Note that I still haven't been able to go through the calibration process without errors (might open a thread on that subject later), but at least OpenSesame seems to be connecting to iView.

    Best regards,


  • edited June 2017

    [EDIT] To save you some typing; just one additional search led me to the SDK download. The file appears to be in that package so never mind. No matter how embarrassing, I'll leave my post below as it could be helpful for someone else.

    This is a silly question which doesn't warrant opening a new thread, so I'll just post it in this relevant thread.

    In terms of copying the iViewXAPI.dll file to the pygaze\_eyetracker folder, I have trouble locating the iViewXAPI.dll file in the first place. It is not present on the SMI laptop with iView and Experiment Center installed, and I cannot find it on the installation CDs either.

    Any pointers would be welcome, thanks!

  • I am bumping this thread with an additional issue.

    The other day I managed to run a simple pygaze experiment in OpenSesame with the Dual PC set-up as described above, by simply hardcoding the relevant IP addresses into the iViewXAPI.iV_Connect() function. However, for some reason it refuses to work now. Which is a little frustrating, as to the best of my memory I haven't changed anything since then.

     File "C:\Program Files (x86)\OpenSesame\lib\site-packages\pygaze\_eyetracker\", line 201, in __init__
        raise Exception("Error in libsmi.SMItracker.__init__: failed to set logger; %s" % err)
    Exception: Error in libsmi.SMItracker.__init__: failed to set logger; unknown error with decimal code 401; please refer to the iViewX SDK Manual

    In the libsmi file, this script is prior to the one where you hardcode the IP-addresses and concerns these lines:

    res = iViewXAPI.iV_SetLogger(c_int(1), c_char_p(logfile + '_SMILOG.txt'))
            if res != 1:
                err = errorstring(res)
                raise Exception("Error in libsmi.SMItracker.__init__: failed to set logger; %s" % err)

    The 401 code in the manual is fairly ambiguous, but the bottom line is that it fails to connect (iV_Connect). The first argument of the SetLogger function (c_int(1) calls something from the API/dll, but that's not something I want/could go into.

    I am just putting this out there, in hope of getting any pointers.

  • Hey Cesco,

    I´m facing the same problem as you had 8 months ago. Did you manage to solve it in the meantime? This would be great! Although fighting the SMI Eye-Tracker in a corporation with matlab, maybe you could help me out with this?

    Define Logger
    Logger could not be opened

    "Could not establish Connection"

    The ret_log and ret_con variables are both set to 401 which results in that quite ambiguous error.

    Best regards

  • Dear all,

    just in case there are some other guys out there trying to get the SMI-Eye-Tracker running in a dual-PC Setup in matlab. Here are the steps which were necessary for me to get this thing working:

    Connect the two PC´s via Ethernet or a cat5 crossover cable;
    copy the Iview SDk Folder from the eye-tracker PC to your "application PC( the one which you use to run your Experiment with matlab);
    install the IviewxSDK Setup.exe;
    start the smi-programm on your eye-tracking PC, go to the hardware-communication menu and Change the Connection Settings (Exchange or insert the respective PC´s ip addresses and ports) --> see cmd -ipconfig (for Windows) for that;
    start the "initandconnect"- example script from the iviewSDK Folder which is provided bei SMI;
    This should result in a successful Connection message in matlab. From there on you can start Building your own Experiment using this Setup.

    I hope this may be a help!

    Best regards

  • I managed to track down the real cause of Error 401 (ERR_FUNC_NOT_LOADED) while writing my own interface to the iview-dll.

    You absolutely need to make sure the two DLLs "iViewXAPIL.dll" and "iViewXAPIR.dll" are loaded as well!

    I can reproduce the issue with the examples by only putting the "iViewXAPI.dll" next to the examples executable. Putting the other dlls there as well fixes the issue.

    When manually loading the "iViewXAPI.dll" you may also need to manually load the others! For my java interface, I just added some calls to Native.loadLibrary for the others.

    Now the "ERR_FUNC_NOT_LOADED" makes sense, since there was indeed some function not loaded.

  • It's been a while for me, but indeed I remember that copying all the dll's into the right folder solved some, but not all of the issues, so

    When manually loading the "iViewXAPI.dll" you may also need to manually load the others!

    makes a lot of sense!

    I don't speak Java, so your interface sounds great! I suppose that's the way forward, with the way SMI has gone.

  • 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

    Thank you,


Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games