trial stimulustimes


trial stimulustimes

Author
Message
scollin
scollin
New Member
New Member (32 reputation)New Member (32 reputation)New Member (32 reputation)New Member (32 reputation)New Member (32 reputation)New Member (32 reputation)New Member (32 reputation)New Member (32 reputation)New Member (32 reputation)

Group: Forum Members
Posts: 5, Visits: 21
I have set up an experiment in Inquisit where participants see, on each trial, a fixation cross followed by 5 different stimuli, presented subsequently one at the time. It then saves all participants' responses during the trial in 'values.responses'. Currently, the times when each stimulus comes on the screen during a trial is set in stimulustimes in milliseconds (see below). However, I was wondering if it is possible to set it up in such a way that the trial continues to the next stimulus in the trial only when the participant pressed a button, e.g. the space bar. in other words, that 'learning2' stimulus would not onset at 7000 milliseconds but would wait until the participant has pressed the button, etc. Thanks!

<trial learning>
/ ontrialbegin = [values.responses="";]
/ stimulustimes = [1=fixation; 1000=learning1; 7000=learning2; 27000=learning3; 58000=learning4; 84000=learning5]
/ isvalidresponse = [{values.responses=concat(concat(values.responses, ","), trial.learning.response); false;}]
/ recorddata = true
/ beginresponsetime = 0
/ inputdevice = keyboard
/ responseinterrupt = trial
/ timeout = 50000
</trial>

Dave
Dave
Supreme Being
Supreme Being (446K reputation)Supreme Being (446K reputation)Supreme Being (446K reputation)Supreme Being (446K reputation)Supreme Being (446K reputation)Supreme Being (446K reputation)Supreme Being (446K reputation)Supreme Being (446K reputation)Supreme Being (446K reputation)

Group: Administrators
Posts: 9K, Visits: 38K
scollin - Wednesday, July 25, 2018
I have set up an experiment in Inquisit where participants see, on each trial, a fixation cross followed by 5 different stimuli, presented subsequently one at the time. It then saves all participants' responses during the trial in 'values.responses'. Currently, the times when each stimulus comes on the screen during a trial is set in stimulustimes in milliseconds (see below). However, I was wondering if it is possible to set it up in such a way that the trial continues to the next stimulus in the trial only when the participant pressed a button, e.g. the space bar. in other words, that 'learning2' stimulus would not onset at 7000 milliseconds but would wait until the participant has pressed the button, etc. Thanks!

<trial learning>
/ ontrialbegin = [values.responses="";]
/ stimulustimes = [1=fixation; 1000=learning1; 7000=learning2; 27000=learning3; 58000=learning4; 84000=learning5]
/ isvalidresponse = [{values.responses=concat(concat(values.responses, ","), trial.learning.response); false;}]
/ recorddata = true
/ beginresponsetime = 0
/ inputdevice = keyboard
/ responseinterrupt = trial
/ timeout = 50000
</trial>

To do this, you would have to split things into separate trials and run them in sequence. I.e. trial presents learning1 and waits for a response, then trial that presents learning2 and waits for a response, trial that presents learning3 and waits for response, and so forth.

scollin
scollin
New Member
New Member (32 reputation)New Member (32 reputation)New Member (32 reputation)New Member (32 reputation)New Member (32 reputation)New Member (32 reputation)New Member (32 reputation)New Member (32 reputation)New Member (32 reputation)

Group: Forum Members
Posts: 5, Visits: 21
Dave - Wednesday, July 25, 2018
scollin - Wednesday, July 25, 2018
I have set up an experiment in Inquisit where participants see, on each trial, a fixation cross followed by 5 different stimuli, presented subsequently one at the time. It then saves all participants' responses during the trial in 'values.responses'. Currently, the times when each stimulus comes on the screen during a trial is set in stimulustimes in milliseconds (see below). However, I was wondering if it is possible to set it up in such a way that the trial continues to the next stimulus in the trial only when the participant pressed a button, e.g. the space bar. in other words, that 'learning2' stimulus would not onset at 7000 milliseconds but would wait until the participant has pressed the button, etc. Thanks!

<trial learning>
/ ontrialbegin = [values.responses="";]
/ stimulustimes = [1=fixation; 1000=learning1; 7000=learning2; 27000=learning3; 58000=learning4; 84000=learning5]
/ isvalidresponse = [{values.responses=concat(concat(values.responses, ","), trial.learning.response); false;}]
/ recorddata = true
/ beginresponsetime = 0
/ inputdevice = keyboard
/ responseinterrupt = trial
/ timeout = 50000
</trial>

To do this, you would have to split things into separate trials and run them in sequence. I.e. trial presents learning1 and waits for a response, then trial that presents learning2 and waits for a response, trial that presents learning3 and waits for response, and so forth.

Ok, thanks!

GO


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....






Millisecond Forums


Search