Habit Task Triggers (TTL)
Habit tries to encode a lot of data in the event trigger status channel. Also see the
- source code for trigger calcuation in phase.cljs
- onset to closest photodiode matlab function pd2taskEEGLAB.m
An example sequence of codes might look like
| 13 | iti, L+U trial upcoming |
| 23 | choice=L+U |
| 2 | button, picked L |
| 163 | waiting: L+U pick L |
| 223 | feedback: L+U pick L, rewarded |
Where ideal times for iti, choice, and waiting should be moved back the the photodiode trigger 1there's bad math and we have an overlap for 2: L picked in L+U and L picked in U+R both are 164 waiting and 214 or 224 feedback
The Side x Picked code has an accidental repeat. 14 is both c L+U p U and c L+R p L
PICKED ( + 150; + 200; +10 reward)
| L U R
SIDE | 10 | 11 | 13
_______/_____|_____|____
L+U ---|‾‾‾‾‾|‾‾‾‾‾|‾‾‾‾
1+2=>3 | 13 | 14* | X
L+R ---|‾‾‾‾‾|‾‾‾‾‾|‾‾‾‾
1+3=>4 | 14*| X | 17
U+R ---|‾‾‾‾‾|‾‾‾‾‾|‾‾‾‾
2+3=>5 | X | 16 | 18