Using setstimulustime() to insert more than one stimulus at the same time


Using setstimulustime() to insert more than one stimulus at the same...
Author
Message
Julian_Bas
Julian_Bas
Associate Member (274 reputation)Associate Member (274 reputation)Associate Member (274 reputation)Associate Member (274 reputation)Associate Member (274 reputation)Associate Member (274 reputation)Associate Member (274 reputation)Associate Member (274 reputation)Associate Member (274 reputation)
Group: Forum Members
Posts: 7, Visits: 63
Dear forum

I have a question regarding some difficulty I'm experiencing in trying to dynamically insert two stimuli into a trial using the trial.setstimulustime() or trial.insertstimulustime() commands. From reading the documentation on each of these commands, I also am not clear on the difference between each. Any help here would be very much appreciated :) 
My apologies if this information is present elsewhere. I could not locate an answer on the forums or the Inquisit help information.

In each trial i wish to present a black square and a white square simultaneously. However, the onset time of these stimuli varies randomly at either 500ms or 1000ms from the start of the trial. 
I randomly select this onset time (SOA) by importing items from a list into a value at the start of each trial, then checking the contents of the value to determine the appropriate stimulustime.

At present, my code is similar to the example code below

<list SOAselection>
/ items = (500, 1000)
/ selectionmode = random
</list>

<trial mytrial>
/ ontrialbegin = [values.SOA = list.SOAselection.nextvalue]
/ ontrialbegin = [if(values.SOA == 500) trial.mytrial.setstimulustime(picture.blacksquare, 500)]
/ ontrialbegin = [if(values.SOA == 500) trial.mytrial.setstimulustime(picture.whitesquare, 500)]
/ ontrialbegin = [if(values.SOA == 1000) trial.mytrial.setstimulustime(picture.blacksquare, 1000)]
/ ontrialbegin = [if(values.SOA == 1000) trial.mytrial.setstimulustime(picturewhitesquare, 1000)]
/ stimulustimes = [0 = outline]
.....
/ ontrialend = [trial.mytrial.resetstimulusframes()]
</trial>

However, using this code only 1 of the stimuli are presented. In this case, the white square. Interestingly, when I swap the order of the black square and white square in the if statement, then the black square is presented only. This leads me to believe that the second setting of setstimulustime is 'overwriting the first.

Thus, my primary question is twofold:
1) Is it possible to use setstimulustime or insertstimulustime to vary the onset of more than one stimulus?
2) If so, how may this be achieved?

A supplementary question is an explanation on the precise difference between setstimulustime and insertstimulustime

I would be very grateful for any insight into these queries.
Thank you very much! :)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Reading This Topic

Explore
Messages
Mentions
Search