mez
New Member
Posts: 4
|
Post by mez on Oct 15, 2020 22:47:25 GMT
I have a table of 32 as a trial list. I want 64 trials per block. I use all_before_repeat as below. I output to check that trials have been appropriately selected but it does not select all rows equally (some rows selected once, twice or thrice). Help please?
block expttrials1
tasklist
expt 64 all_before_repeat
end
|
|
|
Post by PsyToolkit on Oct 16, 2020 12:16:32 GMT
It should work, but you should have exactly 32 or 64 trials in your table. Alternatively, you could do this completely differently with the "array" functionality in PsyToolkit instead (documentation link below example code). I given an example here:
table mytable "row1" 1
"row2" 2
"row3" 3 ...you need to enter all your rows here, these are just example rows, can contain anything....
"row32" 32
task testtask set $this_time &&all_trials remove first
tablerow $this_time
show text @1 delay 300 save @1 @2
block test set &&my_conditions range 1 32
set &&all_trials &&my_conditions times 2 set &&all_trials shuffle no_repeat
tasklist testtask 64
end
|
|
mez
New Member
Posts: 4
|
Post by mez on Oct 19, 2020 14:22:25 GMT
Thank you!
|
|