From 68a5b6945ffb89a23600b087ff9d5ea32abdbe2b Mon Sep 17 00:00:00 2001 From: "FR@29iduser" <rodolakis@anl.gov> Date: Tue, 20 Sep 2022 11:07:34 -0500 Subject: [PATCH] add SRS.set_all() method --- iexcode/instruments/current_amplifiers.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/iexcode/instruments/current_amplifiers.py b/iexcode/instruments/current_amplifiers.py index 5d51e8a..7488c52 100644 --- a/iexcode/instruments/current_amplifiers.py +++ b/iexcode/instruments/current_amplifiers.py @@ -350,8 +350,17 @@ class SRS: self.offset_unit = None self.offset_sign = None self.offset_factor = None + self.set_all() self.get_all(verbose=False) + def set_all(self): + """ + set all PV to current SP values (what the screen shows in not necessarely what the PV are set to) + """ + pv=self._srs_pv+"init.PROC" + caput(pv,1) + + def get_all(self,verbose): """ reads the current SRS and corresponding scaler values -- GitLab