Skip to content

Commit

Permalink
TTL shutter control
Browse files Browse the repository at this point in the history
  • Loading branch information
Alpaca233 committed Dec 9, 2024
1 parent 7428197 commit c83320b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions software/control/microscope.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ def turn_on_illumination(self, channel=None):
if self.shutter_control_mode == ShutterControlMode.Software:
self.light_source.setLaserOnOff(self.channel_mappings_software[channel], on=True)
elif self.shutter_control_mode == ShutterControlMode.TTL:
self.microcontroller.turn_on_illumination()

self.is_on[channel] = True

Expand All @@ -305,6 +306,7 @@ def turn_off_illumination(self, channel=None):
if self.shutter_control_mode == ShutterControlMode.Software:
self.light_source.setLaserOnOff(self.channel_mappings_software[channel], on=False)
elif self.shutter_control_mode == ShutterControlMode.TTL:
self.microcontroller.turn_off_illumination()

self.is_on[channel] = False

Expand Down

0 comments on commit c83320b

Please sign in to comment.