Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/ALP4.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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):
'''
Expand Down