Hi All,
I am using PTB3 on Matlab on Ubuntu 14.04 (via the neurodebian repo)
I am presenting EEG experiments, accessing the parallel port via the pp.m and associate mex file.
It's a visual experiment with rapidly flickering images (60Hz), so for a period of a few seconds, the scren is flipping every fraction of a second. As stimuli are still flickering on screen, the participants register a response.
I monitor keyboard activity using the KbQueue functions. I start the queue at the beginning of each trial and then flush it at the end. Up until now I have back after the experiment to insert responses into the marker file of the EEG from the behavioural files output in Matlab. But I was wondering if there's any way that a trigger can be automotically sent to the port as soon as a button is pressed? I'd rather not periodically check the Queue as it increases processing demands and wouldn't give good precision.
Thanks for any help,
Neil.