class MOT_ButtonParameters(Structure):
    _fields_ = [("buttonMode", MOT_ButtonModes), ("leftButtonPosition", c_int),
                ("rightButtonPosition", c_int), ("timeout", c_word),
                ("unused", c_word)]


class MOT_PotentiometerStep(Structure):
    _fields_ = [("thresholdDeflection", c_word), ("velocity", c_dword)]


class MOT_PotentiometerSteps(Structure):
    _fields_ = [("potentiometerStepParameters", (4 * MOT_PotentiometerStep))]


TLI_BuildDeviceList = bind(lib, "TLI_BuildDeviceList", None, c_short)
TLI_GetDeviceListSize = bind(lib, "TLI_GetDeviceListSize", None, c_short)
# TLI_GetDeviceList  <- TODO: Implement SAFEARRAY first. ISC_API short __cdecl TLI_GetDeviceList(SAFEARRAY** stringsReceiver);
# TLI_GetDeviceListByType  <- TODO: Implement SAFEARRAY first. ISC_API short __cdecl TLI_GetDeviceListByType(SAFEARRAY** stringsReceiver, int typeID);
# TLI_GetDeviceListByTypes  <- TODO: Implement SAFEARRAY first. ISC_API short __cdecl TLI_GetDeviceListByTypes(SAFEARRAY** stringsReceiver, int * typeIDs, int length);
TLI_GetDeviceListExt = bind(lib, "TLI_GetDeviceListExt",
                            [POINTER(c_char), c_dword], c_short)
TLI_GetDeviceListByTypeExt = bind(lib, "TLI_GetDeviceListByTypeExt",
                                  [POINTER(c_char), c_dword, c_int], c_short)
TLI_GetDeviceListByTypesExt = bind(
    lib, "TLI_GetDeviceListByTypesExt",
    [POINTER(c_char), c_dword, POINTER(c_int), c_int], c_short)
TLI_GetDeviceInfo = bind(
    lib, "TLI_GetDeviceInfo",
    [POINTER(c_char), POINTER(TLI_DeviceInfo)], c_short)
Beispiel #2
0
class SAFEARRAYBOUND(Structure):
    _fields_ = [("cElements", c_ulong), ("lLbound", c_long)]


class SAFEARRAY(Structure):
    _fields_ = [("cDims", c_ushort), ("fFeatures", c_ushort),
                ("cbElements", c_ulong), ("cLocks", c_ulong),
                ("pvData", c_void_p), ("rgsabound", SAFEARRAYBOUND * 1)]


class DeviceList(Structure):
    _fields_ = [("list", c_char * 250)]


TLI_BuildDeviceList = bind(lib, "TLI_BuildDeviceList", None, c_short)
TLI_GetDeviceInfo = bind(
    lib, "TLI_GetDeviceInfo",
    [POINTER(c_char), POINTER(TLI_DeviceInfo)], c_short)
TLI_GetDeviceList = bind(
    lib, "TLI_GetDeviceList", [POINTER(SAFEARRAY)], c_short
)  # <- TODO: Implement SAFEARRAY first. BENCHTOPSTEPPERMOTOR_API short __cdecl TLI_GetDeviceList(SAFEARRAY** stringsReceiver);
TLI_GetDeviceListByType = not_implemented  # <- TODO: Implement SAFEARRAY first. BENCHTOPSTEPPERMOTOR_API short __cdecl TLI_GetDeviceListByType(SAFEARRAY** stringsReceiver, int typeID);
TLI_GetDeviceListByTypeExt = bind(lib, "TLI_GetDeviceListByTypeExt",
                                  [POINTER(DeviceList), c_dword, c_int],
                                  c_short)
TLI_GetDeviceListByTypes = not_implemented  # <- TODO: Implement SAFEARRAY first. BENCHTOPSTEPPERMOTOR_API short __cdecl TLI_GetDeviceListByTypes(SAFEARRAY** stringsReceiver, int * typeIDs, int length);
TLI_GetDeviceListByTypesExt = bind(
    lib, "TLI_GetDeviceListByTypesExt",
    [POINTER(c_char), c_dword, POINTER(c_int), c_int], c_short)
