log additional variables

51 views
Skip to first unread message

uest...@gmail.com

unread,
Jul 15, 2022, 4:15:00 AM7/15/22
to FEDforum
Hi All,

I am writing a new protocol, and there are some new variables I want to record, 
1.  How to log additional variables in the FED3 code?  

2.  In my new protocol, I will give a 3s light cue, and I also want to send a 3s Opto-stim simultaneously,  how to do that?

Best,
Jon

Lex Kravitz

unread,
Jul 15, 2022, 1:37:22 PM7/15/22
to FEDforum
Hi Jon!
Thanks for the question, I recorded a video about it as it's a topic that should be useful for others. 

Briefly, you can edit the logData() function in the FED3.cpp file (line 917 in v1.12.0) to log anything you want!  If you add columns you will probably also want to edit the writeHeader() function (line 892) to add column headers for your new variables.  Video that talks through how to do this is here

王策群

unread,
Jul 16, 2022, 1:21:09 AM7/16/22
to Lex Kravitz, FEDforum
Hi Lex,

Thanks for making this super cool video, it's very helpful.

Lex Kravitz <lex.k...@gmail.com> 于2022年7月16日周六 01:37写道:
--
You received this message because you are subscribed to the Google Groups "FEDforum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fedforum+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fedforum/deb8e33b-5d53-467d-9580-a86d13118cccn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages