I try to send 1 byte via serial port using inline_script (python). I would to trigger this script after keyboard response and only for specific stimuli. So, I place a "run if" [var]="yes" associated with another variable in the first sketchpad.
I have a first script in the beginning of my experiment
ser = serial.Serial ("COM5", 9600)
And my second script, after keyboard response is :
The most minimalist codes of the world! But when I launch opensesame, it cratches only when stimuli associated by var "yes" arrive.
Do you have ideas my friends?