Howdy, Stranger!

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

Supported by

[solved] Test battery (automatically run multiple experiments consecutively)

edited April 2014 in OpenSesame

Hi
I have created several taakes in different opensesame files i want to run them for every subject as a sequence without the need to open each file after every task ank without the need to enter subject number several times.
How can it be done?
Dror

Comments

  • edited 9:18AM

    Hi Dror,

    You could create a batch file with which you call OpenSesame Run several times. Open a new text document (e.g. by opening Notepad), paste the following code in it, and save the document. After saving, change the document's extension from .txt to .bat. This makes it into an executable file, which will run the script (DOS commands, run via Command Prompt).

    title running multiple experiments!
    
    SET /P snr=Subject number: 
    
    "C:\Program Files (x86)\OpenSesame\opensesamerun.exe" PATH_TO_EXP_DIR\experiment1.opensesame.tar.gz --subject=%snr% --logfile=PATH_TO_EXP_DIR/exp1-sub%snr%.csv --fullscreen
    
    "C:\Program Files (x86)\OpenSesame\opensesamerun.exe" PATH_TO_EXP_DIR\experiment3.opensesame.tar.gz --subject=%snr% --logfile=PATH_TO_EXP_DIR/exp2-sub%snr%.csv --fullscreen
    
    "C:\Program Files (x86)\OpenSesame\opensesamerun.exe" PATH_TO_EXP_DIR\experiment3.opensesame.tar.gz --subject=%snr% --logfile=PATH_TO_EXP_DIR/exp3-sub%snr%.csv --fullscreen
    
    pause
    

    Change PATH_TO_EXP_DIR to the path to the relevant experiment directory. And change the path to your installation of OpenSesame, if that is different from my example.

    Please note that I do not have a Windows machine nearby, so the code is untested... But if any error occurs, please do report back!

    Good luck!

    Edwin

  • edited 9:18AM

    hi
    works like a charm!
    but... is there a way to do the same thing from inside opensesame exp?, I want to counter balance and control the order of appearance of every task
    Dror

  • edited 9:18AM

    Awesome!

    I'm afraid there is no way to do this from within OpenSesame's GUI, other than adding together ALL of your experiments into one giant experiment. Which would probably not be the best idea ever.

    What you could do is create multiple batch files, each containing a different order of tasks.

  • edited September 2019

    @Edwin & @drorgarbi

    (& @sebastiaan you might be interested in this too)

    I found a plugin that did exactly this : https://github.com/dev-jam/opensesame_plugin_-_experiment_manager

    I downloaded it and then paster the "experiment_manager" folder into the plugin folder of OpenSesame. I launched the example file that is included and create an opensesame experiment including two other tasks.

    You can see the example with the debug window that shows the experiment has run without any problems ! (NB : you have to run the experiment in windowed mode but the experiments included will be launched in fullscreen nonetheless!)

    What do you think ? Nice huh ? 😁

  • Hey, that's Bob Rosbag's GitHub handle! I know the guy, and he's honestly great. Lovely to see that his stuff is helping you!

  • Yeah, his script works great !

    The only issue I encountered was the fact that the scripts run by this plugin would save the log file in the pool instead of the directory of the main script.

    So I had to do some "hacking" to solve it. Now it works great : all my log files (6 different tasks run in sequence thanks to Bob's plugin) are saved in the same folder. [If you want to know how, just tell me]

    This allows me to completely automate my experience. Yipeee

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