graphics/GraphicCommons.py
changeset 1102 cd4a996ddaa7
parent 1089 5cd1f8df71aa
child 1120 35d772ec1a76
equal deleted inserted replaced
1101:5a0b439cf576 1102:cd4a996ddaa7
   356         if self.RegisterTick and self.Debug and self.DataProducer is not None:
   356         if self.RegisterTick and self.Debug and self.DataProducer is not None:
   357             self.DataProducer.SubscribeDebugIECVariable("__tick__", self)
   357             self.DataProducer.SubscribeDebugIECVariable("__tick__", self)
   358     
   358     
   359     def GetDataType(self, iec_path):
   359     def GetDataType(self, iec_path):
   360         if self.DataProducer is not None:
   360         if self.DataProducer is not None:
       
   361             data_type = self.DataProducer.GetDebugIECVariableType(iec_path.upper())
       
   362             if data_type is not None:
       
   363                 return data_type
       
   364             
   361             infos = self.DataProducer.GetInstanceInfos(iec_path)
   365             infos = self.DataProducer.GetInstanceInfos(iec_path)
   362             if infos is not None:
   366             if infos is not None:
   363                 return infos["type"]
   367                 return infos["type"]
   364             return self.DataProducer.GetDebugIECVariableType(iec_path.upper())
       
   365         return None
   368         return None
   366     
   369     
   367     def IsNumType(self, data_type):
   370     def IsNumType(self, data_type):
   368         return self.DataProducer.IsNumType(data_type)
   371         return self.DataProducer.IsNumType(data_type)
   369     
   372