I am trying to send the messages for my experiment to the IOHUB, so that I can identify when a specific trial, of a specific block was presented on screen, and what information occurred within this time epoch. However, I am having a particular trouble with one specific line of code.
# Send a msg to the hdf5 file with trial info self.hub.sendMessageEvent(text='%.4f %i %i %i %.6f %.6f %.6f' %(trial, presTime, RT,AorB, RT),sec_time=flip_time)
The error message I am getting is:
TypeError('float argument required, not TrialType',) [' File "C:\\Program Files (x86)\\PsychoPy2\\lib\\site-packages\\psychopy\\iohub\\client\\__init__.py", line 1968, in start\n result=self.run(*sys_argv)\n', ' File "E:\\CIT experiment\\Final CIT experiment\\Revised_CIT\\Revised_CIT.py", line 500, in run\n self.hub.sendMessageEvent(text=\'%.4f %i %i %i %.6f %.6f %.6f\' %(trial, presTime, RT, AorB, RT),sec_time=flip_time)\n'] ioHub Server Process Completed With Code: 0
I’m not sure, but I suspect it is to do with using the % function with text.
Any help would be hugely welcomed.