Trigger functions, Settrigger settriggercount, Settrigger – Dataman 520 Series User Manual
Page 11: Settriggercount
Development kit for DATAMAN 520 series
Programmer’s Guide
typedef _export _stdcall int (*fLoadDriver) (void);
TLoadDriver = function : Integer; stdcall;
Public Declare Function LoadDriver Lib "VBDevKit52X.dll" () As Long
Parameters:
None
Return Value:
ERROR_OK – Device driver loading succeeded
ERROR_DRIVER_NOT_LOADED – Device driver loading failed
ERROR_DRIVER_FUNCTIONS_MISSING – M52Xdrv.dll driver is not
compatible with the DK
3.2. Trigger functions
SetTrigger
Sets desired threshold voltage.
Declaration:
typedef _export _stdcall int (*fSetTrigger) (int ThresholdVoltage, int
ChannelSelector);
TSetTrigger = function (ThresholdVoltage: Integer; ChannelSelector: Integer):
Integer; stdcall;
Public Declare Function SetTrigger Lib "VBDevKit52X.dll" (ByVal
ThresholdVoltage As Long, ByVal ChannelSelector As Long) As Long
Parameters:
ThresholdVoltage – Desired threshold voltage for channel specified in
ChannelSelector. Valid values are in range <0, 255>.
ChannelSelector
CHANNEL_A or CHANNEL_B
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 the actual range setting and waveform vertical shift setting on specified
channel to calculate ThresholdVoltage.
SetTriggerCount
Sets desired count of valid trigger event occurence is set. For more information see
the DATAMAN 520 oscilloscope user’s guide, chapters about triggering system.
Declaration:
- 11 -