beautypg.com

Usedevice, Settimebase, Setrange – Dataman 770 Series User Manual

Page 16: Settimebase 3.3.2. setrange

background image


Development kit for DATAMAN 770 series

Programmer’s Guide



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.5. UseDevice

Selects the device, which will be affected by calls of other functions (such as
SetTimeBase, SetRange ...). This function is used when several 770 oscilloscopes are
connected.

Public Shared Sub UseDevice(ByVal index As Integer)


Parameters:
index – indicates device index from the list (obtained by GetDeviceList function)

Return value: -

3.3. Functions, that set the data acquisition parameters

3.3.1. SetTimeBase

Sets selected timebase.

Public Shared Sub SetTimeBase(ByVal ns As Integer)


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 Shared Function SetRange(ByVal channel As Integer, ByVal mV As

Integer) As Integer

Parameters:
channel – determines channel

CHANNEL_A – channel A

- 16 -