You can export PsychBench experiments for upload to VPixx Pack&Go to run online. This is a third party service that, among other things, specializes in running MATLAB + Psychtoolbox experiments online, and so make a good platform for PsychBench experiments too. Experiments are free to test in Pack&Go and there are fees for deploying to.
There are not many limitations as to what experiments can be exported. Almost any visual stimuli as well as keyboard and mouse input work. Generally it is easier to list what is known to not work:
Other than the above, the limitations of online experiments are just the obvious ones: reduced timing precision and control over physical setting and subjects, and of course no access to devices beyond the basic screen/keyboard/mouse or trackpad.
To export an experiment, first make the experiment just like you would to run locally, using either the coding method or visual method. Test and debug it locally since that is a lot faster and easier than online—though Pack&Go does allow free testing and you should do a final round of testing on the Pack&Go server when ready. When you are ready to export, use the tool exportOnlineExperiment. Type help exportOnlineExperiment at the MATLAB command line for usage.
When you export, Pack&Go requires the experiment files to be organized in a certain way and a few simple rules to be followed:
When you call exportOnlineExperiment select the main script. By definition the folder containing it is the experiment folder, and exportOnlineExperiment packs that folder into a zip file for upload.
exportOnlineExperiment includes a mini copy of PsychBench in the zip file. You don't need to worry about this except to know that the exported experiment is fixed at whatever version of PsychBench you export from. (However, MATLAB and Psychtoolbox are hosted at Pack&Go and updated there at some interval.)
In online experiments PsychBench uses a different method to scale visual angle degrees and other units to pixels on the subject's screen. It automatically runs a short task at experiment startup where the subject is asked to adjust the size of a rectangle on screen until its width matches the width of a standard wallet card (e.g. credit card or driver's license). They are also asked whether they are on a desktop or laptop. PsychBench uses this information to estimate physical screen size and distance (cm). You can tweak how this works by adding a screen object and setting its property calibrateDeg.
For each online run runExperiment automatically writes .mat and .csv results files and Pack&Go saves them for you to download.