beautypg.com

Visual basic functions, Getdensities, Getdevicememorysize – Dataman 520 Series User Manual

Page 26

background image


Development kit for DATAMAN 520 series

Programmer’s Guide

3.7. Visual Basic functions

Since

DeviceContext

structure mapping and members accessing would be

problematic in Visual Basic following functions provide interface for those data
access. Structure is accessible after successful InitHardware call.

GetDensities

Returns supported voltage ranges.

Declaration:

Public Declare Function GetDensities Lib "VBDevKit52X.dll" (DensitiesField

As Long) As Long

Parameters:

DensitiesField – Voltage ranges supported by device will be filled into this
field.


Return Value:

None

Example:

Dim DensityField(12) As Long
RetVal = GetDensities(DensityField(0))

GetDeviceID

Returns ID of the connected device. This value identifies device model. Use the
DeviceIDConstsArray constants or following table to identify the device.

ID

Device model

1

DATAMAN

522

3

DATAMAN

524

5

DATAMAN

526


Declaration:

Public Declare Function GetDeviceID Lib "VBDevKit52X.dll" () As Long


Parameters:

None


Return Value:

DeviceID value, which can be converted to device type name.

GetDeviceMemorySize

Returns connected device memory size.

- 26 -