add the status name to the 'rdlink' message

This commit is contained in:
2025-03-18 14:35:14 +01:00
parent c67c0f7e9d
commit b8ac8f8bb5

View File

@ -35,7 +35,7 @@ class SecopClient:
def w_getblock(self, path):
path = path.split(',')[-1] # TODO: why this?
if path == "main":
components = [dict(type='rdlink', name=name+':value', title=name)
components = [dict(type='rdlink', name=f'{name}:value', statusname=f'{name}:status', title=name)
for node in self.instrument.nodes for name in node.modules]
self.param_updates = {'value', 'status'}
return dict(type='draw', path='main', title='modules', components=components)