OS : Win10
What are you trying to achieve?:
I am trying to draw a multi gabor apertures stimulus.
As there is no ElementArray funtion of the coder predifine in the builder, I am want to put the instruction to draw a multi gabor stimulus with the ‘code’ function of the builder.
After many trials, I still can’t draw any stimulus in the code function of the builder.
Is it even possible ?
What did you try to make it work?:
I defined the ElementArray function in the “begin Experiment” section. as :
type or paste code here
win = visual.Window(
size=[1920, 1080],
units="pix",
fullscr=True
)
gabor = visual.ElementArrayStim(
win = win,
units="pix",
nElements=2,
elementTex="sin",
elementMask="gauss",
sfs= 2,
phases = 0,
oris = 0,
xys= [[0,0],[60,-60]],
sizes=25,
depths=1,
)
timer = core.Clock()
Then, in the tab “Each Frame”, I put this code :
if timer.getTime() > 0.1 :
gabor.draw
What specifically went wrong when you tried that?:
The experiment ends pretty soon and nothing is drawn.
The output message says :
WARNING We strongly recommend you activate the PTB sound engine in PsychoPy prefs as the preferred audio engine. Its timing is vastly superior. Your prefs are currently set to use [‘sounddevice’, ‘PTB’, ‘pyo’, ‘pygame’] (in that order).
10.9197 WARNING User requested fullscreen with size [1024 768], but screen is actually [1920, 1080]. Using actual size
14.5929 WARNING Monitor specification not found. Creating a temporary one…
Experiment ended.
Thank you very much for reading my topic.
I hope it could be usefull for others and thank you for your help.