Sounds like you’ll be expecting the signal to come into your stimulus computer via parallel port output of your signal adapter board @ pin 10. After instantiating your parallel port, you should use the port.readPin(10) functionality to read pin 10. It’ll return 1 if high, 0 if low. I’d also make sure that the parallel port is set to input functionality. In other words, once your setup is connected, assuming your parallel port address is 0x4FF8:
from psychopy import parallel
# instantiate ports
port = parallel.ParallelPort(0x4FF8)
ctrl_port = parallel.ParallelPort(0x4FF8+2)
# check if direction bit is set to 0 in the control register, if so flip it
if ctrl_port.readPin(7) == 0:
ctrl_port.setPin(7, 1)
# check whether a button has been pressed
pressed = False
while not pressed:
response = port.readPin(10) # returns 1 if pressed, 0 if not
if response:
print("Hooray! Button response registered.")
pressed = True