Millisecond Forums

Response markers to the parallel port for an n-back task

https://forums.millisecond.com/Topic17674.aspx

By avtobin - 11/9/2015

Within a parametric n-back task, I'm trying to send a response marker out to the parallel port for correct responses (hitting the 'a' key at a target response). Currently I am getting stimulus markers specific to
each level of n-back (1,2 or 3) and I've copied the part of my script specific to the parallel port below. Not sure how I should proceed to have a response marker coming out as well. 

<port EEGsignal>
/ port = lpt3
/ subport = data
/ items = ("00000001", "00000011", "00000101")
/ select = values.N
</port>

<port EEGsignal2>
/ port = lpt3
/ subport = data
/ items = ("00000010", "00000100", "00000110")
/select = values.N
</port>

<port EEGsignaloff>
/ port = lpt3
/ subport = data
/ items = ("00000000")
</port>

<block EndExp>
/ trials = [1 = EndExp_trial]
</block>
By Dave - 11/9/2015

You will have to send the respective marker via the <trial> element's /responsemessage, /errormessage and/or correctmessage attribute(s). See e.g. www.millisecond.com/forums/Topic1721.aspx for how this works in principle. For an elaborate example re. use of <port> elements, see the Auditory Oddball Task script available in the library.
By avtobin - 11/10/2015

Thank you, that suggestion worked!