Hi Fariba,
Ah yes, your question is much clearer now. You will be please to hear that we now have a demo of how to do this and have updated our documentation to discuss counterbalancing a several routines with different components
Here is a demo that should do what you need (download the files and save in the same folder):
randomBlock.psyexp (12.3 KB) conditions.xlsx (8.5 KB) conditionsA.xlsx (8.5 KB) conditionsB.xlsx (8.5 KB)
Here are some other useful threads:
-
The demo made for you above is actually adapted from this question here Sequence of routines based on slider response - #6 by Becca
-
If you want to fully counterbalance several blocks/routines with different components aee here for a thread on how to counterbalance several blocks containing different components:
Using variables in completed URL to direct to next PsychoPy expt - #8 by Becca
This documentation will soon be available at Running and sharing studies online ā PsychoPy v2021.2
Hope this helps,
Becca