Thanks for your reply, now there is a pulse every 10 sec!
Sorry I was talking about a line that I added, print d, just to have an indication of each time I had to have a pulse.
The issue that I have now is the communication between the computer of the task and the EMG triggers and TMS triggers.
I would like to send triggers on EMG to mark the moment of the apparition of one stimuli on the screen and also when the subject responds on the keyboard.
I don’t get the logic of the number I have to put in the par.setData() to indicate sometimes that it codes for the TMS sometimes that it codes for the EMG.
For the moment I used (199) for the TMS pulses, that works but it is also sent to the EMG, it is not suppose to do that.
And the contrary happens too, I coded (222) to trigger the EMG that the subject push the left key, but this parallel port data also send trigger to the TMS machin and send a pulse.
Do you have informations or do you know where I can find informations about the way to choose the code of the par.setData function to distinguish when the trigger have to be sent to the EMG or to the TMS?
P.S.: I am sorry for my bad English.