LibTiePie  0.9.16
Library for interfacing TiePie engineering instruments
Output(s)

Description

A device can have one or more device trigger outputs, usually available as pins on an extension connector on the instrument.

The trigger outputs are controlled by events that occur in the instrument.

Use the function DevTrGetOutputCount() to determine the amount of available device trigger outputs. To use a device trigger output, use the function DevTrOutSetEnabled() to enable it.

Modules

 Enabled
 The enabled state of a device trigger output determines whether an output is used.
 
 Event
 Select the event that controls the trigger output.
 
 Info
 Obtain information of a device trigger output.
 

Functions

uint16_t DevTrGetOutputCount (LibTiePieHandle_t hDevice)
 Get the number of trigger outputs. More...
 
uint16_t DevTrGetOutputIndexById (LibTiePieHandle_t hDevice, uint32_t dwId)
 Get the index of trigger output identified by its ID. More...
 

Function Documentation

uint16_t DevTrGetOutputCount ( LibTiePieHandle_t  hDevice)

Get the number of trigger outputs.

Parameters
[in]hDeviceA device handle identifying the device.
Returns
The number of trigger outputs.
Status values
NOT_SUPPORTED The device has no trigger outputs.
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.
Since
0.4.1
uint16_t DevTrGetOutputIndexById ( LibTiePieHandle_t  hDevice,
uint32_t  dwId 
)

Get the index of trigger output identified by its ID.

Parameters
[in]hDeviceA device handle identifying the device.
[in]dwIdThe trigger output ID, a TOID_* value, identifying the trigger output.
Returns
The trigger output index or LIBTIEPIE_TRIGGERIO_INDEX_INVALID.
Status values
NOT_SUPPORTED The device has no trigger outputs.
INVALID_VALUE The requested ID is invalid.
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
DevTrOutGetId()
Since
0.4.4