Source code for place.plugins.sr850_amp.sr850_interface
"""Interface commands"""
from .sr850_driver import SR850Driver
[docs]class SR850Interface(SR850Driver):
"""Interface commands"""
[docs] def rst(self):
self._set('*RST')
[docs] def idn(self):
return self._query('*IDN?')
[docs] def locl(self, state=None):
cmd = ['Local', 'Remote', 'Local Lockout']
if state is not None:
self._set('LOCL {}'.format(cmd.index(state)))
return cmd[int(self._query('LOCL?'))]
[docs] def ovrm(self, override=None):
cmd = ['No', 'Yes']
if override is not None:
self._set('OVRM {}'.format(cmd.index(override)))
return cmd[int(self._query('OVRM?'))]
[docs] def trig(self):
self._set('TRIG')