mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2025-07-11 11:11:53 +02:00
feat(galil): added lights on/off
This commit is contained in:
@ -42,6 +42,8 @@ class FlomniGalilController(GalilController):
|
|||||||
"fosaz_light_curtain_is_triggered",
|
"fosaz_light_curtain_is_triggered",
|
||||||
"is_motor_on",
|
"is_motor_on",
|
||||||
"all_axes_referenced",
|
"all_axes_referenced",
|
||||||
|
"lights_off",
|
||||||
|
"lights_on",
|
||||||
]
|
]
|
||||||
|
|
||||||
def is_axis_moving(self, axis_Id, axis_Id_numeric) -> bool:
|
def is_axis_moving(self, axis_Id, axis_Id_numeric) -> bool:
|
||||||
@ -65,6 +67,18 @@ class FlomniGalilController(GalilController):
|
|||||||
|
|
||||||
return int(float(self.socket_put_and_receive("MG @IN[14]").strip())) == 1
|
return int(float(self.socket_put_and_receive("MG @IN[14]").strip())) == 1
|
||||||
|
|
||||||
|
def lights_off(self) -> None:
|
||||||
|
"""
|
||||||
|
Turn off the lights
|
||||||
|
"""
|
||||||
|
self.socket_put_confirmed("CB15")
|
||||||
|
|
||||||
|
def lights_on(self) -> None:
|
||||||
|
"""
|
||||||
|
Turn on the lights
|
||||||
|
"""
|
||||||
|
self.socket_put_confirmed("SB15")
|
||||||
|
|
||||||
|
|
||||||
class FlomniGalilReadbackSignal(GalilSignalRO):
|
class FlomniGalilReadbackSignal(GalilSignalRO):
|
||||||
@retry_once
|
@retry_once
|
||||||
|
Reference in New Issue
Block a user