I have used your code to send triggers relating to a stimulus from psychopy to Netstation, and that seems to work fine. However, I also need to send a trigger whenever a participant is making a response. When I ran this, not response triggers appeared on Netstation ('resp'), but I could see the stimulus-related events ('imag'). But then when looking at the saved data there were response events, but no stimulus events. Any advice would be greatly appreciated.