| Reference | Downloads | Github

Controller for several psychopy 'experiments'

I have several questionnaires that I built into separate psyexp files. Is it possible to program a ‘controller’ file to present these questionnaires? That is, can I program one psyexp that calls each of these other programs to run?
When I started with PsychoPy, I had all the questionnaires in one program but it was cumbersome and difficult to test. I put them into separate psyexp files and that makes them easier to handle. When it comes to presenting them to the participant, I would rather load them all together so the participant does not need to wait for me to load the next questionnaire each time.
Also, is there a location on your website where members can place experiment code? One dedicated to coding? Not a forum.

Hi Patricia, for running different experiments consecutively, see Merging two experiments - you can make a batch file in Windows and that will run the .py scripts for each experiment.

For storing, sharing and running your code online - see You can download the latest PsychoPy (3.0.2) and easily upload your experiment files to Pavlovia using the Builder interface by following these instructions on the PsychoPy website.

Thanks dvbridges! I will check out the suggested options.

I tried out the command prompt. I didn’t need to start python.exe so I removed those lines. The batch opens the PsychoPy file and waits for me to press Run. Can the batch command make the program run? It runs PscyhoPy but not the routine.
If I run the routine manually after the batch opens the PsychoPy file, it does not go to the next py experiment. (it’s important not to have spaces in the filename - I had an underscore in my filename and it would not run).

I’ll check if Pavlovia can do it.

What you have to do is compile the experiment scripts from Builder to create Python scripts, using the “Compile” icon in Builder’s toolbar. Then, you would use the Python interpreter (like in the original example I gave) to run those Python scripts. This will run the experiment without the need to manually open Builder and click run.

Excellent. I didn’t know that. I will do that once I’m at that stage then.