Group: Administrators
Posts: 13K,
Visits: 104K
|
|
Group: Forum Members
Posts: 28,
Visits: 213
|
Thank you very much. I knew there had to be an easy way. I just didn't find it =)
|
Group: Administrators
Posts: 13K,
Visits: 104K
|
#1: To implement your maximum repetitions constraint, you need to use the <list> element's /maxrunsize attribute. Details are available in the language reference for the <list> element / the maxrunsize attribute.
#2: To remove items from a <list>, see the documentation for the <list>'s available functions, such as removeitem(). This function can be called /ontrialend if an incorrect response has occurred.
|
Group: Forum Members
Posts: 28,
Visits: 213
|
Hello, I'm new to Inquisit and want to program a paradigm. During each one of three blocks two kind of stimuli shall be presented randomly 50 times. Hence, I made a list containing from which for each trial the stimuli are taken randomly. However, I like to implement one restriction namely I do not want more than three instances of the same stimulus to be presented consecutively. I'm not sure, whether there is already a tool that I can use or whether an expression is needed ... Though, any suggestions on how to solve this issue would be very much appreciated! With the same task I do have another maybe related issue. After choice of the stimulus a correct response is followed either by positive or no feedback. For correct responses the ratio of positive:no feedback is fix and again I made a list where the kind of feedback is randomly drawn from. But in case a incorrect response is given, I would like to reduce the "no feedbacks" in that list by one. Again I would appreciate any suggestions very much. I case I did not manage to make myself clear, I also post the code I've written. Best Julia
<list targettype> /items = ["trial.short"; "trial.long";] / itemprobabilities = (0.5; 0.5;) /poolsize = 64 /selectionmode = random </list>
<list corr_feed_short_80> / items = ( 1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1, 1,1,1,1,2,2,2,2,2,2,2,2) /selectionmode = random /replace = false </list>
<list corr_feed_long_20> / items = ( 1,1,1,1,1,1,1,1,2,2, 2,2,2,2,2,2,2,2,2,2, 2,2,2,2,2,2,2,2,2,2,2,2) /selectionmode = random /replace = false </list>
<expressions> /fb1 = if (values.corr_feed_short_80 == 1) "Richtig!! 5 ct gewonnen."; if (values.corr_feed_short_80 == 2) " " /fb2 = if (values.corr_feed_long_20 == 1) "Richtig!! 5 ct gewonnen."; if (values.corr_feed_long_20 == 2) " "
</expressions> ************************************************************************************************************************************************************************** ************************************************************************************************************************************************************************** Blocks ************************************************************************************************************************************************************************** ************************************************************************************************************************************************************************** <block 1von4> / onblockbegin = [values.targettype=list.targettype.nextvalue; values.trialcount+=1] / trials = [1-60 = noreplace(short, long)] </block>
************************************************************************************************************************************************************************** ************************************************************************************************************************************************************************** Trial elements ************************************************************************************************************************************************************************** ************************************************************************************************************************************************************************** if (values.cuetype == 1 && values.correctresp != 0) {values.count_gocue_gotarget += 1}
<trial short> / stimulustimes = [0=blankscreen, fixation; 500=cue; 1000=short; 1100=blankscreen, cue] / validresponse = ("k","l") / correctresponse = ("k") / responsetrial = ("k", FbPosShort) / responsetrial = ("l", FbNoneShort) / recorddata = true </trial>
<trial FbPosShort> / ontrialbegin = [values.corr_feed_short_80=list.corr_feed_short_80.nextvalue; values.trialcount+=1] / stimulustimes = [0=blankscreen, feedback1] / timeout = 1700
|