-
Notifications
You must be signed in to change notification settings - Fork 5
Example_optolaser
The laser pattern in optogenetic is regularly customized among 5–30 Hz frequency and 5–10 ms duration. It was feasible that the ArControl could accurately control and/or record these laser events in a behavioral animal.
For example, we compose a typical laser pattern for optogenetic. The laser firstly blinks as 20Hz-5ms for 1min, then rests for 4-6min and continues for 5 turns (approximately 30min).

The schedule can be decomposed to a form named State Machine (below).

The form can be fulfilled in ArControl Designer as figure below. This demo has been imbedded in release version in ArControl Designer> File > Open in > OptoLaser, but need s to be resaved when you use it for the first time.

This demo program has limitations from the using of "BLINK" (laser blink) function.
The output pulse will have +- 1ms discrepancy. For example set the 20Hz&5ms, you will get 20Hz&4~6ms. Other function like KEEPON has also +- 1ms discrepancy.
New in
ArControl V0.4.1has rewritten the BLINK function to the millis() timer based. You can use the BLINK simply like TURN and KEEPON. The BLINK can run days.