absolute timestamps, elapsedTime, and synchronization with Empatica


Author
Message
Kosinski_Lille
Kosinski_Lille
Associate Member (192 reputation)Associate Member (192 reputation)Associate Member (192 reputation)Associate Member (192 reputation)Associate Member (192 reputation)Associate Member (192 reputation)Associate Member (192 reputation)Associate Member (192 reputation)Associate Member (192 reputation)
Group: Forum Members
Posts: 13, Visits: 58
Hi,
I am currently programming a fear conditioning task in Inquisit 7 and I would like to synchronize stimulus presentation with electrodermal activity recorded using an Empatica EmbracePlus device.
My goal is to obtain, for each stimulus onset, an absolute timestamp that can be converted or matched to Empatica timestamps, which are expressed as UNIX timestamps in UTC, typically in microseconds.
I understand that script.currentTime returns the current time only with second-level precision, while script.elapsedTime provides millisecond precision from the start of the script. However, I would like to know what is the cleanest and most accurate method to obtain an absolute stimulus onset time with millisecond precision.
More specifically:
1. Is there a built-in property in Inquisit 7 that provides the absolute time of a stimulus onset with millisecond precision?
2. Should I use properties such as stimulusOnsetTime or stimulusOnsetTimestamp for this purpose?
3. Are these values based on the actual onset of the stimulus on screen, or on the scheduled onset in the trial?
4. Is it possible to export an absolute UTC timestamp directly from Inquisit?
5. If not, what would be the recommended procedure to reconstruct an absolute UNIX timestamp from script.elapsedTimeand the script start time?
At the moment, my intended workflow is to export the Inquisit event script.currentTime, convert the stimulus onset times to UNIX timestamps in microseconds, and then align them with the Empatica EDA data in post-processing.
Could you please confirm the most reliable way to do this in Inquisit 7?
Thank you very much for your help.
Best regards,
Thierry

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Reading This Topic

Explore
Messages
Mentions
Search