diff --git a/src/ALP4.py b/src/ALP4.py index 12bb0fa..a675214 100644 --- a/src/ALP4.py +++ b/src/ALP4.py @@ -436,7 +436,7 @@ def SeqAlloc(self, nbImg = 1, bitDepth = 1): RETURNS ------- - SequenceID : ctypes c_ulong + SequenceId : ctypes c_ulong Id of the created sequence. This id is stored internally as the last created sequence and erase the previous one. When a sequence relasted function is used without @@ -711,7 +711,7 @@ def DevInquire(self, inquireType): ret = ct.c_double(0) self._checkError(self._ALPLib.AlpDevInquire(self.ALP_ID, inquireType, ct.byref(ret)),'Error sending request.') - return ret.value() + return ret.value def SeqInquire(self, inquireType, SequenceId = None): @@ -853,7 +853,7 @@ def DevControlEx(self, controlType, userStruct): See AlpDevControlEx in the ALP API description for control types. ''' - self._checkError(self._ALPLib.AlpDevControlEx(self.ALP_ID, controlType, userStruct.byref()),'Error sending request.') + self._checkError(self._ALPLib.AlpDevControlEx(self.ALP_ID, controlType, ct.byref(userStruct)),'Error sending request.') def ProjControl(self, controlType, value): '''