From e8853ec512abdd3c6c746d22049071de3828c198 Mon Sep 17 00:00:00 2001 From: "Pete R. Jemian" Date: Tue, 25 Aug 2020 15:55:32 -0500 Subject: [PATCH] fixes #402 --- apstools/devices.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/apstools/devices.py b/apstools/devices.py index f1dd1f137..87d7ceeab 100644 --- a/apstools/devices.py +++ b/apstools/devices.py @@ -1454,12 +1454,14 @@ class KohzuSeqCtl_Monochromator(Device): wavelength = Component(EpicsSignal, "BraggLambdaRdbkAO", write_pv="BraggLambdaAO") energy = Component(EpicsSignal, "BraggERdbkAO", write_pv="BraggEAO") theta = Component(EpicsSignal, "BraggThetaRdbkAO", write_pv="BraggThetaAO") - message1 = Component(EpicsSignalRO, "KohzuSeqMsg1SI") + y1 = Component(EpicsSignalRO, "KohzuYRdbkAI") + z2 = Component(EpicsSignalRO, "KohzuZRdbkAI") message2 = Component(EpicsSignalRO, "KohzuSeqMsg2SI") operator_acknowledge = Component(EpicsSignal, "KohzuOperAckBO") use_set = Component(EpicsSignal, "KohzuUseSetBO") mode = Component(EpicsSignal, "KohzuModeBO") move_button = Component(EpicsSignal, "KohzuPutBO") + moving = Component(EpicsSignal, "KohzuMoving") y_offset = Component(EpicsSignal, "Kohzu_yOffsetAO") crystal_mode = Component(EpicsSignal, "KohzuMode2MO") @@ -1470,6 +1472,11 @@ class KohzuSeqCtl_Monochromator(Device): crystal_2d_spacing = Component(EpicsSignal, "Bragg2dSpacingAO") crystal_type = Component(EpicsSignal, "BraggTypeMO") + def move_energy(self, energy): + """for command-line use: ``kohzu_mono.energy_move(8.2)``""" + self.energy.put(energy) + self.move_button.put(1) + class ProcessController(Device):