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);