LibTiePie  0.5
Library for interfacing TiePie engineering instruments
 All Files Functions Typedefs Macros Modules Pages
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 (TpDeviceHandle_t hDevice)
 Get the number of trigger outputs. More...
 
uint16_t DevTrGetOutputIndexById (TpDeviceHandle_t hDevice, uint32_t dwId)
 Get the index of trigger output identified by its ID. More...
 

Function Documentation

uint16_t DevTrGetOutputCount ( TpDeviceHandle_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.
DEVICE_GONE The device indicated by the device 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 ( TpDeviceHandle_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.
DEVICE_GONE The device indicated by the device 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