LibTiePie  0.4.4
Library for interfacing TiePie engineering instruments
 All Files Functions Typedefs Macros Groups Pages
Input(s)

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

Modules

 Enabled
 The enabled state of a device trigger input determines whether an input is selected as trigger source.
 
 Kind
 The device trigger kind determines how the device trigger responds to the device trigger input signal.
 
 Info
 Information of a device trigger input can be obtained.
 

Functions

uint16_t DevTrGetInputCount (TpDeviceHandle_t hDevice)
 Get number of trigger inputs.
 
uint16_t DevTrGetInputIndexById (TpDeviceHandle_t hDevice, uint32_t dwId)
 Get index of trigger input by it's ID.
 

Detailed Description

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

Use the function DevTrGetInputCount to determine the amount of available device trigger inputs. To use a device trigger input as trigger source, use the function DevTrInSetEnabled to enable it.

Function Documentation

uint16_t DevTrGetInputCount ( TpDeviceHandle_t  hDevice)

Get number of trigger inputs.

Parameters
hDeviceA device handle.
Returns
Number of trigger inputs.
Since
0.4.1
uint16_t DevTrGetInputIndexById ( TpDeviceHandle_t  hDevice,
uint32_t  dwId 
)

Get index of trigger input by it's ID.

Parameters
hDeviceA device handle.
dwIdTrigger input ID, a TIID_* value.
Returns
Trigger input index on success, or LIBTIEPIE_TRIGGERIO_INDEX_INVALID otherwise.
Since
0.4.4