[Rush hour] how to log responses
Hi All,
during the experiment i need to record the response(s) from the patient. They are arriving at the same serial interface as the sync pulses from MRI scanner, so it's impossible to use keyboard_response.
The MRI trigger is blocking condition of the experiment.
What i've tried is (inputchar is arriving from the response grip):
item.responses.add(response=inputchar, response_time=self.experiment.time(), item=item.name )
or
base_response_item.process_response(self, (inputchar, self.experiment.time()) )
deep in the library. Apparently, it's nor working.
I don't need to validate it right now. The postprocessing will be done in some other software.
Sorry for the rush, i need to run this in a couple of hours ![]()
Comments
Hi,
To register a response, you can use the
responses.add()function (no need to doitem.responses.add()) as described here:You have the response (
inputchar), but not the response time:the time difference between the onset of response collection, and the time at which the response was collected. Theitemkeyword is optional (as are all other keywords, actually): it's just to disambiguate responses in case you have multiple response-collection items.So basically, you need to do something like:
So
t0is the moment at which response collection started. But how you can determine that is unclear from your description.Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi Sebastiaan,
the response comes on the serial interface and i need to process it there. Therefore,
Ok, this seems to work:
At least the debug shows:
's' is a sync trigger from the scanner, while 'a', 'b', 'c' and 'd' are responses from the hand grips.
Just 's' is visible in the log file right now, but this will be a different story.
I prefer to log the absolute timing of the response, where t0 is the start of the experiment. I can check the Nordic Actia logs in the lab, while right now I think the are also logging time from the beginning of the experiment.