TLI_GetDeviceListExt = bind(lib, "TLI_GetDeviceListExt",
                ("isKnownType", c_bool), ("motorType", MOT_MotorTypes),
                ("isPiezoDevice", c_bool), ("isLaser", c_bool),
                ("isCustomType", c_bool), ("isRack", c_bool),
                ("maxChannels", c_short)]


class TLI_HardwareInformation(Structure):
    _fields_ = [("serialNumber", c_dword), ("modelNumber", (8 * c_char)),
                ("type", c_word), ("firmwareVersion", c_dword),
                ("notes", (48 * c_char)),
                ("deviceDependantData", (12 * c_byte)),
                ("hardwareVersion", c_word), ("modificationState", c_word),
                ("numChannels", c_short)]


TLI_BuildDeviceList = bind(lib, "TLI_BuildDeviceList", None, c_short)
TLI_GetDeviceListSize = bind(lib, "TLI_GetDeviceListSize", None, c_short)
# TLI_GetDeviceList  <- TODO: Implement SAFEARRAY first. BENCHTOPSTEPPERMOTOR_API short __cdecl TLI_GetDeviceList(SAFEARRAY** stringsReceiver);
# TLI_GetDeviceListByType  <- TODO: Implement SAFEARRAY first. BENCHTOPSTEPPERMOTOR_API short __cdecl TLI_GetDeviceListByType(SAFEARRAY** stringsReceiver, int typeID);
# TLI_GetDeviceListByTypes  <- TODO: Implement SAFEARRAY first. BENCHTOPSTEPPERMOTOR_API short __cdecl TLI_GetDeviceListByTypes(SAFEARRAY** stringsReceiver, int * typeIDs, int length);
TLI_GetDeviceListExt = bind(lib, "TLI_GetDeviceListExt",
                            [POINTER(c_char), c_dword], c_short)
TLI_GetDeviceListByTypeExt = bind(lib, "TLI_GetDeviceListByTypeExt",
                                  [POINTER(c_char), c_dword, c_int], c_short)
TLI_GetDeviceListByTypesExt = bind(
    lib, "TLI_GetDeviceListByTypesExt",
    [POINTER(c_char), c_dword, POINTER(c_int), c_int], c_short)
TLI_GetDeviceInfo = bind(
    lib, "TLI_GetDeviceInfo",
    [POINTER(c_char), POINTER(TLI_DeviceInfo)], c_short)
                ("isCustomType", c_bool),
                ("isRack", c_bool),
                ("maxChannels", c_short)]

class TLI_HardwareInformation(Structure):
    _fields_ = [("serialNumber", c_dword),
                ("modelNumber", (8 * c_char)),
                ("type", c_word),
                ("firmwareVersion", c_dword),
                ("notes", (48 * c_char)),
                ("deviceDependantData", (12 * c_byte)),
                ("hardwareVersion", c_word),
                ("modificationState", c_word),
                ("numChannels", c_short)]

PBC_CheckConnection = bind(lib, "PBC_CheckConnection", )



TLI_BuildDeviceList = bind(lib, "TLI_BuildDeviceList", None, c_short)
TLI_GetDeviceListSize = bind(lib, "TLI_GetDeviceListSize", None, c_short)
# TLI_GetDeviceList  <- TODO: Implement SAFEARRAY first. BENCHTOPSTEPPERMOTOR_API short __cdecl TLI_GetDeviceList(SAFEARRAY** stringsReceiver);
# TLI_GetDeviceListByType  <- TODO: Implement SAFEARRAY first. BENCHTOPSTEPPERMOTOR_API short __cdecl TLI_GetDeviceListByType(SAFEARRAY** stringsReceiver, int typeID);
# TLI_GetDeviceListByTypes  <- TODO: Implement SAFEARRAY first. BENCHTOPSTEPPERMOTOR_API short __cdecl TLI_GetDeviceListByTypes(SAFEARRAY** stringsReceiver, int * typeIDs, int length);
TLI_GetDeviceListExt = bind(lib, "TLI_GetDeviceListExt", [POINTER(c_char), c_dword], c_short)
TLI_GetDeviceListByTypeExt = bind(lib, "TLI_GetDeviceListByTypeExt", [POINTER(c_char), c_dword, c_int], c_short)
TLI_GetDeviceListByTypesExt = bind(lib, "TLI_GetDeviceListByTypesExt", [POINTER(c_char), c_dword, POINTER(c_int), c_int], c_short)
TLI_GetDeviceInfo = bind(lib, "TLI_GetDeviceInfo", [POINTER(c_char), POINTER(TLI_DeviceInfo)], c_short)

