Inquisit and EEG trigger: Some triggers recorded and some not


Author
Message
yanyan
yanyan
Partner Member (990 reputation)Partner Member (990 reputation)Partner Member (990 reputation)Partner Member (990 reputation)Partner Member (990 reputation)Partner Member (990 reputation)Partner Member (990 reputation)Partner Member (990 reputation)Partner Member (990 reputation)
Group: Forum Members
Posts: 12, Visits: 31
Dear all,

I have a question about the EEG triggers. I have modified a dot probe task based on the template from milllisecond library. 
I want to connect it to neuroscan, and I used the <port> to set up triggers. 
I set multiple triggers in different time points.
For example, I set up three  triggers, and the problem is that only the first trigger works ( could be recorded).   

<trial MS_NA>
/ontrialbegin = [values.fixationduration=random(1600,1700,1800,1900,2000,2100,2200)]
/ ontrialbegin = [values.valid = 0; values.validcorrect = 0; values.trialcount += 1; values.category="MS_NA"]
/ ontrialbegin = [values.itemnumber = list.mortality_itemnumbers.nextvalue]
/ ontrialbegin = [values.target_position = list.mortality_positions.nextvalue]
/ ontrialbegin = [values.congruence = list.mortalityprobe_congruence.nextvalue]
/ ontrialbegin = [if (values.target_position == 1) {values.mortality_x = values.target_left_x; values.negative_x = values.target_right_x}
else {values.mortality_x = values.target_right_x; values.negative_x = values.target_left_x}]
/ ontrialbegin = [if (values.congruence == 1) {values.probe_x = values.mortality_x} else {values.probe_x = values.negative_x}]
/ ontrialbegin = [trial.MS_NA.insertstimulustime(text.mortality, values.fixationduration)]
/ ontrialbegin = [trial.MS_NA.insertstimulustime(text.negative, values.fixationduration)]
/ ontrialbegin = [trial.MS_NA.insertstimulustime(port.ms_na_word, values.fixationduration)]
/ ontrialbegin = [trial.MS_NA.insertstimulustime(shape.eraser, (values.fixationduration + values.targetduration))]
/ ontrialbegin = [trial.MS_NA.insertstimulustime(text.fixation, (values.fixationduration+values.targetduration))]
/ ontrialbegin = [trial.MS_NA.insertstimulustime(text.probe, (values.fixationduration + values.targetduration ))]
/ ontrialbegin = [if (values.congruence ==1) trial.MS_NA.insertstimulustime(port.ms_na_con, (values.fixationduration + values.targetduration ))]
/ ontrialbegin = [if (values.congruence ==2) trial.MS_NA.insertstimulustime(port.ms_na_incon, (values.fixationduration + values.targetduration ))]
/ ontrialend = [trial.MS_NA.resetstimulusframes()]
/ stimulusframes = [1 = fixation]
/ beginresponsetime = values.fixationduration + values.targetduration
/ responseinterrupt = immediate
/ isvalidresponse = [trial.MS_NA.response == values.responsekey_left || trial.MS_NA.response == values.responsekey_right]
/ iscorrectresponse = [(values.probe_x == values.target_left_x && trial.MS_NA.response == values.responsekey_left) ||
(values.probe_x == values.target_right_x && trial.MS_NA.response == values.responsekey_right)]
/ ontrialend = [if (trial.MS_NA.latency >= values.minimum_latency) values.valid = 1]
/ ontrialend = [if (values.valid == 1 && trial.MS_NA.correct) values.validcorrect = 1]
/ ontrialend = [if (values.validcorrect == 1) {values.sumcorrect += 1; values.sumrt += trial.MS_NA.latency}]
/ ontrialend = [if (values.congruence == 1) values.count_congruent_MS_NA += 1 else values.count_incongruent_MS_NA += 1]
/ ontrialend = [if (values.validcorrect == 1 && values.congruence == 1) {values.sumcorrect_congruent_MS_NA += 1; values.sumrt_congruent_MS_NA += trial.MS_NA.latency}]
/ ontrialend = [if (values.validcorrect == 1 && values.congruence == 2) {values.sumcorrect_incongruent_MS_NA += 1; values.sumrt_incongruent_MS_NA += trial.MS_NA.latency}]
/ timeout = (values.fixationduration + values.targetduration + values.probeduration)
</trial>

<port MS_NA_word>
/ port = LPT1
/ subport = data
/ items = ("00000001")
</port>

<port MS_NA_con>
/ port = LPT1
/ subport = data
/ items = ("00000100")

<port MS_NA_incon>
/ port = LPT1
/ subport = data
/ items = ("00000111")
</port>

Only the MS_NA_word trigger could be recorded in the EEG maker file. The other two are not recorded. 

Does anyone know why and how to resolve this?
Thank you so much!

Best,
Yan
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
yanyan - 7 Years Ago
Dave - 7 Years Ago
yanyan - 7 Years Ago
Dave - 7 Years Ago
                     + x [quote] [b] Dave - Thursday, June 15, 2017 [/b] +...
yanyan - 7 Years Ago
                         + x [quote] [b] yanyan - Thursday, June 15, 2017 [/b]...
Dave - 7 Years Ago
                             + x [quote] [b] Dave - Thursday, June 15, 2017 [/b] +...
yanyan - 7 Years Ago
                                 + x [quote] [b] yanyan - Friday, June 16, 2017 [/b] +...
Dave - 7 Years Ago
                                     + x [quote] [b] Dave - Friday, June 16, 2017 [/b] +...
yanyan - 7 Years Ago
                                         + x [quote] [b] yanyan - Friday, June 16, 2017 [/b] +...
Dave - 7 Years Ago
                                             + x [quote] [b] Dave - Friday, June 16, 2017 [/b] +...
yanyan - 7 Years Ago
                                                 + x [quote] [b] yanyan - Monday, June 19, 2017 [/b] +...
Dave - 7 Years Ago
                                                     + x [quote] [b] Dave - Monday, June 19, 2017 [/b] +...
yanyan - 7 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search