There are some situations where complex, dynamic control over stimulus sequences is required, and this is something that is sometimes difficult or impossible to do with Superlab. With Superlab 4.0.6, there is an option to write results to the logfile after every trial. This option allows a coprocess, such as a script, to examine the results of the previous trial and copy new images and/or sounds into the files specified in the scripts for the next trial(s). This method allows arbitrary, results-driven sequences of stimuli to be used with superlab.
I decided to create an example script and scenario, basically as a kind of proof of concept. The result is in the attached .tgz file. I did it on a Mac; different methods would be required under Windows.
This is pretty primitive, and it isn’t for the scripting novice.
tryscript.tgz (141 KB)