[solved] Different ERP triggers for different conditions
quick question about ERP triggers. If I want to send different triggers for different conditions in my experiment
(e.g. I have named the following variables in my loop item "Context" consisting of Whole, Half and Quarter and "Lateralization" consisting of Right and Left)
would the following inline script send the correct triggers?
E.g. "Whole left" will send trigger 11 and "Quarter Right" will send trigger 32
If self.get("Context") = Whole: p = 1 elif self.get("Context") = Half: p = 2 else: p = 3 If self.get("Lateralization") = Left: o = 1 else: o = 2 global io trigger = po port = 0x378 try: io.DlPortWritePortUchar(port, trigger) except: print 'Failed to send trigger!'
Thanks in advance!