OS (e.g. Win10): Win 7
PsychoPy version (e.g. 1.84.x): PsychoPy2
**Standard Standalone? y
**What are you trying to achieve?:
First of all, thanks in advance and apologies for bringing up a common issue again but I’ve been searching for answers all day and not been able to solve this issue.
I’m trying to get PsychoPy to send triggers to the eego EEG software to see when certain images are displayed.
I’ve followed threads such as this: Cannot send a signal via ParallelPort using PsychoPy on Windows7 (64bit)
and have managed to get the PC I’m running the experiment on to recognise the parallel port and run the test experiment successfully without any error messages. The issue I’ve found is there are no visible triggers on my eego preview.
I really just want to get the parallel port to log different data triggers when different stimuli are shown. In this test example, 2 when a wolf is shown, 3 when a tsunami is shown etc. then set the data point back to 0 when the trial ends, and repeat this process for the next trial etc.
What did you try to make it work?:
I tried using the parallel port out component in builder view and it looks like this:
From what I can tell the port address is correct, and the “Start data” field aligns with my conditions file and looks like this:
I’ve also tried following a similar method in this thread by using code: Very lost on how to get a trigger sent using parallel port
And here’s how my code looks:
Begin Experiment:
from psychopy import parallel
port = parallel.ParallelPort(address = 0x0378)
port.setData(0)
Each Frame:
if images == ‘images/wolf.jpg’:
port.setData(2)
if images == ‘images/tsunami.jpg’:
port.setData(3)
if images == ‘images/tornado.png’:
port.setData(4)
if images == ‘images/tiger.jpg’:
port.setData(5)
End routine:
port.setData(0)
However had the same issue. Here’s an example of some code I used and I’m not 100% sure the syntax is correct but as I say I’ve had no error messages, just no visible triggers. I realise the code I’ve used was experiencing problems anyway but wondered if this was down to the use of a PP component.
I tried both ways together, and separately, and couldn’t see any triggers occurring in my eego program.
I’m wondering if the issue lies in how either the PP or code components are set up, or if the issue is to do with something else? I’m also wondering if this problem might be circumvented with a newer version of PsychoPy (although as a PhD student on an isolated university PC this isn’t something I have free control over at this time).
Any help is greatly appreciated.