Sending Trigger via Parallel Port in Matlab

Hi all,

I have a similar problem as john.chen78 (https://groups.yahoo.com/neo/groups/psychtoolbox/conversations/topics/21844) but can’t reply to this chat for some reason.

I would like to send a trigger via parallel port in Matlab R2017b (but I also tried R2015b) on Windows 10. Therefore I used the following code. Looks like everything is running fine, but somehow the machine (Pathway from medoc) does not get a trigger.

There are two different port addresses I/O Range DFF8-DFFF and DFF4-DFF7. I tried both.

ioObj = io64;
status = io64(ioObj);
address = hex2dec('DFF8'); %DFF4
data_out=1;
io64(ioObj, address, data_out)

I also tried parPulse (recommended on the Psychtoolbox website), but couldn't get that to work either.
Did I miss anything?

Thank you for any help,
Erna

It works with parPulse..

parPulse(hex2dec('DFF8'));
parPulse(0,0,255,0);     
parPulse(9,0,15,1);

Hi,

Would you mind explain how to use parPulse send trigger to Neuroscan?

I used the trigger version of parPulse but cannot product a event file in Neuroscan, would you mind tell me is there something wrong in my code or is the parPulse function incompatible with Neuroscan?

parPulse(hex2dec('378'), 201, 1, 255, 2*10e-3,1)