Setbeforetriggerdelay, Setprimarytriggersource, Setsecondarytriggersource – Dataman 520 Series User Manual
Page 14
Development kit for DATAMAN 520 series
Programmer’s Guide
SetBeforeTriggerDelay
Sets desired hold off.
Declaration:
typedef _export _stdcall int (*fSetBeforeTriggerDelay) (int SamplesCount);
TSetBeforeTriggerDelay = function (SamplesCount: Integer): Integer; stdcall;
Public Declare Function SetBeforeTriggerDelay Lib "VBDevKit52X.dll"
(ByVal SamplesCount As Long) As Long
Parameters:
SamplesCount – Desired hold off in samples. Valid range is <0, 131072>.
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
SetPrimaryTriggerSource
Primary level trigger source selection. You can activate more than one source at
simultaneously.
Declaration:
typedef _export _stdcall int (*fSetPrimaryTriggerSource)(int InputMask);
TSetPrimaryTriggerSource = function (InputMask: Integer): Integer; stdcall;
Public Declare Function SetPrimaryTriggerSource Lib "VBDevKit52X.dll"
(ByVal InputMask As Long) As Long
Parameters:
InputMask – Combination of
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.
SetSecondaryTriggerSource
Secondary level trigger source selection. You can activate more than one source at
simultaneously.
Declaration:
- 14 -