Counterbalancing experiment?

Hi @DocPsy, please use backticks around your code, it makes it easier to read.

What you could do is have your trials in a conditions file, and have two separate conditions files for each condition to satisfy your counterbalancing requirement. Your conditions files could be called ‘orderA.xlsx’ and ‘orderB.xlsx’. Add a field called “condition” to the experiment info in your experiment settings, and when you start each experiment, enter A or B depending on the condition you are running. In your loops, you would define the conditions file as:

$'order' + expInfo['condition'] + '.xlsx'  # this will evaluate to orderA.xlsx, if A was entered as your condition.