Task Breaks Upon User Input


Author
Message
DCole9
DCole9
Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)
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]

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
DCole9 - 9 Years Ago
Dave - 9 Years Ago
DCole9 - 9 Years Ago
Dave - 9 Years Ago
DCole9 - 9 Years Ago
Dave - 9 Years Ago
DCole9 - 9 Years Ago
Dave - 9 Years Ago
DCole9 - 9 Years Ago
DCole9 - 9 Years Ago
Dave - 9 Years Ago
DCole9 - 9 Years Ago
Dave - 9 Years Ago
Dave - 9 Years Ago
DCole9 - 9 Years Ago
Dave - 9 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search