main ls370 module is now drivable

the value is the current channel, when the target (=channel) is changed,
the value changes to 0, until the switching has finished, including pause time
This commit is contained in:
l_samenv
2020-10-20 14:17:24 +02:00
parent 1b4865c608
commit 880327c544
2 changed files with 69 additions and 18 deletions

View File

@ -32,8 +32,10 @@ class Ls370Sim(Communicator):
]
OTHER_COMMANDS = [
('*IDN?', 'LSCI,MODEL370,370184,05302003'),
('SCAN?', '3,1'),
('SCAN?', '1,1'),
]
channel = [None]
def earlyInit(self):
self._data = dict(self.OTHER_COMMANDS)
for fmt, v in self.CHANNEL_COMMANDS: