Skip to content

Example_optolaser

ChenXF edited this page Feb 8, 2023 · 3 revisions

Control the Optogentic Laser Pattern

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).

optolaser_task

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

optolaser_form

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.

optolaser_form

Warning:

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.1 has rewritten the BLINK function to the millis() timer based. You can use the BLINK simply like TURN and KEEPON. The BLINK can run days.

Clone this wiki locally