Howdy, Stranger!

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

Supported by

[open] Get subject number and name of logfile from textfile

edited October 2013 in OpenSesame

Hi all,

I'm pretty new to OpenSesame, I just completed the tutorial today. Is it possible to skip the two dialog screens when running an experiment (asking for a subject number and location/name of logfile respectively), and get that information from another source? I'm thinking a python script that reads a simple text file with the information for the subject number and location/name of logfile?

Comments

  • edited July 2021

    Hi,

    The GUI always asks for the subject number and logfile location. So from the OpenSesame GUI, no, there's no way around this. But you can bypass these dialogs using opensesamerun. This is a runtime-only version of OpenSesame which allows you to launch experiments from the command line:

    A more advanced option is to launch experiments directly from a Python script using the Python package libopensesame:

    This last option requires that you have a full Python environment installed and run OpenSesame from source. An easy way to accomplish this is using the WinPython OpenSesame package:

    Hope this helps!

    Cheers,
    Sebastiaan

  • Hi all,

    As for FVMF, I wondered whether Opensesame could import the ID Subject from an external file as a Database or CSV?

    I have seen that this kind of topic was already addressed, but for Android device and OsWeb app, since I will use for our experiment the classic windows Opensesame app, any implementation advice would be appreciated.

    Looking forward to hearing news from you soon 

    All the best

    Michael

  • Hi @Michael_Di_Palma ,

    Your best bet is still to use opensesamerun and specify the subject number and log file as command-line arguments. Then you can write a script (e.g. in Python or a Windows batch file) that reads the subject number from a database or csv and uses that to call opensesamerun with the correct arguments. The details of course depend on what you want to do exactly, but as a general approach this makes sense.

    — Sebastiaan

  • Dear Sebastian,

    First of all, I would like to thank you for your prompt reply.

    As suggested, we have managed to use opensesamerun by a python script. Unfortunately, when we execute (by double click) the file .py on a machine where only Rapunzel is installed, this opens the file but does not directly execute it. On the other hand, when we do the same procedure on a machine with Anaconda (i.e. Spyder), the script is directly executed without opening the file.

    Thus, we wondered if Rapunzel can alone execute the script or always need a complete python environment.

    Looking forward to hearing news from you soon

    All the best

    Michael

  • Hi @Michael_Di_Palma ,

    As suggested, we have managed to use opensesamerun by a python script. Unfortunately, when we execute (by double click) the file .py on a machine where only Rapunzel is installed, this opens the file but does not directly execute it. On the other hand, when we do the same procedure on a machine with Anaconda (i.e. Spyder), the script is directly executed without opening the file.

    That's related to the application that's associated with a file type. Right now, on your system Rapunzel seems to be associated with .py files, which is the default behavior of the OpenSesame installer. And Anaconda apparently (based on your description) by default associates .py files with the Python interpreter.

    You should be able to change this by right-clicking on a .py file, select 'Open with' → 'Choose another app', and then select python.exe from the OpenSesame program folder.

    Hope this helps!

    — 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