Howdy, Stranger!

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

Supported by

[solved] Joining tasks

edited March 2016 in OpenSesame

Hi!

I have three different tasks and now I want to join them into one single experiment (and make some randomizations). Is there any drag and drop option to put them together easily? Or copy-pasting the block of code?

Thanks in advance : )

Comments

  • edited March 2016

    Hi Guido,

    I've tried merging scripts but realized it's much easier just to copy-paste from one experiment to another. To my knowledge there is no alternative like drag and drop between experiments, but let me know if you find one :)

    Laurent

  • edited 11:34PM

    Hi guys.

    In OpenSesame 3, you can right-click on an item and do 'Copy (unlinked)', which you can then paste into another experiment. This will copy-paste the entire tree below the item that you selected.

    However, in many cases it might be easiest to just run the three experiments consecutively using a script (or a batch file on Windows).

    Cheers!
    Sebastiaan

  • edited 11:34PM

    Oh! That was easy and great = D Thank you!

    Mmh also I would try to make a script. Do you have any example of a 'chaining' script for Ubuntu?

  • edited 11:34PM

    In Ubuntu it's really easy. If you create a bash script run-exp.sh with something like this:

    #!/bin/bash
    opensesamerun exp1.osexp -s $1 -l subject-exp1-$1.csv -f
    opensesamerun exp2.osexp -s $1 -l subject-exp2-$1.csv -f
    opensesamerun exp3.osexp -s $1 -l subject-exp3-$1.csv -f
    

    Then you can execute it as ./run-exp.sh 1 for the first participant, etc. (The $1 corresponds to the first command-line argument, which is used as the subject number here.)

    Does that make sense?

    Cheers,
    Sebastiaan

  • edited 11:34PM

    Great! Really good. Thanks : )

Sign In or Register to comment.