beautypg.com

Invertprimarytriggersource, Invertsecondarytriggersource – Dataman 520 Series User Manual

Page 15

background image


Development kit for DATAMAN 520 series

Programmer’s Guide

typedef _export _stdcall int (*fSetSecondaryTriggerSource)(int InputMask);
TSetSecondaryTriggerSource = function (InputMask: Integer): Integer; stdcall;
Public Declare Function SetSecondaryTriggerSource Lib "VBDevKit52X.dll"

(ByVal InputMask As Long) As Long

Parameters:

InputMask – Combination of

constants

TRIGGER_CHANNEL_A,

TRIGGER_CHANNEL_B, TRIGGER_EXTERNAL (bitmask). If the given bit is
set the appropriate trigger source will be considered valid.

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:

Bitmask is sum of appropriate constants.

InvertPrimaryTriggerSource

Selects whether the rising or falling edge will be considered as a valid trigger event
on primary trigger level.

Declaration:


typedef _export _stdcall int (*fInvertPrimaryTriggerSource)(int InputMask);
TInvertPrimaryTriggerSource = function (InputMask: Integer): Integer;

stdcall;

Public Declare Function InvertPrimaryTriggerSource Lib "VBDevKit52X.dll"

(ByVal InputMask As Long) As Long

Parameters:

InputMask – Combination of

constants

TRIGGER_CHANNEL_A,

TRIGGER_CHANNEL_B, TRIGGER_EXTERNAL (bitmask). If the given bit is
set the appropriate trigger source will be considered valid.

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:

Bitmask is sum of appropriate constants.

InvertSecondaryTriggerSource

Selects whether the rising or falling edge will be considered as a valid trigger event
on secondary trigger level.

- 15 -