Howdy, Stranger!

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

Supported by

[open] How to use Tobii TX300 with openseasme

edited April 2015 in OpenSesame

Hi,
I am new to this forum and I am from behavioral science background with NO knowledge on programming!
I have been using a Tobii TX300 system in my lab. Could anyone explain to me how to use pygaze with Tobii TX300 in a step-by-step manner? I am sure it would be a great boon for people like me! Please...
Thanks in advance!

G Krishnan

Comments

  • edited 10:39PM

    Hi Krishnan, welcome to the forum!

    You won't have to be a programming expert, but it may be wise to just go through these tutorials: http://osdoc.cogsci.nl/tutorials/ (especially since you not only need this knowledge to get your Tobii to work, but to implement your experiment design as well).

    Next, there are pygaze instructions here: http://osdoc.cogsci.nl/devices/pygaze/

    What it will come down to, is to drag and drop some pygaze items into the overview window (such as an item that 'starts up' your eyetracker, and one that starts recording, one that logs what has been recorded etc. etc.) and put some code in between (in the form of an inline_script item) ; the latter is where you can do whatever you want with the recorded eye position coordinates (e.g. alter what is on screen based on where people look). Of course you don't have to do anything with the recorded eye position; perhaps you just want to display some static stimuli.
    As you can imagine, we can't immediately program your whole experiment for you, so I suggest going through some tutorials first and let us know if you encounter any problems!

    Good luck!

    Cheers,
    Josh

  • edited 10:39PM

    Thanks Josh for your help! I shall try this out. And, I shall get back to the forum with my experience.

    Thanks again for your time,
    Regards.
    Krish

  • edited April 2015

    Dear Josh,
    I followed your instructions. however, I am getting some errors as shown below:

    Python 2.7.8
    Type "help()", "copyright()", "credits()" or "license()" for more information.
    Type "modules()" for details about installed modules and version information.
    Use the "print([msg])" statement in inline_script items to print to this debug window.
    >>> 
    Starting experiment as ExperimentProcess-1
    Expyriment  (Revision ; Python 2.7.8) 
    File: opensesame.exe (6a8b7f)
    openexp.sampler._legacy.init_sound(): sampling freq = 48000, buffer size = 1024
    openexp.sampler._legacy.init_sound(): mixer already initialized, closing
    experiment.init_log(): using 'E:/Python/Trials/subject-0.csv' as logfile (utf-8)
    experiment.run(): experiment started at Tue Apr 14 11:46:06 2015
    
    Unexpected error
    
    line: 6
    exception message: No module named _tetiopy27
    exception type: ImportError
    
    Traceback:
      File "dist\libqtopensesame\misc\process.py", line 139, in run
      File "dist\libopensesame\experiment.py", line 344, in run
      File "dist\libopensesame\sequence.py", line 47, in run
      File "C:\Program Files (x86)\OpenSesame\plugins\pygaze_init\pygaze_init.py", line 198, in run
      File "dist\pygaze\eyetracker.py", line 86, in __init__
      File "dist\pygaze\_eyetracker\libtobii.py", line 55, in <module>
      File "C:\Program Files (x86)\OpenSesame\tobii\eye_tracking_io\__init__.py", line 5, in <module>
      File "C:\Program Files (x86)\OpenSesame\tobii\eye_tracking_io\_native\__init__.py", line 6, in <module>
    ImportError: No module named _tetiopy27
    
    
    >>> 
    

    Any luck?!
    Thank you.

    Krish

  • edited April 2015

    Dear Josh,

    The file referring to the error is as follows:


    import sys import platform if sys.version_info[0:2] == (2, 7): import _tetiopy27 tetio = _tetiopy27 else: raise Exception("Unsupported python runtime version, tobii.eye_tracking_io requires python 2.7") # # Internal class # class BoundHandler(object): def __init__(self, callback, *args): self._callback = callback self._args = args def __call__(self, opcode, error, payload): try: self._callback(opcode, error, payload, *self._args) except Exception, ex: print "Exception during BoundHandler.__call__(): ", ex
  • edited April 2015
    import sys
    import platform
    
    if sys.version_info[0:2] == (2, 7):
        import _tetiopy27
        tetio = _tetiopy27
    else:
        raise Exception("Unsupported python runtime version, tobii.eye_tracking_io requires python 2.7")
    
    #
    # Internal class
    #
    class BoundHandler(object):
        def __init__(self, callback, *args):
            self._callback = callback
            self._args = args
    
        def __call__(self, opcode, error, payload):
            try:
                self._callback(opcode, error, payload, *self._args)
            except Exception, ex:
                print "Exception during BoundHandler.__call__(): ", ex
    
  • edited 10:39PM

    Hi,

    There is a very strong possibility that you did not install the Tobii SDK. Without this, you won't be able to run anything!

    For information on how to install Tobii's Python SDK, please refer to the PyGaze website.

    Good luck!

  • edited April 2015

    Hi there!
    I have followed all the instructions on installing the Tobii package (http://www.pygaze.org/installation/#tobii). Despite this, the following error continue to appear:

    >>> 
    Starting experiment as ExperimentProcess-2
    Expyriment  (Revision ; Python 2.7.8) 
    File: opensesame.exe (6a8b7f)
    openexp.sampler._legacy.init_sound(): sampling freq = 48000, buffer size = 1024
    openexp.sampler._legacy.init_sound(): mixer already initialized, closing
    experiment.init_log(): using 'E:/Python/Trials/subject-0.csv' as logfile (utf-8)
    experiment.run(): experiment started at Wed Apr 29 10:51:19 2015
    
    Unexpected error
    
    line: 6
    exception message: No module named _tetiopy27
    exception type: ImportError
    
    Traceback:
      File "dist\libqtopensesame\misc\process.py", line 139, in run
      File "dist\libopensesame\experiment.py", line 344, in run
      File "dist\libopensesame\sequence.py", line 47, in run
      File "C:\Program Files (x86)\OpenSesame\plugins\pygaze_init\pygaze_init.py", line 198, in run
      File "dist\pygaze\eyetracker.py", line 86, in __init__
      File "dist\pygaze\_eyetracker\libtobii.py", line 55, in <module>
      File "C:\Program Files (x86)\OpenSesame\tobii\eye_tracking_io\__init__.py", line 5, in <module>
      File "C:\Program Files (x86)\OpenSesame\tobii\eye_tracking_io\_native\__init__.py", line 6, in <module>
    ImportError: No module named _tetiopy27
    

    Any help?!
    Krishnan

  • edited 10:39PM

    Hi Krishnan,

    As Edwin said, you're probably missing (part of) the Tobii SDK. I'm not familiar with it myself, but this discussion on the PyschoPy list seems relevant:

    Cheers,
    Sebastiaan

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 http://45.77.173.118/ 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