controlling delay to the branching trial


Author
Message
vz29
vz29
Distinguished Member (4.9K reputation)Distinguished Member (4.9K reputation)Distinguished Member (4.9K reputation)Distinguished Member (4.9K reputation)Distinguished Member (4.9K reputation)Distinguished Member (4.9K reputation)Distinguished Member (4.9K reputation)Distinguished Member (4.9K reputation)Distinguished Member (4.9K reputation)
Group: Awaiting Activation
Posts: 72, Visits: 192
thanks, dave.
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
The slight delay is probably due to one or several of the stimuli presented by <trial base_negUP> being erased. The delay will thus be on the order of 1 to 2 display frames. You can only get rid of it by setting all the stimulus element's /erase attributes to false as in

<shape blank>
...
/ erase = false
</shape>

etc.

If need be, have the follow up <trial> overwrite any stimuli by displaying the "blank" shape at the start.

<trial what_prompt>
/ validresponse = ("a", "5")
/ correctresponse = ("")
/ stimulustimes = [0 = blank, what; 300 = blank]
/ timeout= 700
</trial>

Also, <trial what_prompt> will only start accepting response after its final stimulus has been displayed ("blank" at 300ms). If you want the trial to start accepting responses earlier (starting with the presentation of "what"), you should specify

<trial what_prompt>
/ ontrialbegin = [trial.what_prompt.resetstimulusframes(); ]
/ validresponse = ("a", "5")
/ correctresponse = ("")
/ stimulustimes = [0 = blank, what; 300 = blank]
/ timeout= 700
/ beginresponsetime = 0
</trial>

For information regarding Inquisit's stimulus erasing behavior, see the "How to erase stimuli" topic in the documentation. For an overview of the various components involved in timing stimuli, trials and responses, I would recommend taking a look at the "How to Control Trial Duration and Inter-Trial Intervals" topic.

vz29
vz29
Distinguished Member (4.9K reputation)Distinguished Member (4.9K reputation)Distinguished Member (4.9K reputation)Distinguished Member (4.9K reputation)Distinguished Member (4.9K reputation)Distinguished Member (4.9K reputation)Distinguished Member (4.9K reputation)Distinguished Member (4.9K reputation)Distinguished Member (4.9K reputation)
Group: Awaiting Activation
Posts: 72, Visits: 192
Thanks. After the presentation of trial base_negUP there is a slight delay. How can I get rid of this?
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
<trial what_prompt>
/ validresponse = ("a", "5")
/ correctresponse = ("")
/ stimulustimes = [0 = noreplace (what); 300 = noreplace (blank)]
/ trialduration = 700
</trial>

/trialduration *fixes* the trial's duration to the specified value -- i.e., the above trial will *always* last 700ms, regardless of when you respond. If you respond prior to 700ms, there will be a delay for the remainder of the 700ms until the next trial starts.

If you want to define a *maximum* duration for the trial, use /timeout, not /trialduration.

<trial what_prompt>
/ validresponse = ("a", "5")
/ correctresponse = ("")
/ stimulustimes = [0 = noreplace (what); 300 = noreplace (blank)]
/ timeout= 700
</trial>

The trial will then terminate as soon as the subjects responds or -- no response occurs -- end after 700ms.

vz29
vz29
Distinguished Member (4.9K reputation)Distinguished Member (4.9K reputation)Distinguished Member (4.9K reputation)Distinguished Member (4.9K reputation)Distinguished Member (4.9K reputation)Distinguished Member (4.9K reputation)Distinguished Member (4.9K reputation)Distinguished Member (4.9K reputation)Distinguished Member (4.9K reputation)
Group: Awaiting Activation
Posts: 72, Visits: 192
hi,

i'd like to present a trial, and then immediately after the P indicates their response, present another prompt. My code below has a delay between the P response and the onset of the next trial. I'm not sure how to shorten it.

Here's the script:

<trial base_negUP>
/ validresponse = ("a", "5")
/ correctresponse = ("a")
/ stimulustimes = [0 = noreplace (base); 200 = noreplace (blank); 300 = noreplace (badtarget)]
/ branch = [trial.what_prompt]
</trial>


<trial what_prompt>
/ validresponse = ("a", "5")
/ correctresponse = ("")
/ stimulustimes = [0 = noreplace (what); 300 = noreplace (blank)]
/ trialduration = 700
</trial>


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search