LibTiePie  0.4.5
Library for interfacing TiePie engineering instruments
 All Files Functions Typedefs Macros Modules Pages

Description

Obtain information of a device trigger output.

The following information of a device trigger output is available:

Functions

uint32_t DevTrOutGetId (TpDeviceHandle_t hDevice, uint16_t wOutput)
 Get the id of a specified device trigger output. More...
 
uint32_t DevTrOutGetName (TpDeviceHandle_t hDevice, uint16_t wOutput, char *pBuffer, uint32_t dwBufferLength)
 Get the name of a specified device trigger output. More...
 

Function Documentation

uint32_t DevTrOutGetId ( TpDeviceHandle_t  hDevice,
uint16_t  wOutput 
)

Get the id of a specified device trigger output.

Parameters
hDeviceA device handle identifying the device.
wOutputThe trigger output index identifying the trigger output, 0 to DevTrOutGetCount() - 1.
Returns
The trigger output id, a TOID_* value.
Status values
INVALID_OUTPUTThe requested trigger output is not valid.
NOT_SUPPORTED The device has no trigger outputs.
INVALID_HANDLEThe handle to the device is invalid.
DEVICE_GONE The device indicated by the device handle is no longer available.
SUCCESS The function executed successfully.
See also
DevTrGetOutputIndexById()
Since
0.4.4
uint32_t DevTrOutGetName ( TpDeviceHandle_t  hDevice,
uint16_t  wOutput,
char *  pBuffer,
uint32_t  dwBufferLength 
)

Get the name of a specified device trigger output.

Parameters
hDeviceA device handle identifying the device.
wOutputThe trigger output index identifying the trigger output, 0 to DevTrOutGetCount() - 1.
pBufferA pointer to a buffer for the name.
dwBufferLengthThe length of the buffer, in bytes.
Returns
The length of the name in bytes, excluding terminating zero.
Status values
INVALID_OUTPUTThe requested trigger output is not valid.
NOT_SUPPORTED The device has no trigger outputs.
INVALID_HANDLEThe handle to the device is invalid.
DEVICE_GONE The device indicated by the device handle is no longer available.
SUCCESS The function executed successfully.
Since
0.4.1