# CC_CanHome = bind(lib, "CC_CanHome", [POINTER(c_char)], c_bool)
# CC_ClearMessageQueue = bind(lib, "CC_ClearMessageQueue", [POINTER(c_char)], None)
Beispiel #5
0
                ("isKnownType", c_bool), ("motorType", MOT_MotorTypes),
                ("isPiezoDevice", c_bool), ("isLaser", c_bool),
                ("isCustomType", c_bool), ("isRack", c_bool),
                ("maxChannels", c_short)]


class TLI_HardwareInformation(Structure):
    _fields_ = [("serialNumber", c_dword), ("modelNumber", (8 * c_char)),
                ("type", c_word), ("firmwareVersion", c_dword),
                ("notes", (48 * c_char)),
                ("deviceDependantData", (12 * c_byte)),
                ("hardwareVersion", c_word), ("modificationState", c_word),
                ("numChannels", c_short)]


TLI_BuildDeviceList = bind(lib, "TLI_BuildDeviceList", None, c_short)
TLI_GetDeviceListSize = bind(lib, "TLI_GetDeviceListSize", None, c_short)
# TLI_GetDeviceList  <- TODO: Implement SAFEARRAY first. BENCHTOPSTEPPERMOTOR_API short  TLI_GetDeviceList(SAFEARRAY** stringsReceiver);
# TLI_GetDeviceListByType  <- TODO: Implement SAFEARRAY first. BENCHTOPSTEPPERMOTOR_API short  TLI_GetDeviceListByType(SAFEARRAY** stringsReceiver, int typeID);
# TLI_GetDeviceListByTypes  <- TODO: Implement SAFEARRAY first. BENCHTOPSTEPPERMOTOR_API short  TLI_GetDeviceListByTypes(SAFEARRAY** stringsReceiver, int * typeIDs, int length);
TLI_GetDeviceListExt = bind(lib, "TLI_GetDeviceListExt",
                            [POINTER(c_char), c_dword], c_short)
TLI_GetDeviceListByTypeExt = bind(lib, "TLI_GetDeviceListByTypeExt",
                                  [POINTER(c_char), c_dword, c_int], c_short)
TLI_GetDeviceListByTypesExt = bind(
    lib, "TLI_GetDeviceListByTypesExt",
    [POINTER(c_char), c_dword, POINTER(c_int), c_int], c_short)
TLI_GetDeviceInfo = bind(
    lib, "TLI_GetDeviceInfo",
    [POINTER(c_char), POINTER(TLI_DeviceInfo)], c_short)
class MOT_BrushlessCurrentLoopParameters(Structure):
    _fields_ = [("phase", MOT_CurrentLoopPhases), ("proportionalGain", c_word),
                ("integralGain", c_word), ("integralLimit", c_word),
                ("deadErrorBand", c_word), ("feedForward", c_word),
                ("notUsed", c_word), ("lastNotUsed", c_word)]


class MOT_BrushlessElectricOutputParameters(Structure):
    _fields_ = [("continuousCurrentLimit", c_word),
                ("excessEnergyLimit", c_word), ("motorSignalLimit", c_short),
                ("motorSignalBias", c_short), ("notUsed", c_word),
                ("lastNotUsed", c_word)]


