OS : Windows 10 / XP
PsychoPy version: 1.84.1
Standard Standalone? (y/n) yes
What are you trying to achieve?:
I am trying to setting up an fMRI experiment. For this, I want the routine to start, when the MRI scanner starts to send TR pulses. The MRI pulses will be received by the parallel port.
What did you try to make it work?:
I created a routine with following code component.
from psychopy import parallel
globalClock = core.Clock()
wait_msg="waiting for scanner…"
msg = visual.TextStim(win, color=‘DarkGray’, text=wait_msg)
msg.draw() win.flip() while True: if parallel.readPin(13) == 1: break globalClock.reset() logging.exp('parallel trigger: start of scan') win.flip() # blank the screen on first sync pulse received
The parallel port address is also configured in the settings.
What specifically went wrong when you tried that?:
When I run the experiment I get this error message:
AttributeError: ‘NoneType’ object has no attribute ‘readPin’
What did I miss?
I hope this is enough information to help me with this problem.
I would be really happy for any advice so that I can run my fMRI experiment with no problems.