Back
Login
Register
Login
Register
Millisecond Forums
Home
»
Millisecond Forums
»
Inquisit 4
»
Task Breaks Upon User Input
Task Breaks Upon User Input
Post Reply
Like
51
Task Breaks Upon User Input
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
DCole9
DCole9
posted 9 Years Ago
ANSWER
HOT
Topic Details
Share Topic
Group: Forum Members
Posts: 42,
Visits: 220
Hey Inquisiteers,
I'm having an issue where my task will suddenly quit when a user inputs a value. I had the experiment working but made some (what I thought were) minor changes and now it will not continue to the next trial. Here is the problem code.. I would very much appreciate any help you could offer.
<trial InitialSelect>
/ontrialbegin = [values.responseRT = 0; values.numtrials += 1; values.numblock += 1]
/ontrialbegin = [values.startcolor = list.startcolor.nextvalue]
/ontrialbegin = [values.numcolor = values.startcolor]
/ontrialbegin = [values.lownumcolor = values.numcolor]
/ontrialbegin = [values.highnumcolor = values.numcolor]
/ontrialbegin = [text.highnumber.textcolor = values.numcolor]
/ontrialbegin = [text.lownumber.textcolor = values.numcolor]
/ontrialbegin = [text.highnumber.item.1 = list.numberlist.nextvalue]
/ontrialbegin = [text.lownumber.item.1 = text.highnumber.item.1]
/ontrialbegin = [values.number = text.highnumber.item.1]
/ontrialbegin = [values.stiminterval = list.stimulusinterval.nextvalue]
/ontrialbegin = [values.randomposition = list.randomposition.nextvalue]
/ontrialbegin = [values.randomdemand = list.randomdemand.nextvalue]
/ontrialbegin = [if ((values.number == "1") || (values.number == "3") || (values.number == "7") || (values.number == "9")) values.odd = 1 else values.odd = 0]
/ontrialbegin = [if ((values.number == "2") || (values.number == "4") || (values.number == "6") || (values.number == "8")) values.even = 1 else values.even = 0]
/ontrialbegin = [if ((values.number == "1") || (values.number == "2") || (values.number == "3") || (values.number == "4")) values.lowerthan = 1 else values.lowerthan = 0]
/ontrialbegin = [if ((values.number == "6") || (values.number == "7") || (values.number == "8") || (values.number == "9")) values.greaterthan = 1 else values.greaterthan = 0]
/ontrialbegin = [values.topchosen = 0; values.bottomchosen = 0; values.choiceRT = 0;
values.topchosenRT = 0; values.bottomchosenRT = 0; values.lowdemandchoiceRT = 0; values.highdemandchoiceRT = 0; values.trialelapsedtime = 0;
values.failed = 0; values.patch1chosencount = 0; values.patch2chosencount = 0; values.lowdemandchosen = 0; values.highdemandchosen = 0
]
/ontrialbegin = [if (values.randomposition == "1") values.patch1y = 40%]
/ontrialbegin = [if (values.randomposition == "1") values.patch2y = 60%]
/ontrialbegin = [if (values.randomposition == "2") values.patch1y = 60%]
/ontrialbegin = [if (values.randomposition == "2") values.patch2y = 40%]
/ontrialbegin = [text.diceroll.item.1 = list.rolldice.nextvalue]
/ontrialbegin = [values.diceoutcome = text.diceroll.item.1]
/ontrialbegin = [if (values.numblock == 1) {trial.initialselect.insertstimulusframe(picture.patch2, 1); trial.initialselect.insertstimulusframe(picture.patch1, 1)}]
/ontrialbegin = [if (values.numblock == 2) {trial.initialselect.insertstimulusframe(picture.patch3, 1); trial.initialselect.insertstimulusframe(picture.patch4, 1)}]
/ontrialbegin = [if (values.numblock == 3) {trial.initialselect.insertstimulusframe(picture.patch5, 1); trial.initialselect.insertstimulusframe(picture.patch6, 1)}]
/ontrialbegin = [if (values.numblock == 4) {trial.initialselect.insertstimulusframe(picture.patch7, 1); trial.initialselect.insertstimulusframe(picture.patch8, 1)}]
/stimulusframes = [1 = choose]
/validresponse = (20, 48)
/timeout = 5000
/ontrialend = [if ((trial.InitialSelect.response == "20") && (values.randomposition == "1")) values.topchosen = 1; values.patch1chosencount = 1; values.patch2chosencount = 0]
/ontrialend = [if ((trial.InitialSelect.response == "20") && (values.randomposition == "1")) values.totaltopchosencount += 1; values.totalpatch1chosencount += 1]
/ontrialend = [if ((trial.InitialSelect.response == "20") && (values.randomposition == "1")) values.topchosenRT = trial.initialselect.elapsedtime; values.responseRT = trial.initialselect.elapsedtime]
/ontrialend = [if ((trial.InitialSelect.response == "48") && (values.randomposition == "1")) values.bottomchosen = 1; values.patch2chosencount = 1; values.patch1chosencount = 0]
/ontrialend = [if ((trial.InitialSelect.response == "48") && (values.randomposition == "1")) values.totalbottomchosencount += 1; values.totalpatch2chosencount += 1]
/ontrialend = [if ((trial.InitialSelect.response == "48") && (values.randomposition == "1")) values.bottomchosenRT = trial.initialselect.elapsedtime; values.responseRT = trial.initialselect.elapsedtime]
/ontrialend = [if ((trial.InitialSelect.response == "48") && (values.randomposition == "2")) values.bottomchosen = 1; values.patch1chosencount = 1; values.patch2chosencount = 0]
/ontrialend = [if ((trial.InitialSelect.response == "48") && (values.randomposition == "2")) values.totalbottomchosencount += 1; values.totalpatch1chosencount += 1]
/ontrialend = [if ((trial.InitialSelect.response == "48") && (values.randomposition == "2")) values.bottomchosenRT = trial.initialselect.elapsedtime; values.responseRT = trial.initialselect.elapsedtime]
/ontrialend = [if ((trial.InitialSelect.response == "20") && (values.randomposition == "2")) values.topchosen = 1; values.patch2chosencount = 1; values.patch1chosencount = 0]
/ontrialend = [if ((trial.InitialSelect.response == "20") && (values.randomposition == "2")) values.totaltopchosencount += 1; values.totalpatch2chosencount += 1]
/ontrialend = [if ((trial.InitialSelect.response == "20") && (values.randomposition == "2")) values.topchosenRT = trial.initialselect.elapsedtime; values.responseRT = trial.initialselect.elapsedtime]
/ontrialend = [values.response = trial.InitialSelect.response]
/ontrialend = [values.choicert = trial.InitialSelect.elapsedtime]
/ontrialend = [if ((values.topchosen == 0) && (values.bottomchosen == 0)) values.totalfailed += 1; values.failed = 1]
/ontrialend = [trial.initialselect.resetstimulusframes()]
/branch = [if (trial.initialselect.elapsedtime < 5000) trial.patchtrial]
/branch = [if (trial.initialselect.elapsedtime > 4999) trial.reselecttrial]
Reply
Like
51
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Task Breaks Upon User Input
DCole9
-
9 Years Ago
I'm fairly sure that question cannot be answered without (a) you...
Dave
-
9 Years Ago
Hi Dave, Thanks for the quick response. I've uploaded the whole...
DCole9
-
9 Years Ago
Thanks for attaching the script. As far as I can tell, the script...
Dave
-
9 Years Ago
Hey Dave- I am using Inquisit 4.0.8. After going through the...
DCole9
-
9 Years Ago
Hmm, weird. Not seeing that behavior, the script progresses as...
Dave
-
9 Years Ago
I can't look at the output file since my trial version has run out and...
DCole9
-
9 Years Ago
I'm not sure either. At any rate, I am unfortunately unable to...
Dave
-
9 Years Ago
Thanks a ton for all the help Dave. I'll keep you posted.
DCole9
-
9 Years Ago
The <text> script you provided works... I guess something is off...
DCole9
-
9 Years Ago
Interesting. Can you put those files in a ZIP archive and attach the...
Dave
-
9 Years Ago
Here is the zipped files. Thanks a lot for looking into this Dave. It...
DCole9
-
9 Years Ago
Thanks for providing the files. I'll get back to you ASAP, but I...
Dave
-
9 Years Ago
Okay, here's what I've got so far. Using the image files you provided:...
Dave
-
9 Years Ago
That worked Dave! I don't know how you find these things but you are...
DCole9
-
9 Years Ago
Awesome -- glad to hear that! > I don't know how you find these...
Dave
-
9 Years Ago
Post Reply
Like
51
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Facebook
Explore
Messages
Mentions
Search