OS (e.g. Win10): Mac OS 10.15 Catalina
PsychoPy version (e.g. 1.84.x): PsychoPy v2020.1.0
Standard Standalone? no If not then what? brew install
What are you trying to achieve?:
I try to build a heartbeat counting task (Schandry,1981) on PsychoPy.
It is a task, which the participant counts his/her heartbeats silently during different time durations. (20,25,35,45,55,65 and 75 seconds) I built an experiment, which I can present the blocks with different time durations randomly.
What did you try to make it work?:
The basic structure is as follows:
- sound_start20 → The participant hears a beep signal
- text_start20 → a text telling the participant to start counting (5sec.)
- text_count20 → blank page during the counting time (15sec.)
- sound_stop20 → the beep signal indicating to stop counting
- text_stop20 → the text telling the participant to stop counting
- Counting 35s
I have 7 counting routines in total with different time durations. (The only difference among them is the time duration in text_count)
After building my routines, I inserted a loop from the first counting routine (counting20) to the last counting routine (counting75). I chose the loop name as loop_mix and the loopType as Random. I do not need any other conditions, so I did not load any xlsx file to Conditions. Basically, there is not a stimulation, I need to keep track of the time while doing neuroimaging recording. It is important to present each time block once and randomly.
What specifically went wrong when you tried that?:
I expected it to present counting routines in the loop_mix in a randomized order (for example: counting45, counting25, counting35, counting55, counting75, counting20, counting65)
Though, whenever I run it, it shows the trials in the order I built them as: counting20-counting25-counting35-counting45-counting55-counting65-counting75
I also tried other loopTypes. The result did not change.
I am new to PsychoPy and programming. I cannot figure out why randomizing in the loop did not work as I planned. I checked the documents but I could not find any solution. The tutorials are about randomizing the conditions stored in xlsx files. I need randomizing for the trial blocks. I hope that I could explain my problem clearly. Could you please help me?