From d1b264a12621ad6c17bd078913188ce68104801e Mon Sep 17 00:00:00 2001 From: Pete R Jemian Date: Mon, 8 Jul 2024 16:35:21 -0500 Subject: [PATCH] MNT #975 2M undulator --- apstools/devices/__init__.py | 3 +++ apstools/devices/aps_undulator.py | 27 ++++++++++++++++++++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/apstools/devices/__init__.py b/apstools/devices/__init__.py index ae859886..a3813d5a 100644 --- a/apstools/devices/__init__.py +++ b/apstools/devices/__init__.py @@ -18,6 +18,9 @@ from .aps_machine import ApsMachineParametersDevice from .aps_undulator import PlanarUndulator +from .aps_undulator import Revolver_Undulator +from .aps_undulator import STI_Undulator +from .aps_undulator import Undulator2M from .area_detector_support import AD_EpicsFileNameMixin from .area_detector_support import AD_FrameType_schemes diff --git a/apstools/devices/aps_undulator.py b/apstools/devices/aps_undulator.py index 62974fc2..7766b6b1 100644 --- a/apstools/devices/aps_undulator.py +++ b/apstools/devices/aps_undulator.py @@ -7,6 +7,7 @@ ~PlanarUndulator ~Revolver_Undulator ~STI_Undulator + ~Undulator2M """ import logging @@ -166,7 +167,7 @@ class Revolver_Undulator(ID_Spectrum_Mixin, ID_Controls_Mixin, ID_Misc_Mixin, De class STI_Undulator(PlanarUndulator): """APS Planar Undulator built by STI Optronics. - .. index:: + .. index:: Ophyd Device; PlanarUndulator Ophyd Device; STI_Undulator @@ -178,6 +179,30 @@ class STI_Undulator(PlanarUndulator): """ +class Undulator2M(ID_Spectrum_Mixin, ID_Controls_Mixin, ID_Misc_Mixin, Device): + """APS 2M Undulator. + + .. index:: + Ophyd Device; PlanarUndulator + Ophyd Device; Undulator2M + + APS Use: 1ID, downstream. + + EXAMPLE:: + + undulator = Undulator2M("S01ID:DSID:", name="undulator") + """ + + # PVs not found + busy = None + magnet = None + version_plc = None + version_hpmu = None + + done = Component(EpicsSignalRO, "BusyM.VAL", kind="omitted") + done_value = 0 + + # ----------------------------------------------------------------------------- # :author: Pete R. Jemian # :email: jemian@anl.gov