Hi Jonny,
I am currently struggling a bit to record continuous data within autopilot which I assume is mainly due to my very rudimentary understanding on how to best use callback function for sending the logic level and timestamp to the terminal.
My aim is to record a synchro pulses at 30 Hz from another system throughout the session and store the data. The pin to record is configured in my prefs.json
file as this (I am not sure about the event/trigger options):
"S": {
"event": "",
"name": "S",
"pin": 15,
"polarity": 1,
"pull": 0,
"record": true,
"trigger": "",
"type": "gpio.Digital_In"
}
and I am able to call callback functions when the pin receives input (e.g. self.triggers['S'] = [*callback function*]
). I also configured the ContinuousData
descriptor in the task heading (so that I find the empty 'continuous_data'
key next to the 'trial_data'
in my .h5 file).
My question now is: how do I return the continuous data (or basically the timestamps from the continuous inputs to my pin) to the terminal, so that I store it in my .h5 file? From your response above, I understand that the way to go would be to trigger a callback function each time the pin receives input and that this functions sends the timestamps (and logical status) to the terminal. Unfortunately, this is the point where I am currently struggle to understand on how to solve this issue and I would be very glad if you could help me. :)
Maybe as a side note, for now, I was thinking to record the synchro pulses with the same pilot that is controlling my task, so not to use a child for recording the synchro pulse.
Thanks a lot in advance!
Best,
Felix
--
You received this message because you are subscribed to the Google Groups "autopilot-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to autopilot-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/autopilot-users/bee9c06a-0c8b-4d8a-be46-18c38e691388n%40googlegroups.com.