<Paramname="text"updates="constant"val="$"The n-back task presents stimuli sequentially and require you to decide if the current stimulus is the same as one presented n-numbers previous (or back).\n"&#10;+ "\n"&#10;+ "For example, the 3-back you will indicate if the current number matches the number presented 3 places previous\n"&#10;+ "(e.g. A H G A B G B shows that 'A' and 'G' have matches in this sequence).\n"&#10;+ "\n"&#10;+ f"This is an {expInfo['backN']}-back task.\n"&#10;+ f"Press SPACE if the current stimulus is the same a {expInfo['backN']} places previous.\n"&#10;+ "\n"&#10;+ "Press SPACE bar when ready to start." "valType="str"/>
<Paramname="End Experiment"updates="constant"val="trialNone = 0; trialBack = 0; hit = 0; miss = 0; fa = 0&#10;for n, t in enumerate(thisExp.entries):&#10; if t['trial_type'] == 'none':&#10; trialNone += 1&#10; if not(t['trial_resp.corr']): fa += 1&#10; if t['trial_type'] == 'back':&#10; trialBack += 1&#10; if t['trial_resp.corr']: hit += 1&#10; else: miss += 1&#10;logging.log(level=logging.DATA, msg='hit={:.2f}%,miss={:.2f}%,fa={:.2f}%'.format(hit/trialBack*100,miss/trialBack*100,fa/trialNone*100))&#10;"valType="extendedCode"/>
text="The n-back task presents stimuli sequentially and require you to decide if the current stimulus is the same as one presented n-numbers previous (or back).\n"
+"\n"
+"For example, the 3-back you will indicate if the current number matches the number presented 3 places previous\n"
+"(e.g. A H G A B G B shows that 'A' and 'G' have matches in this sequence).\n"
+"\n"
+f"This is an {expInfo['backN']}-back task.\n"
+f"Press SPACE if the current stimulus is the same a {expInfo['backN']} places previous.\n"
+"\n"
+"Press SPACE bar when ready to start.",
font='Arial',
pos=(0,0),height=1,wrapWidth=30,ori=0,
color='black',colorSpace='rgb',opacity=1,
languageStyle='LTR',
depth=0.0);
instructions_key=keyboard.Keyboard()
# Set experiment start values for variable component stimuli
text="The n-back task presents stimuli sequentially and require you to decide if the current stimulus is the same as one presented n-numbers previous (or back).\n"
+"\n"
+"For example, the 3-back you will indicate if the current number matches the number presented 3 places previous\n"
+"(e.g. A H G A B G B shows that 'A' and 'G' have matches in this sequence).\n"
+"\n"
+f"This is an {expInfo['backN']}-back task.\n"
+f"Press SPACE if the current stimulus is the same a {expInfo['backN']} places previous.\n"
+"\n"
+"Press SPACE bar when ready to start.",
font='Arial',
pos=(0,0),height=1,wrapWidth=30,ori=0,
color='black',colorSpace='rgb',opacity=1,
languageStyle='LTR',
depth=0.0);
instructions_key=keyboard.Keyboard()
# Set experiment start values for variable component stimuli