|
Post by Hanna6 on Jun 17, 2020 9:35:26 GMT
Hey Guys, In the following picture you can see my experiment (=the task/tasks): ibb.co/2hFmW9hSo there are two tasks I have to define. 1. Press Space bar and SAVE RT 2. Press F or J and SAVE RT STATUS Is it possible two write it in one task? When I write two tasks and write it in the tasklist, it is random and maybe task 2. happens before task 1. - so it's not working! task kompatibel_01_Zielsuche show bitmap Reiz_01_Wanderschuhe delay 1000 clear -1 show bitmap Kompatibel_01_Prime delay 1000 clear -1 show bitmap Kompatibel_01_Reize keys space q readkey 1 5000 clear -1 save RT BLOCKNAME TASKNAME
task kompatibel_01_Überprüfung show bitmap Kompatibel_01_Zahlen delay 1000 clear -1 show bitmap Kompatibel_01_Auswahl keys f j readkey 2 5000 save STATUS RT BLOCKNAME TASKNAME In total there are 45 tasks block experiment
message Instruktion_NachTraining
tasklist
kompatibel_01_Zielsuche kompatibel_01_Überprüfung
43 more tasks... (this order have to bei fixed and not random!)
end
message Instruktion_NachVersuch_01
message Instruktion_nachVersuch_02
THANK YOU!
|
|
|
Post by alexandra (AEC) on Jun 17, 2020 12:11:45 GMT
Hi Hanna,
I wonder if it would be easier for you to use a table with all necessary information,if the tasks are of the same build. Then you could just refer to the columns containing the images you want to be shown and which keys would be the correct response by using @ in your task and set the task in tasklist as fixed in your block, so the table is read in the order provided.
Back to your question, this should be possible by creating $[insert name of local variable, e.g. RT_first] after your first readkey and then set $RT_first RT if you also want the status, you could phrase it for example like this: set $status_first STATUS
Then everything else follows and you could either set another local variable with the following RT or just save RT and STATUS. Just make sure you define all keys under keys and refer to the correct number of key as you are already doing in your functions. For TASKNAME it will be a bit more tricky I think, because you would have to work with numbers instead of characters, if you do not refer to columns of a table when saving the task information. For example, set $tasktypeA 1 and set $tasktypeB 2 or something like that.
|
|