Group: Forum Members
Posts: 18,
Visits: 107
|
Hi all,
I'm currently putting together an affective RSVP task where T1 is a neutral stimulus and T2 is an affective stimulus. For this reason, I need to include two target lists as well as a list of distractor items. Also, then, while the items are meant to appear in a designated order in terms of their placement within the stream of words, the items are meant to be randomised in terms of the order in which the words actually sit on the specific list that they come from, and no item from any list is to appear more than once.
I know, since you'll notice I'm new here (and so this experiment in fact represents my first attempt at doing coding) and also because I've read a lot of the answers to the questions posted, what you might ask me next. It's a fair enough question to ask what I've tried to do by myself prior to posting this question. In answer, I have previously done the tutorials, looked up and used the two RSVP tasks that Millisecond Software made available to download (AttentionalBlink and Simple_SimpleAttentionalBlink) as models and attempted to replicate parts of this that seem useful while still trying to make it suit what I'm doing, and tried to look for a post where someone else has had similar issues that might display the sort of coding I'm after.
Anyway, unfortunately, even after doing all that, at this point I feel as though I must be missing something pretty fundamental for the experiment to never include the two target stimuli, Target1 and Target2, when it is running through, which is the major issue I keep coming up against. (To explain that in a little more detail, what I mean is that it will go through the distractors and display them (although I'm not sure that they are being displayed in randomised order as they are meant to be and I think they may be being repeated here) and it will even ask what T1 and T2 were in the response part of the trial as it is meant to do, but it won't actually include T1 and T2 in the stream of stimuli.)
I'm going to include here the trial sections, since it's my belief that something that I've set up in the coding in this section is probably at least one of the bigger aspects of the problems I'm running up against. (Please see below.)
Any and all help would be very much appreciated. :-)
************************************************************ Trial Sequence ************************************************************* <trial t1_T2_fixation> /ontrialbegin = [values.streamelement_count = 0] /ontrialbegin = [values.target1_stim = ""; values.target2_stim = ""] /ontrialbegin = [values.trialcount_perblock += 1] /stimulusframes = [1 = fixation] /trialduration = values.fixationduration /branch = [trial.target1_target2_streamelement] /recorddata = false /errormessage = false </trial>
<trial Target1_Target2_streamelement> /ontrialbegin = [values.streamelement_count += 1] /ontrialbegin = [values.word = list.words_distractors.nextvalue] /ontrialbegin = [text.currentword.textcolor = values.wordcolor] /stimulusframes = [1 = currentword] /ontrialend = [values.wordsshown = values.wordsshown +1] /timeout = values.stimuluspresentation /posttrialpause = values.word_ISI /recorddata = false /errormessage = false /branch=[if (values.wordsshown == values.target1_streamposition) trial.words_target1; else trial.target1_target2_streamelement] /branch=[if (values.streamelement_count == values.max_streamelements) trial.responsecue; else trial.target1_target2_streamelement] /branch=[if (values.wordsshown == values.target2_streamposition) trial.words_target2; else trial.target1_target2_streamelement] </trial>
<trial words_target1> /ontrialbegin = [values.streamelement_count += 1] /ontrialbegin = [values.word = list.words_target1.nextvalue] /ontrialbegin = [text.currentword.textcolor = values.wordcolor] /ontrialbegin = [if (values.Target1_stim == true) values.lag = values.target1_streamposition] /ontrialbegin = [if (values.Target1_stim == true) values.Target1_stim = list.words_target1.nextvalue] /ontrialbegin = [values.target1_streamposition = values.target2_streamposition - values.lag] /ontrialbegin = [if (values.streamelement_count == values.target1_streamposition) { values.target1_stim = values.word; text.currentword.textcolor = values.target1stim_color}] /stimulusframes = [1 = currentword] /ontrialend = [values.wordsshown = values.wordsshown +1] /timeout = values.stimuluspresentation /posttrialpause = values.word_ISI /recorddata = false /errormessage = false /branch=[if (values.wordsshown == values.target2_streamposition) trial.words_target2; else trial.target1_target2_streamelement] </trial>
<trial words_target2> /ontrialbegin = [values.streamelement_count += 1] /ontrialbegin = [values.word = list.words_distractors.nextvalue] /ontrialbegin = [text.currentword.textcolor = values.wordcolor] /ontrialbegin = [if (values.target2_stim == true) values.lag = values.target2_streamposition] /ontrialbegin = [if (values.target2_stim == true) values.target2_stim = list.words_target2.nextvalue] /ontrialbegin = [values.target2_streamposition = list.target2position] /ontrialbegin = [if (values.streamelement_count == values.target2_streamposition) { values.target2_stim = values.word; text.currentword.textcolor = values.target2stim_color}] /stimulusframes = [1 = currentword] /ontrialend = [values.wordsshown = values.wordsshown +1] /timeout = values.stimuluspresentation /posttrialpause = values.word_ISI /recorddata = false /errormessage = false /branch= [trial.target1_target2_streamelement] </trial>
******************************** Trial response ********************************* <trial responsecue> /stimulusframes = [1 = responsecue] /recorddata = false /trialduration = values.responsecue_duration /recorddata = false /branch = [openended.Target1] /errormessage = false </trial>
Note: openended.targetnaming collects the response for T1 <openended Target1> /stimulusframes = [1 = Targetnamingtaskinstructions1] /linelength = 20 /numlines = 1 /buttonlabel = "Click to continue" /branch = [openended.target2] /recorddata = true </openended>
Note: collects the response for T2 <Openended Target2> /stimulusframes = [1 = Targetnamingtaskinstructions2] /linelength = 20 /numlines = 1 /buttonlabel = "Click to continue" /recorddata = true </openended>
|