Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Sending trigger to parallel port when the key press occurs

Hi,

I would like to send a trigger to the EEG at the precise moment of a keypress. A keypress occurs once per trial sequence. Can anybody advise how I could link the trigger to the keypress response rather than the onset of the keypress item?

Thanks. I apprectiate any help.

Comments

  • Here is a picture:


  • Hi,

    If your keyboard item runs as long as a keypress, then having the trigger sent right after, should be pretty accurate. If you want to make really sure that there is no delay, you can use Python code in an inline_script and sample response and send the trigger from within there.

    kb = Keyboard()
    k,t = kb.get_key()
    if k != None:
        # send trigger
    

    Hope this helps,

    Eduard

Sign In or Register to comment.