URL of experiment: The experiment is in early development, I don’t have any URL to share and don’t know yet if it is possible for me to share an URL without paying?
Description of the problem:
Hi all! I’m sorry I’m really uncomfortable with Python at the moment, but I wish to improve and learn.
I have a specific problem with an experiment that is quite simple (see Flow) : I want to display an information retrieved from the dialog box at the beginning of the experiment as a running head for half of the participants, but not for the other half (between participants design).
So I know how to create some code components that do display the information I want (see Code 1, 2 and 3).
Running my experiment works, and the information is displayed. See The two following images (without judging me for all the browser tabs )
However, my problem is that I would like that some participants (half of them), do not have this information displayed on their screen. In other words, my experimental condition is “Displaying of this information from the dialog box” vs “no displaying of the information from the dialog box”.
Do you know if it is possible?
Flow:
The important information is that the screenshot 1 is taken from the routine “Trial”
Code1: Code component added in the first routine “Trial” in the “Begin experiment” Tab
nameText = expInfo['Name']
expInfo['Name'] = None
Code2: Code components added in the routine “LDT Practice” in “Begin Experiment” tab
amor = visual.TextStim(win=win, name='amor',
text= nameText,
font=u'Cambria',
pos=(0, 0.5), height=0.065, wrapWidth=2, ori=0,
color=u'black', colorSpace='rgb', opacity=0.5,
depth=0.0);
Code3: Code in the “LDT practice” in the “Begin Routine” tab
if t >= 0.0 and amor.status == NOT_STARTED:
# keep track of start time/frame for later
amor.tStart = t
amor.frameNStart = frameN # exact frame index
amor.setAutoDraw(True)
An information that might be important is that I have no way to guess what is going to be displayed: it depends on the information the participant will write in the dialog box at the beginning of the experiment.
If you need further clarifications, do not hesitate! I hope I am clear enough.
Thanks for your help!
Best
Jean