Inithardware, Getdevicelist, Inithardwarefromlist – Dataman 770 Series User Manual
Page 15

Development kit for DATAMAN 770 series
Programmer’s Guide
The return value is stored in the internal DK variable as well. Use GetDKError
function to access this internal variable.
3.2.2. InitHardware
Initializes device. After successful call of this function, the device can be used.
function InitHardware(var CalibOK:byte):integer;stdcall;external
'm770drvdk.dll';
Parameters:
CalibOK – this variable will be filled with information whether the calibration data in
the device is ok
1 – calibration data are ok
0 – calibration data in the device are broken
Return value:
ERROR_OK – device was initialized successfully
ERROR_UNABLE_TO_LOAD_EM77X – unable to load em77x driver
ERROR_INIT_FAILED – device initialization failed (one of the reason can be,
that the device isn’t connected)
ERROR_FPGA_CONFIG_FAILED – FPGA initialization failed
ERROR_DK_NOT_ENABLED – the DK isn’t enabled in the connected device
ERROR_DRIVER_NOT_LOADED – the driver m770drv.dll wasn’t loaded
before this call (use LoadDriver function to load it)
3.2.3. GetDeviceList
Obtains the list of the connected devices. This function is used when several 770
oscilloscopes are connected.
procedure GetDeviceList(var DevList:cardinal);stdcall;external
'm770drvdk.dll';
Parameters:
DevList – array with length of 16, which is filled with the serial numbers of the found
devices
Return value: -
3.2.4. InitHardwareFromList
Initializes selected device. This function is used when several 770 oscilloscopes are
connected. After successful call, the active device can be selected by UseDevice
function.
function InitHardwareFromList(index:integer;var
CalibOK:byte):integer;stdcall;external 'm770drvdk.dll';
Parameters:
- 15 -