billkarsh / SpikeGLX

SpikeGLX recording system GUI [Neuropixels NI]
Other
83 stars 29 forks source link

TTL Controlled Start and Stop - pre & post trigger times #11

Closed v-hofmann closed 5 years ago

v-hofmann commented 5 years ago

Hi,

i have recorded some Neuropixel data with SpikeGLX by externally triggering the recording (i.e. latch high until trigger voltage goes back to 0).

During data analysis I noticed there is a pre- and a post-trigger time in the recording. It seems to be 1s . Is this correct and if yes how precise is this 1s in consecutive recordings (i.e. within one run)? I seem to have some time offset in my files (i.e. i concatinated files in for spikesorting) that i am trying to figure out and couldnt find any information regarding pre-/post trigger periods in the recordings.

All the best Volker

billkarsh commented 5 years ago

For TTL trigger, (1) Latch High mode starts recording upon TTL rising edge and stays on forever (latched) until you close gate (press Disable Recording or stop run). (2) Follow mode starts recording on TTL rising edge and stops recording on falling edge and will do this as many times as you specify. From your description, you’re running with Follow mode.

There is a box on the trigger config page to add an amount of margin. The default is 1 second. Whatever you type here is added to the recorded file just before the trigger time, and after the falling edge time in Follow mode. The time is precise. The time that was applied to your recording is noted in the metadata as item trgTTLMarginS.

A forthcoming offline helper tool (CatGT) is coming soon to help you properly sew trial files back together seamlessly and several other helpful postprocessing tasks. That is 4 to 5 weeks away.

Try to reserve the issues service of github for bug reporting and refer questions directly to me. My email can be found in the ReadMe of your download.

From: v-hofmann [mailto:notifications@github.com] Sent: Wednesday, July 24, 2019 4:26 PM To: billkarsh/SpikeGLX SpikeGLX@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [billkarsh/SpikeGLX] TTL Controlled Start and Stop - pre & post trigger times (#11)

Hi,

i have recorded some Neuropixel data with SpikeGLX by externally triggering the recording (i.e. latch high until trigger voltage goes back to 0).

During data analysis I noticed there is a pre- and a post-trigger time in the recording. It seems to be 1s . Is this correct and if yes how precise is this 1s in consecutive recordings (i.e. within one run)? I seem to have some time offset in my files (i.e. i concatinated files in for spikesorting) that i am trying to figure out and couldnt find any information regarding pre-/post trigger periods in the recordings.

All the best Volker

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_billkarsh_SpikeGLX_issues_11-3Femail-5Fsource-3Dnotifications-26email-5Ftoken-3DABWEDUAQSLBDE5FMRPANTETQBC3E5A5CNFSM4IGT7TS2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HBJ2MRA&d=DwMCaQ&c=LU6cRtx0xgB8s29tIz9Olw&r=0vvSFKZvJTxorur_z5owbqOFewpNsc0lVMtd1qwN7RY&m=oUzAn1CfgJZIRcZwzr9LLrrV_15hg3C9s9tAf0K2rfM&s=XXttHlvOtBOaeFFje1Mm1OpIJVzdbhwly6DkL0tnDAo&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_ABWEDUCXA3DAUYZVJO2XVCDQBC3E5ANCNFSM4IGT7TSQ&d=DwMCaQ&c=LU6cRtx0xgB8s29tIz9Olw&r=0vvSFKZvJTxorur_z5owbqOFewpNsc0lVMtd1qwN7RY&m=oUzAn1CfgJZIRcZwzr9LLrrV_15hg3C9s9tAf0K2rfM&s=cUjNXYVHUNBUtIOIcpna5yDByxHNHDogJ7R7zpej5g4&e=.