Other functions, Checkconnection, Compensationgenerator – Dataman 520 Series User Manual
Page 24: Getsdkversion
Development kit for DATAMAN 520 series
Programmer’s Guide
3.6. Other functions
CheckConnection
Checks the communication with device.
Declaration:
typedef _export _stdcall int (*fCheckConnection)(void);
TCheckConnection = function : Integer; stdcall;
Public Declare Function CheckConnection Lib "VBDevKit52X.dll" () As
Long
Parameter:
None
Return Value:
ERROR_OK – Function call successfuly completed
ERROR_USB_COMMUNICATION_FAILED
– USB communication failed
CompensationGenerator
Activates / deactivates the compensation generator.
Declaration:
typedef _export _stdcall int (*fCompensationGenerator)(bool InputValue);
TCompensationGenerator = function (InputValue: Boolean): Integer; stdcall;
Public Declare Function CompensationGenerator Lib "VBDevKit52X.dll"
(ByVal InputValue As Boolean) As Long
Parameters:
InputValue
- Boolean value
true – compensation generator active
false – compensation generator inactive
Return Value:
ERROR_OK – Function call successfuly completed
ERROR_DEVELOPMENT_KIT_NOT_ENABLED – DK can not be used with
connected device (DK was not purchased)
ERROR_USB_COMMUNICATION_FAILED
– USB communication failed
GetSDKVersion
Returns the Development kit version.
Declaration:
typedef _export _stdcall int (*fGetSDKVersion)(void *Version);
TGetSDKVersion = function (Version: Pointer):integer;stdcall;
- 24 -