Inserting a fixation dot in PsychoPy prior to the stimulus

Novice to PsychoPy, complete beginner.
I need to insert a fixation dot for 250 ms prior to the stimulus being presented, can someone help me as to where to start with this?
Thank you.
The stimulus will be images of faces presented for 500ms.
This will then be repeated.

The easiest way is to have a routine called fixation with a 0.25 second text component that runs just before your trial routine.

1 Like

Thank you

Is there chance you are aware of how to get PsychoPy to generate a random participant ID number? When I run the experiment it asks me to input a participant number instead.
Apologies if not.
Thank you for your help

psychopyVersion = ‘2020.2.10’
expName = ‘Face and word processing in dyslexia’ # from the Builder filename that created this script
expInfo = {‘participant’: ‘’, ‘session’: ‘001’}
dlg = gui.DlgFromDict(dictionary=expInfo, sortKeys=False, title=expName)
if dlg.OK == False:
core.quit() # user pressed cancel
expInfo[‘date’] = data.getDateStr() # add a simple timestamp
expInfo[‘expName’] = expName
expInfo[‘psychopyVersion’] = psychopyVersion

Are you running this locally or online?

It’s being ran locally at the moment; with the goal being that it will be published online when it is completed.

In that case you could use my app to push a sequential participant number to the study.

For local testing purposes you can just type in a participant number.