Inithardware, Error_ok – device was initialized successfully, Settimebase – Dataman 570 Series User Manual

Page 15: Setrange, Settimebase 3.3.2. setrange

Advertising
background image


Development kit for DATAMAN 570 series

Programmer’s Guide

3.2.2. InitHardware

Initializes device. After successful call of this function, the device can be used.

Public Declare Function InitHardware Lib "m570drvdk.dll" (ByRef CalibOK

As Byte) As Long

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_EM57X – unable to load em57x 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 m570drv.dll wasn’t loaded
before this call (use LoadDriver function to load it)

3.3. Functions, that set the data acquisition parameters

3.3.1. SetTimeBase

Sets selected timebase.

Public Declare Sub SetTimeBase Lib "m570drvdk.dll" (ByVal ns As Long)


Parameters:

ns – amount of nanoseconds per one division (50 samples)


Return value: -

Remark:
The list of available timebases can be obtained by GetTimeBaseList function.

3.3.2. SetRange

Sets selected range to the selected channel.

Public Declare Function SetRange Lib "m570drvdk.dll" (ByVal channel As

Long, ByVal mV As Long) As Long

Parameters:

channel – determines channel

CHANNEL_A – channel A

CHANNEL_B – channel B

- 15 -

Advertising