LibTiePie  0.7.4
Library for interfacing TiePie engineering instruments

Description

The device trigger kind determines how the device trigger responds to the device trigger input signal.

Use DevTrInGetKinds() to find out which trigger kinds are supported by the device trigger input. Read more on device trigger kind.

Default value: TK_RISINGEDGE if supported, else TK_FALLINGEDGE.

Functions

uint64_t DevTrInGetKinds (LibTiePieHandle_t hDevice, uint16_t wInput)
 Get the supported trigger kinds for a specified device trigger input. More...
 
uint64_t DevTrInGetKind (LibTiePieHandle_t hDevice, uint16_t wInput)
 Get the currently selected trigger kind for a specified device trigger input. More...
 
uint64_t DevTrInSetKind (LibTiePieHandle_t hDevice, uint16_t wInput, uint64_t qwKind)
 Set the required trigger kind for a specified device trigger input. More...
 

Function Documentation

uint64_t DevTrInGetKinds ( LibTiePieHandle_t  hDevice,
uint16_t  wInput 
)

Get the supported trigger kinds for a specified device trigger input.

Parameters
[in]hDeviceA device handle identifying the device.
[in]wInputThe trigger input index identifying the trigger input, 0 to DevTrInGetCount() - 1.
Returns
Supported trigger input kinds, a set of OR-ed TK_* values.
Status values
INVALID_INPUT The requested trigger input is invalid.
NOT_AVAILABLE With the current settings, the trigger input is not available.
NOT_SUPPORTED The device has no trigger inputs.
INVALID_HANDLE The handle to the device is invalid.
OBJECT_GONE The object indicated by the handle is no longer available.
LIBRARY_NOT_INITIALIZEDThe library is not initialized, see LibInit().
SUCCESS The function executed successfully.
See also
DevTrInGetKind
DevTrInSetKind
Since
0.4.1
uint64_t DevTrInGetKind ( LibTiePieHandle_t  hDevice,
uint16_t  wInput 
)

Get the currently selected trigger kind for a specified device trigger input.

Parameters
[in]hDeviceA device handle identifying the device.
[in]wInputThe trigger input index identifying the trigger input, 0 to DevTrInGetCount() - 1.
Returns
The current trigger kind, a TK_* value.
Status values
INVALID_INPUT The requested trigger input is invalid.
NOT_AVAILABLE With the current settings, the trigger input is not available.
NOT_SUPPORTED The device has no trigger inputs.
INVALID_HANDLE The handle to the device is invalid.
OBJECT_GONE The object indicated by the handle is no longer available.
LIBRARY_NOT_INITIALIZEDThe library is not initialized, see LibInit().
SUCCESS The function executed successfully.
See also
DevTrInGetKinds
DevTrInSetKind
Since
0.4.1
uint64_t DevTrInSetKind ( LibTiePieHandle_t  hDevice,
uint16_t  wInput,
uint64_t  qwKind 
)

Set the required trigger kind for a specified device trigger input.

Parameters
[in]hDeviceA device handle identifying the device.
[in]wInputThe trigger input index identifying the trigger input, 0 to DevTrInGetCount() - 1.
[in]qwKindThe required trigger kind, a TK_* value.
Returns
The actually set trigger kind, a TK_* value.
Status values
INVALID_INPUT The requested trigger input is invalid.
NOT_AVAILABLE With the current settings, the trigger input is not available.
INVALID_VALUE The requested trigger kind is invalid.
NOT_SUPPORTED The device has no trigger inputs.
INVALID_HANDLE The handle to the device is invalid.
OBJECT_GONE The object indicated by the handle is no longer available.
LIBRARY_NOT_INITIALIZEDThe library is not initialized, see LibInit().
SUCCESS The function executed successfully.
See also
DevTrInGetKinds
DevTrInGetKind
Since
0.4.1