Dear Lex,
I am wondering if you could help us out on this printing issue with FED3 logdata() function.
I
have been trying to log the timing of events in millisecond precisions
by printing out existing variables "pelletTime", "leftPokeTime", or
"rightPokeTime" (see codes below).
if (Event == "Pellet"){
logfile.print(pelletTime); // print pellet timing
}
else if ((Event == "Left") or (Event == "LeftShort") or (Event == "LeftWithPellet")) {
logfile.print(leftPokeTime); // print left poke timing
}
else if ((Event == "Right") or (Event == "RightShort") or (Event == "RightWithPellet")) {
logfile.print(rightPokeTime); // print left poke timing
}
else {
logfile.print(sqrt (-1)); // print NaN
}
logfile.print(",");
After a few manual trials, the tabulated CSV results are quite puzzling.
For example, the time elapse calculated from "Time" (1st column) does not always match the range of "Time_elapse".
There is also "decrement" in one case.
How does it happen? Could you help me with this? Thank you so much for your generous time and help.