|
Post by psychra on Nov 20, 2020 18:16:44 GMT
Hi,
I'm stilling figuring out the syntax, but would anyone know how to make the following work?
Task 1 (random trial)
Task 2 (random trial)
Task 1 ""
Task 2 ""
so forth
What is happening is the block is randomly switching between the tasks (1,2,2,2,1,2,1,). I need both tasks to be random in regards to their trials, but their order of appearance needs to be one task then the other task, etc. (1,2,1,2,1,2,1)
Right now my block code is this:
block switch set &mixingStatus 2 message experimentrealtest tasklist test 100 wait_for_response all_before_repeat distraction 100 all_before_repeat end
And the task code looks like this: task distraction table distraction keys c n if &CurrentTask != &previousTask set $taskSwitch 2 fi set &previousTask &CurrentTask show text @1 readkey @3 &maxResponseTime clear 1 show bitmap fixpoint delay 500 clear 2
|
|
andre
Experienced
Posts: 35
|
Post by andre on Dec 9, 2020 11:19:07 GMT
I'm not sure I understand what you mean, in particular by 'task' and 'trial' With 'trials' do you refer to the specific stimuli of that task?
For example, you could have TaskA (odd/even decision of a number) and TaskB (consonant/vowel decision of a letter).
In this example, what would be your task and what your trial?
|
|
|
Post by alexandra (AEC) on Dec 9, 2020 12:24:30 GMT
Hi there, psychra refers to each trial that is called based on a row in a table or an array, which is always random unless you state in the block that it should not be. The task should change after each trial, if I understand correctly, meaning trial 1 task A then trial 1 task B then trial 2 task A then trial 2 task B and so on. Unfortunately, I have not done this type of experiment yet, so I cannot tell you a solution. Maybe you find something useful here: www.psytoolkit.org/experiment-library/taskswitching.html
|
|
andre
Experienced
Posts: 35
|
Post by andre on Dec 9, 2020 13:08:51 GMT
I haven't fully thought this through, but wouldn't it be possible to just turn off the randomization, specify both tasks in the same table, and put the trials in the desired order?
|
|
|
Post by alexandra (AEC) on Dec 10, 2020 21:23:43 GMT
This would be possible by including the number of the task in the table, which contains the information of both tasks, an then define through two if statements in the same task (containing both originaly task 1 and 2) which one (1 or 2) should be done. By adding "fixed" behind your trial number in the block you should get exactly the intended order of tasks. Thank you for the idea andre.
|
|