JATOS and jsPsych with jatos.batchSession
I am attempting to integrate jsPsych and JATOS, and I'd like to use jatos.batchSession to rotate subjects. If I do something like this (this is a toy example), I get an error "No open batch channel":
What's the best way to solve this so that I can use the contents of the batchSession in building my timeline? Should I move the 'jatos.onLoad' line to encompass the entire script, or is there a reason it's only placed at the end where you run the jsPsych timeline?