Specifying when to send trigger (brainproducts)

Update in case anyone googles their way here:
I finally got it to work using a different code, the one suggested by Becca here:
Sending triggers to brain vision trigger box - Builder - PsychoPy