Responsetrial: how to select one, and at the same time skip the other one


Responsetrial: how to select one, and at the same time skip the other...
Author
Message
wj_y
wj_y
Associate Member (226 reputation)Associate Member (226 reputation)Associate Member (226 reputation)Associate Member (226 reputation)Associate Member (226 reputation)Associate Member (226 reputation)Associate Member (226 reputation)Associate Member (226 reputation)Associate Member (226 reputation)
Group: Forum Members
Posts: 3, Visits: 8
Hi all,
I am trying to make a script to assign different trials (trial B / C) based on the response the user give in trial A. I have 100 trial in A, 100 in B and 100 in C, all in sequence. So for the 1st trial A, if the user choose "j", they should go to the 1st trial B, and if the choose "k", it will go to the 1st trial C. At the same time, the trial that does not get chosen should never appear again. 
Right now, what I have is: if on the 1st trial A, they choose "j" and go to 1st B. Then in the 2nd trial A, when they choose "k", they will go to the 1st trial C instead of the 2nd C. I tried "skip", but it didn't work. How should I solve this problem? Thank you!!

My script is here:
<trial A>
/stimulustimes= [0= T1_11, T1_12, j, k]
/timeout = 5000
/ validresponse = ("j","k")
/ beginresponsetime = 0
/ responseinterrupt = trial
/ responsetrial == ("j", trial.B)
/ responsetrial == ("k", trial.C)
</trial>

<trial B>
/stimulustimes= [0=T1_21, T1_Q]
/timeout = 5000
/ skip = [trial.A.response == "k"]
</trial>

<trial C>
/stimulustimes= [0=T1_22, T1_2_Q]
/timeout = 5000
/ skip = [trial.A.response == "j"]
</trial>

<block test_1>
/ trials = [1-100=sequence(A)]
</block>

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View

Reading This Topic

Explore
Messages
Mentions
Search