beautypg.com

Settriggerlength settriggermode, Settriggerlength, Settriggermode – Dataman 520 Series User Manual

Page 12

background image


Development kit for DATAMAN 520 series

Programmer’s Guide

typedef _export _stdcall int (*fSetTriggerCount) (int InputValue, int

LevelSelector);

TSetTriggerCount = function (InputValue: Integer; LevelSelector: Integer):

Integer; stdcall;

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

InputValue As Long, ByVal LevelSelector As Long) As Long

Parameters:

InputValue – Desired count of occurence. Valid range is <0, 32767>
LevelSelector – Specifies affected trigger system level. Valid values are

TRIGGER_LEVEL_PRIMARY or TRIGGER_LEVEL_SECONDARY

constants

.


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

SetTriggerLength

Sets desired minimal length of valid trigger event. For more information see the
DATAMAN 520 oscilloscope user’s guide, chapters about triggering system
filters.

Declaration:

typedef _export _stdcall int (*fSetTriggerLength)(int SamplesCount, int

LevelSelector);
TSetTriggerLength = function (SamplesCount: Integer; LevelSelector:
Integer): Integer; stdcall;

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

SamplesCount As Long, ByVal LevelSelector As Long) As Long

Parameters:

InputValue – Desired length of valid trigger event (samples count). Valid

values are 0, 8 and multiples of 4 from range <12, 131068>.

LevelSelector – Specifies which trigger system level is affected. Valid values

are TRIGGER_LEVEL_PRIMARY or TRIGGER_LEVEL_SECONDARY

constants

.


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

SetTriggerMode

Sets trigger mode.

Declaration:

- 12 -