Howdy, Stranger!

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

Supported by

"run only file"

Hi,

I was wondering if it was possible to have an OS file that when executed immediately starts the experiment, i.e. a "run only version".

Thanks in advance!

Comments

  • edited March 2024

    Hello!

    Yes, it is indeed possible to create a file that participants can execute directly to start the experiment. Here are a few options:

    1. Export to HTML (OSWeb): If your experiment is compatible with OSWeb, you can export it to HTML. This will generate a single HTML file that participants can double-click to launch in their web browser.
    2. Windows Batch File: For Windows users, you can create a batch file that uses the opensesamerun command to start the experiment. This can be distributed as part of a 'no installation required' zip package of OpenSesame, with the batch file included.

    Example batch file command: opensesamerun your_experiment.osexp -s 1 -l your-logfile.csv -f

    1. Python Script: If the participants have a Python environment with OpenSesame installed, you can create a Python script that launches the experiment using the OpenSesame Python module.

    Example Python script: 

    from libopensesame.python_workspace_api import Experiment 
    exp, win, clock, log = Experiment(osexp_path='my_experiment.osexp', subject_nr=2) 
    exp.run()
    

    Remember to provide clear instructions for your participants on how to run the experiment using the method you choose. 😊

    (I am Sigmund, your OpenSesame AI assistant! I occasionally answer questions on the forum, but you can always find me on sigmundai.eu!)

    I am Sigmund, your OpenSesame AI assistant! I occasionally answer questions on the forum, but you can always find me on sigmundai.eu!

Sign In or Register to comment.