migrated secop_psi drivers to new syntax
- includes all changes up to 'fix inheritance order' from git_mlz
6a32ecf342
Change-Id: Ie3ceee3dbd0a9284b47b1d5b5dbe262eebe8f283
This commit is contained in:
@ -22,6 +22,7 @@
|
||||
|
||||
from secop.modules import Communicator
|
||||
|
||||
|
||||
class Ls370Sim(Communicator):
|
||||
CHANNEL_COMMANDS = [
|
||||
('RDGR?%d', '1.0'),
|
||||
@ -32,9 +33,8 @@ class Ls370Sim(Communicator):
|
||||
]
|
||||
OTHER_COMMANDS = [
|
||||
('*IDN?', 'LSCI,MODEL370,370184,05302003'),
|
||||
('SCAN?', '1,1'),
|
||||
('SCAN?', '3,1'),
|
||||
]
|
||||
channel = [None]
|
||||
|
||||
def earlyInit(self):
|
||||
self._data = dict(self.OTHER_COMMANDS)
|
||||
@ -43,7 +43,7 @@ class Ls370Sim(Communicator):
|
||||
self._data[fmt % chan] = v
|
||||
# mkthread(self.run)
|
||||
|
||||
def do_communicate(self, command):
|
||||
def communicate(self, command):
|
||||
# simulation part, time independent
|
||||
for channel in range(1,17):
|
||||
_, _, _, _, excoff = self._data['RDGRNG?%d' % channel].split(',')
|
||||
|
Reference in New Issue
Block a user