TLI_BuildDeviceList = bind(lib, "TLI_BuildDeviceList", None, c_short)
TLI_GetDeviceListSize = bind(lib, "TLI_GetDeviceListSize", None, c_short)
# TLI_GetDeviceList  <- TODO: Implement SAFEARRAY first. BENCHTOPSTEPPERMOTOR_API short __cdecl TLI_GetDeviceList(SAFEARRAY** stringsReceiver);
# TLI_GetDeviceListByType  <- TODO: Implement SAFEARRAY first. BENCHTOPSTEPPERMOTOR_API short __cdecl TLI_GetDeviceListByType(SAFEARRAY** stringsReceiver, int typeID);
# TLI_GetDeviceListByTypes  <- TODO: Implement SAFEARRAY first. BENCHTOPSTEPPERMOTOR_API short __cdecl TLI_GetDeviceListByTypes(SAFEARRAY** stringsReceiver, int * typeIDs, int length);
TLI_GetDeviceListExt = bind(lib, "TLI_GetDeviceListExt",
                            [POINTER(c_char), c_dword], c_short)
TLI_GetDeviceListByTypeExt = bind(lib, "TLI_GetDeviceListByTypeExt",
                                  [POINTER(c_char), c_dword, c_int], c_short)
TLI_GetDeviceListByTypesExt = bind(
    lib, "TLI_GetDeviceListByTypesExt",
    [POINTER(c_char), c_dword, POINTER(c_int), c_int], c_short)
TLI_GetDeviceInfo = bind(
    lib, "TLI_GetDeviceInfo",
    [POINTER(c_char), POINTER(TLI_DeviceInfo)], c_short)
                ("isKnownType", c_bool), ("isLaser", c_bool),
                ("isPiezoDevice", c_bool), ("isRack", c_bool),
                ("maxChannels", c_short), ("maxPaddles", c_short),
                ("motorType", MOT_MotorTypes), ("PID", c_dword),
                ("serialNo", (9 * c_char)), ("typeID", c_dword)]


class TLI_HardwareInformation(Structure):
    _fields_ = [("deviceDependantData", (12 * c_byte)),
                ("firmwareVersion", c_dword), ("hardwareVersion", c_word),
                ("modelNumber", (8 * c_char)), ("modificationState", c_word),
                ("notes", (48 * c_char)), ("numChannels", c_short),
                ("serialNumber", c_dword), ("type", c_word)]


TLI_BuildDeviceList = bind(lib, "TLI_BuildDeviceList", None, c_short)
TLI_GetDeviceInfo = bind(
    lib, "TLI_GetDeviceInfo",
    [POINTER(c_char), POINTER(TLI_DeviceInfo)], c_short)
TLI_GetDeviceListExt = bind(lib, "TLI_GetDeviceListExt",
                            [POINTER(c_char), c_dword], c_short)
TLI_GetDeviceListSize = bind(lib, "TLI_GetDeviceListSize", None, c_short)
TLI_GetDeviceListByTypeExt = bind(lib, "TLI_GetDeviceListByTypeExt",
                                  [POINTER(c_char), c_dword, c_int], c_short)
TLI_GetDeviceListByTypesExt = bind(
    lib, "TLI_GetDeviceListByTypesExt",
    [POINTER(c_char), c_dword, POINTER(c_int), c_int], c_short)

# TLI_GetDeviceList  <- TODO: Implement SAFEARRAY first. BENCHTOPSTEPPERMOTOR_API short __cdecl TLI_GetDeviceList(SAFEARRAY** stringsReceiver);
# TLI_GetDeviceListByType  <- TODO: Implement SAFEARRAY first. BENCHTOPSTEPPERMOTOR_API short __cdecl TLI_GetDeviceListByType(SAFEARRAY** stringsReceiver, int typeID);
# TLI_GetDeviceListByTypes  <- TODO: Implement SAFEARRAY first. BENCHTOPSTEPPERMOTOR_API short __cdecl TLI_GetDeviceListByTypes(SAFEARRAY** stringsReceiver, int * typeIDs, int length);