def MoveMotors(self): """ :rtype: PyTango.DevBoolean """ self.debug_stream("In MoveMotors()") argout = False #----- PROTECTED REGION ID(ManageServer.MoveMotors) ENABLED START -----# g = PyTango.Group("my_group") g.add("simulation/huiling/1") g.add("bottom/hhl/1") # execute a command with the same parameter value for all devices in the group data = PyTango.DeviceData() data.insert(PyTango.DevDouble, 30.000) #g.command_inout("SetPosition", data) # execute a command with different parameter values, one for each device in the group data_list = PyTango.DeviceDataList() data1 = PyTango.DeviceData() data1.insert(PyTango.DevDouble, 30.000) data2 = PyTango.DeviceData() data2.insert(PyTango.DevDouble, -30.000) data_list.append(data1) data_list.append(data2) g.command_inout("SetPosition", data_list) argout=True #----- PROTECTED REGION END -----# // ManageServer.MoveMotors return argout