equal
deleted
inserted
replaced
212 return data_type |
212 return data_type |
213 |
213 |
214 # Search for variable informations in project data |
214 # Search for variable informations in project data |
215 infos = self.DataProducer.GetInstanceInfos(iec_path) |
215 infos = self.DataProducer.GetInstanceInfos(iec_path) |
216 if infos is not None: |
216 if infos is not None: |
217 return infos["type"] |
217 return infos.type |
218 |
218 |
219 return None |
219 return None |
220 |
220 |
221 def IsNumType(self, data_type): |
221 def IsNumType(self, data_type): |
222 """ |
222 """ |
244 @param iec_path: Path in PLC of variable to release |
244 @param iec_path: Path in PLC of variable to release |
245 """ |
245 """ |
246 if self.DataProducer is not None: |
246 if self.DataProducer is not None: |
247 self.DataProducer.ReleaseDebugIECVariable(iec_path) |
247 self.DataProducer.ReleaseDebugIECVariable(iec_path) |
248 |
248 |
249 def NewDataAvailable(self, tick, *args, **kwargs): |
249 def NewDataAvailable(self, ticks, *args, **kwargs): |
250 """ |
250 """ |
251 Called by DataProducer for each tick captured |
251 Called by DataProducer for each tick captured |
252 @param tick: PLC tick captured |
252 @param tick: PLC tick captured |
253 All other parameters are passed to refresh function |
253 All other parameters are passed to refresh function |
254 """ |
254 """ |