frappy_psi.ls372: fixes
Change-Id: Iba85a2a6539da541f9914cc083659d387189ccb3
This commit is contained in:
+2
-2
@@ -196,7 +196,7 @@ class ResChannel(Channel):
|
||||
enabled = Parameter('is this channel enabled?', datatype=BoolType(), readonly=False)
|
||||
pause = Parameter('pause after channel change', datatype=FloatRange(3, 60, unit='s'), readonly=False)
|
||||
dwell = Parameter('dwell time with autoscan', datatype=FloatRange(1, 200, unit='s'), readonly=False)
|
||||
filter = Parameter('filter time', datatype=FloatRange(0, 200, unit='s'), readonly=False)
|
||||
filter = Parameter('filter time', datatype=FloatRange(1, 200, unit='s'), readonly=False)
|
||||
|
||||
_toggle_autorange = 'init'
|
||||
_prev_rdgrng = (1, 1) # last read values for icur and exc
|
||||
@@ -216,7 +216,7 @@ class ResChannel(Channel):
|
||||
def change(self, command, *args):
|
||||
cmd, _, qarg = command.partition(' ')
|
||||
args = ','.join([qarg] + [f'{a:g}' for a in args])
|
||||
return parse(self.switcher.communicate(f'{cmd} {args};{cmd}?{qarg}'))
|
||||
return parse(self.switcher.communicate(f'{command} {args};{command}?{qarg}'))
|
||||
|
||||
def read_status(self):
|
||||
if not self.enabled:
|
||||
|
||||
Reference in New Issue
Block a user