Hello, I am a new user for Bonsai and I'm having a trouble how to put the trigger signal in my final results.
I am tracking mouse movement while I am stimulating its brain, and the stimulation is every 5 second for 300 ms duration.
I used matlab code to sync the Arduino LED with function generator which triggers the stimulation.
But, now I don't know how to use another region of interest to monitor the LED region separate from the mouse arena, and somehow merge that blinking signal into final results (centroid X, Y).
I attached the matlab code and my current work flow. Please let me know if you know any better ways to solve this problem.
Thank you!