Back
Login
Register
Login
Register
Millisecond Forums
Home
»
Millisecond Forums
»
Inquisit 5
»
setting a different trial duration for every trial
setting a different trial duration for every trial
Post Reply
Like
29
setting a different trial duration for every trial
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
nrouhani
nrouhani
posted 6 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 83,
Visits: 261
hello,
i was wondering whether it would be possible to have every trial have a different duration, where that trial's duration would be pulled from a list.
thank you!
Reply
Like
29
Dave
Dave
posted 6 Years Ago
ANSWER
Post Details
Share Post
Group: Administrators
Posts: 13K,
Visits: 108K
+
x
nrouhani - Monday, March 18, 2019
hello,
i was wondering whether it would be possible to have every trial have a different duration, where that trial's duration would be pulled from a list.
thank you!
Yes, that is absolutely possible. The /triaduration attribute accepts variables, i.e. you can easily vary it like so:
<values>
/ duration = 0
</values>
<list durations>
/ items = (1500, 3000, 4500)
</list>
<trial exampletrial>
/ ontrialbegin = [
values.duration = list.durations.nextvalue;
]
/ stimulusframes = [1=examplestimulus]
/ validresponse = (0)
/ trialduration = values.duration
</trial>
<text examplestimulus>
/ items = ("Duration of this trial: <%values.duration%> ms.")
</text>
<block exampleblock>
/ trials = [1-3=exampletrial]
</block>
Reply
Like
32
nrouhani
nrouhani
posted 6 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 83,
Visits: 261
+
x
Dave - Monday, March 18, 2019
+
x
nrouhani - Monday, March 18, 2019
hello,
i was wondering whether it would be possible to have every trial have a different duration, where that trial's duration would be pulled from a list.
thank you!
Yes, that is absolutely possible. The /triaduration attribute accepts variables, i.e. you can easily vary it like so:
<values>
/ duration = 0
</values>
<list durations>
/ items = (1500, 3000, 4500)
</list>
<trial exampletrial>
/ ontrialbegin = [
values.duration = list.durations.nextvalue;
]
/ stimulusframes = [1=examplestimulus]
/ validresponse = (0)
/ trialduration = values.duration
</trial>
<text examplestimulus>
/ items = ("Duration of this trial: <%values.duration%> ms.")
</text>
<block exampleblock>
/ trials = [1-3=exampletrial]
</block>
thank you so much!
Reply
Like
25
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
29
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Facebook
Explore
Messages
Mentions
Search