def GetParamsAttributes(self, path=None): infos = ConfigTreeNode.GetParamsAttributes(self, path=path) for element in infos: if element["name"] == "CanFestivalInstance": for child in element["children"]: if child["name"] == "CAN_Driver": child["type"] = local_canfestival_config.DLL_LIST return infos
def GetParamsAttributes(self, path=None): infos = ConfigTreeNode.GetParamsAttributes(self, path=path) for element in infos: if element["name"] == "ModbusRequest": for child in element["children"]: if child["name"] == "Function": list = modbus_function_dict.keys() list.sort() child["type"] = list return infos
def GetParamsAttributes(self, path=None): infos = ConfigTreeNode.GetParamsAttributes(self, path=path) for element in infos: if element["name"] == "MemoryArea": for child in element["children"]: if child["name"] == "MemoryAreaType": list = modbus_memtype_dict.keys() list.sort() child["type"] = list return infos
def GetParamsAttributes(self, path=None): infos = ConfigTreeNode.GetParamsAttributes(self, path=path) for element in infos: if element["name"] == "ModbusRTUslave": for child in element["children"]: if child["name"] == "Baud_Rate": child["type"] = modbus_serial_baudrate_list if child["name"] == "Stop_Bits": child["type"] = modbus_serial_stopbits_list if child["name"] == "Parity": child["type"] = modbus_serial_parity_dict.keys() return infos