Enablewaveformconformitydetection – Dataman 520 Series User Manual
Page 20
Development kit for DATAMAN 520 series
Programmer’s Guide
TRIGGER_STATUS_NOT_READY - measurement is in progress
TRIGGER_STATUS_NOT_TRIGGER - measurement started, waiting for
trigger
SamplesCount – Amount of acquired samples
DataStatus – True indicates successful data acquisition
BufferLength – DataBuffer length (samples count), must be greater or equal to
device memory size
DataBuffer
– When measurement is finished, acquired data are placed in this
buffer. The size of this the buffer must be BufferLength 16 bit words. Data are
always located at the end of the buffer (location of trigger doesn’t move if same
number of after trigger samples is set). Figure 3.5.1. shows data alignment.
After trigger = 4096
Buffer:
Buffer:
Buffer:
SamplesCount = 4600
SamplesCount = 5200
SamplesCount = 4200
Figure 3.5.1. – Data alignment
Valid data are located from index (MemorySize – SamplesCount) to the end of the
buffer.
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
EnableWaveformConformityDetection
Activates / deactivates WCD technology.
Declaration:
typedef _export _stdcall int (*fEnableWaveformConformityDetection) (bool
EnableDetection, int DetectionSensitivity);
TEnableWaveformConformityDetection = function (EnableDetection:
Boolean; DetectionSensitivity: Integer): Integer; stdcall;
Public Declare Function EnableWaveformConformityDetection Lib
"VBDevKit52X.dll" (ByVal EnableDetection As Boolean, ByVal
DetectionSensitivity As Long) As Long
Parameters:
EnableDetection – True enables the WCD, false disables it.
DetectionSensitivity
– WCD sensitivity. Valid values are following
:
- 20 -