|
Post by william on Feb 15, 2020 12:49:18 GMT
Hello,
I am stucked on the conception on my script, I would like to use a Go/NoGo task.
However, I don’t want to have the signal « NoGo » more than two times in a row.
I don't find a good solution on the manual
Does someone have an idea how i need to write the script to avoid it ?
Thanks
|
|
|
Post by PsyToolkit on Feb 17, 2020 9:48:25 GMT
You want a very specific type of sequencing. I can see why you want to do that. There are two ways of doing this: The easiest way: 1) option 1 - Keep the code as is, but change the table. Make your own "semi random" sequence once, with no double no-go's in it and put that in a table. If you want 100 trials, make sure your table has 100 lines (one for each trial) - in your block tasklist, use the "fixed" option (see documentation). This will run the trials one by one as specified in the table www.psytoolkit.org/doc2.6.1/syntax.html2) Option 2 - Do not use a table. You basically have only two conditions, so you can just choose your condition at random (with "set"), and then use some if... lines to select what you want. You can use "while..." to run through that until you get the condition that satisfies your criteria In short: It is definitely possible, but you need to spend a bit of time familiarising yourself with the code. For further questions/advice, please contact me via psytoolkit@gmx.com
|
|
|
Post by william on Feb 23, 2020 10:28:10 GMT
Thank you for your help The first solution worked very well
|
|
|
Post by PsyToolkit on Feb 24, 2020 10:24:49 GMT
Okay, good to hear that worked for you. Please ask if you have other questions.
|
|
|
Post by xaycbcs on Jun 4, 2020 15:02:45 GMT
Hello !!
i am also designing an experiment which requires more or less type of codition.
in my experiment i require a set of trials i am trying to do with 'set'
is there any possibility to get a list of trial type such as
if one trial type as typeA = 0 typeB = 1.... further typeB have three conditions (A, B, C) and these three conditions have four conditions(1, 2, 3, 4; A1,A2,A3,A4, B1,B2,B3,B4, C1,C2,C3,C4)... ... requirement is that if condition 1 of A,B,C will not repeat after condition 1 of A, B C.....for example, in a sequence if trial come A1 then next trial would not be of B1 or C1 type...
and [1,0,0,1,0,0,0,1,0] so that i can run trials based on predefined order generated by some code.
as i don't want to end task with typeB trial.
and two typeB trials can not come two time in a row.
i searche but i did not get a list or array type of variable... is there any possibility to generate a table using set..
Thanks in advance.
|
|