psychopy.org | Reference | Downloads | Github

2 parallel ports to 2 TMS coils


#1

OS: Ubuntu (Xenial)
PsychoPy version: 1.83.04
What are you trying to achieve?: Send triggers to 2 parallel ports, one at once, depending on trial type

Hello, I have two types of trials in my experiment and I am trying to set up parallel port triggers to “fire” two TMS coils.
Depending on which trial is presented, I need to send a trigger to either parallel ports, each of them connected to a different TMS coil.
Having worked in builder mode so far, I checked whether the parallel port specification field in the relevant object could be used dynamically, but that is not the case.
Therefore, I guess that I could use code snippets to check which type the current trial belong (from my stimuli spreadsheet), and send a trigger to the respective parallel port (with a 500ms from trial onset).
Any advice on the code bits that would allow me to do so? I could not find examples that really matched my current design, and I don´t have much experience with parallel ports altogether.


#2

Hello, I want to ask whether you solved this problem?
Now I want to create a TMS experiment, but I have no experience with the program. so could you give some guideline and help me to solve my problem?
the link of my problem is How to use PsychoPy Builder to create a TMS experiment?
Thank you very much!