How to control number of items in a trial (newbie question)


How to control number of items in a trial (newbie question)

Author
Message
Musashi Jason
Musashi Jason
Respected Member
Respected Member (406 reputation)Respected Member (406 reputation)Respected Member (406 reputation)Respected Member (406 reputation)Respected Member (406 reputation)Respected Member (406 reputation)Respected Member (406 reputation)Respected Member (406 reputation)Respected Member (406 reputation)

Group: Forum Members
Posts: 30, Visits: 63
Hello,

I'm ramping up my knowledge with Inquisit 5 but am still very green. I ran across the script attached and am hoping to modify it by adding images to be displayed before auditory stimuli but am stuck at a very trivial point.

I can't figure out why this script runs 20 stimuli for each trial. I know it is likely a very basic question but could someone point me to the location in the script code that makes the experiment run for two sets of 20?

Regards

Jason

P.S. I've already hacked it a bit so this is not identical to the one I found here on the forums.
Attachments
script.iqx (97 views, 3.00 KB)
Dave
Dave
Supreme Being
Supreme Being (469K reputation)Supreme Being (469K reputation)Supreme Being (469K reputation)Supreme Being (469K reputation)Supreme Being (469K reputation)Supreme Being (469K reputation)Supreme Being (469K reputation)Supreme Being (469K reputation)Supreme Being (469K reputation)

Group: Administrators
Posts: 9K, Visits: 38K
Musashi Jason - Thursday, May 10, 2018
Hello,

I'm ramping up my knowledge with Inquisit 5 but am still very green. I ran across the script attached and am hoping to modify it by adding images to be displayed before auditory stimuli but am stuck at a very trivial point.

I can't figure out why this script runs 20 stimuli for each trial. I know it is likely a very basic question but could someone point me to the location in the script code that makes the experiment run for two sets of 20?

Regards

Jason

P.S. I've already hacked it a bit so this is not identical to the one I found here on the forums.

So, there's a <block>

<block SRTTblock>
/ onblockbegin = [
    text.focus.textcolor = parameters.screencolor;
    text.focus.textbgcolor = parameters.screencolor;
   
    block.SRTTblock.screencolor = parameters.screencolor;
]
/ trials = [1 =  SRTT]
/ preinstructions = (instruct)
/ postinstructions = (feedback)
/ stop = [trial.SRTT.count == parameters.maxtrialnumber]
</block>

with a /stop condition: If the number of instances of <trial SRTT> is equal to parameters.maxtrialnumber, the block terminates. That parameter is set to 20

<parameters>
/targetspeaker = -10000
/volumeadjust = 0
/maxtrialnumber = 20
/screencolor = white
/speakerfixed = 0
/volumefixed = 0
</parameters>

Musashi Jason
Musashi Jason
Respected Member
Respected Member (406 reputation)Respected Member (406 reputation)Respected Member (406 reputation)Respected Member (406 reputation)Respected Member (406 reputation)Respected Member (406 reputation)Respected Member (406 reputation)Respected Member (406 reputation)Respected Member (406 reputation)

Group: Forum Members
Posts: 30, Visits: 63
Dave - Thursday, May 10, 2018
Musashi Jason - Thursday, May 10, 2018
Hello,

I'm ramping up my knowledge with Inquisit 5 but am still very green. I ran across the script attached and am hoping to modify it by adding images to be displayed before auditory stimuli but am stuck at a very trivial point.

I can't figure out why this script runs 20 stimuli for each trial. I know it is likely a very basic question but could someone point me to the location in the script code that makes the experiment run for two sets of 20?

Regards

Jason

P.S. I've already hacked it a bit so this is not identical to the one I found here on the forums.

So, there's a <block>

<block SRTTblock>
/ onblockbegin = [
    text.focus.textcolor = parameters.screencolor;
    text.focus.textbgcolor = parameters.screencolor;
   
    block.SRTTblock.screencolor = parameters.screencolor;
]
/ trials = [1 =  SRTT]
/ preinstructions = (instruct)
/ postinstructions = (feedback)
/ stop = [trial.SRTT.count == parameters.maxtrialnumber]
</block>

with a /stop condition: If the number of instances of <trial SRTT> is equal to parameters.maxtrialnumber, the block terminates. That parameter is set to 20

<parameters>
/targetspeaker = -10000
/volumeadjust = 0
/maxtrialnumber = 20
/screencolor = white
/speakerfixed = 0
/volumefixed = 0
</parameters>

Dave,

Thanks, once again, for your excellent help. I was afraid it was going to be something painfully simple. :-/ I don't know why I didn't think to simply search for "20" in the script. Sorry for taking your time but thank you very much for your patient help.

Regards

Jason
GO


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....






Millisecond Forums


Search