runtime/PLCObject.py
changeset 1993 cbf0a9ffc782
parent 1990 2e0fbdd152de
child 1994 1fdc32be71b8
equal deleted inserted replaced
1990:2e0fbdd152de 1993:cbf0a9ffc782
   273 
   273 
   274             self._stopPLC_real = self.PLClibraryHandle.stopPLC
   274             self._stopPLC_real = self.PLClibraryHandle.stopPLC
   275             self._stopPLC_real.restype = None
   275             self._stopPLC_real.restype = None
   276 
   276 
   277             self._PythonIterator = getattr(self.PLClibraryHandle, "PythonIterator", None)
   277             self._PythonIterator = getattr(self.PLClibraryHandle, "PythonIterator", None)
   278             print(self._PythonIterator)
       
   279             if self._PythonIterator is not None:
   278             if self._PythonIterator is not None:
   280                 self._PythonIterator.restype = ctypes.c_char_p
   279                 self._PythonIterator.restype = ctypes.c_char_p
   281                 self._PythonIterator.argtypes = [ctypes.c_char_p, ctypes.POINTER(ctypes.c_void_p)]
   280                 self._PythonIterator.argtypes = [ctypes.c_char_p, ctypes.POINTER(ctypes.c_void_p)]
   282 
   281 
   283                 self._stopPLC = self._stopPLC_real
   282                 self._stopPLC = self._stopPLC_real