beautypg.com

Setdigitalshielding setshapeprediction, Setdigitalshielding, Setshapeprediction – Dataman 520 Series User Manual

Page 21

background image


Development kit for DATAMAN 520 series

Programmer’s Guide

WCD_VERY_HIGH_SENSITIVITY = 8
WCD_HIGH_SENSITIVITY = 12
WCD_MEDIUM_SENSITIVITY = 16
WCD_LOW_SENSITIVITY = 20


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

SetDigitalShielding

Enables digital shielding and sets its level on channel specified by
ChannelSelector.

Declaration:

typedef _export _stdcall int (*fSetDigitalShielding) (bool

DigitalShieldingActive, int DigitalShieldingLevel, int ChannelSelector);

TSetDigitalShielding = function (DigitalShieldingActive: Boolean;

DigitalShieldingLevel: Integer;ChannelSelector: Integer): Integer; stdcall;

Public Declare Function SetDigitalShielding Lib "VBDevKit52X.dll" (ByVal

DigitalShieldingActive As Boolean, ByVal DigitalShieldingLevel As Long, ByVal
ChannelSelector As Long) As Long

Parameters:

DigitalShieldingActiveTrue activates digital shielding, false deactivates it
DigitalShieldingLevel – Desired level of digital shielding <2..64>. We

recommend to set value 4 for most of measurements.
ChannelSelector – Valid values are

constants

CHANNEL_A or CHANNEL_B


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


Note:

The higher digital shielding level is entered, the slower oscilloscope reflects

signal change.

SetShapePrediction

Activates the shape prediction for sampling mode.

Declaration:

Typedef _export _stdcall int (*fSetShapePrediction) (bool ShapePrediction);
TSetShapePrediction = function (ShapePrediction: Boolean): Integer; stdcall;
Public Declare Function SetShapePrediction Lib "VBDevKit52X.dll" (ByVal

ShapePrediction As Boolean) As Long

- 21 -