This example uses PyTangoGroup to read the status of all devices in a Device Server
import PyTango
server_name = 'VacuumController/AssemblyArea'
group = PyTango.Group(server_name)
devs = [d for d in PyTango.Database().get_device_class_list(server_name) if '/' in d and 'dserver' not in d]
for d in devs:
group.add(d)
answers = group.command_inout('Status',[])
for reply in answers:
print 'Device %s Status is:' % reply.dev_name()
print reply.get_data()
No comments:
Post a Comment