How to set up sync with fMRI using parallel port

Thank you for reply @TParsons @Michael. Just to clarify, so my code looks fine, right?
I have double checked. The I/O range of parallel port is C100-C103, hence the address should be 0xC100.
I recently notice that, e.g. in MRI experiment: start routine by MRI pulse from parallel port, they also configured the parallel port address in the settings, which I haven’t done. Should that be the problem?

1 Like