/ condition = "" / current_raw = 0 / target = 0 / current_iti = 0 ********************************************************* * OBSERVED NUMBERS (Manually Paste In Numbers from Arduino Using Keystrokes..Look at all of the numbers) ********************************************************* / items = ( ) / selectionmode = sequence ********************************************************* * UNOBSERVED NUMBERS (Manually Paste In Numers Blindly from Arduino Using Keystrokes..Cover Screen) ********************************************************* / items = ( ) / selectionmode = sequence ********************************************************* * VARIABLE INTER-TRIAL INTERVAL TIMES ********************************************************* / items = (1040, 1188, 1131, 1143, 1169, 1598, 1432, 898, 2321, 1456, 1576, 2181, 3000, 2461, 1787, 1326, 1925, 1650, 1720, 2101) / selectionmode = random / replace = true ********************************************************* * STIMULI & VISUALS ********************************************************* / items = ("<% values.target %>") / position = (50%, 50%) / txcolor = black / txbgcolor = white / fontstyle = ("Arial", 15%) / shape = rectangle / size = (100%, 100%) / color = white / items = ("Welcome to the experiment.\n\nPress 'e' for EVEN numbers.\nPress 'o' for ODD numbers.\n\n Go as fast as you can. Press the SPACEBAR to begin.") / position = (50%, 50%) / size = (80%, 80%) / txcolor = black / txbgcolor = white / vjustify = center ********************************************************* * TRIALS ********************************************************* / stimulusframes = [1=instructions] / validresponse = (" ") / recorddata = false / ontrialbegin = [ values.condition = "Observed"; values.current_iti = list.iti_times.nextvalue; values.current_raw = list.observed_data.nextvalue; if (values.current_raw == 0) { values.target = 0; } else { values.target = mod((values.current_raw - 1), 9) + 1; }; ] / stimulusframes = [1=target_display] / validresponse = ("e", "o") / branch = [trial.iti_trial] / ontrialbegin = [ values.condition = "Unobserved"; values.current_iti = list.iti_times.nextvalue; values.current_raw = list.unobserved_data.nextvalue; if (values.current_raw == 0) { values.target = 0; } else { values.target = mod((values.current_raw - 1), 9) + 1; }; ] / stimulusframes = [1=target_display] / validresponse = ("e", "o") / branch = [trial.iti_trial] / stimulusframes = [1=blank_screen] / trialduration = values.current_iti / recorddata = false ********************************************************* * BLOCKS & EXPERIMENT ********************************************************* / trials = [1=instruction_trial] / trials = [1-80 = noreplace(observed_trial, unobserved_trial)] / blocks = [1=instruction_block; 2=main_block] ********************************************************* * DATA EXPORT ********************************************************* / columns = (build, date, time, subject, blockcode, trialcode, values.condition, values.current_raw, values.target, response, latency, values.current_iti) / separatefiles = true