beautypg.com

Setaftertriggersamplescount – Dataman 520 Series User Manual

Page 13

background image


Development kit for DATAMAN 520 series

Programmer’s Guide

typedef _export _stdcall int (*fSetTriggerMode) (int TriggerMode);

TSetTriggerMode = function (TriggerMode: Integer): Integer; stdcall;

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

TriggerMode As Long) As Long

Parameters:

TriggerMode – Valid values are following

constants

:

TRIGGER_MODE_NORMAL – Data acquisition starts on occurrence

of valid trigger event after the

Data

function call and

TRIGGER_MODE_AUTO – If valid trigger event does not occur, data

acquisition starts immediately, otherwise on the trigger event

TRIGGER_MODE_MANUAL – Data acquisition starts immediately

after the

Data

function call


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:

Other trigger system settings are ignored, if the

TRIGGER_MODE_MANUAL mode is set.

SetAfterTriggerSamplesCount

Sets desired samples count after trigger event.

Declaration:

typedef _export _stdcall int (*fSetAfterTriggerSamplesCount)(int

InputValue);

TSetAfterTriggerSamplesCount = function (InputValue: Integer): Integer;

stdcall;

Public Declare Function SetAfterTriggerSamplesCount Lib

"VBDevKit52X.dll" (ByVal InputValue As Long) As Long

Parameters:

InputValue – Desired samples count. Valid range is <0, 63457>


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:

Use actual sampling frequency to calculate after trigger acquisition length.

- 13 -