LibTiePie  0.4.2
Library for interfacing TiePie engineering instruments
 All Files Functions Typedefs Groups Pages
Kind

The channel trigger kind property is used to control how the channel trigger responds to the channel input signal. More...

Functions

uint64_t ScpChTrGetKinds (TpDeviceHandle_t hDevice, uint16_t wCh)
 Get the supported channel trigger kinds for a specified channel with the current measure mode.
 
uint64_t ScpChTrGetKind (TpDeviceHandle_t hDevice, uint16_t wCh)
 Get the currently selected channel trigger kind for a specified channel.
 
uint64_t ScpChTrSetKind (TpDeviceHandle_t hDevice, uint16_t wCh, uint64_t qwTriggerKind)
 Set the channel trigger kind for a specified channel.
 

Detailed Description

The channel trigger kind property is used to control how the channel trigger responds to the channel input signal.

Use ScpChTrGetKinds to find out which trigger kinds are supported by the channel. Depending on the selected trigger kind, other properties like e.g. level(s) and hysteresis are available to configure the channel trigger. Read more on trigger kind.

By default kind is set to rising edge (TK_RISING).

Function Documentation

uint64_t ScpChTrGetKind ( TpDeviceHandle_t  hDevice,
uint16_t  wCh 
)

Get the currently selected channel trigger kind for a specified channel.

Parameters
hDeviceA device handle.
wChChannel number, 0 to ScpGetChannelCount() - 1.
Returns
The current channel trigger kind, a TK_* value.
See Also
ScpChTrGetKinds
ScpChTrSetKind
uint64_t ScpChTrGetKinds ( TpDeviceHandle_t  hDevice,
uint16_t  wCh 
)

Get the supported channel trigger kinds for a specified channel with the current measure mode.

Parameters
hDeviceA device handle.
wChChannel number, 0 to ScpGetChannelCount() - 1.
Returns
Supported trigger kinds, a set of OR-ed TK_* values or TKM_NONE if the channel has no trigger support.
See Also
ScpChTrGetKind
ScpChTrSetKind
uint64_t ScpChTrSetKind ( TpDeviceHandle_t  hDevice,
uint16_t  wCh,
uint64_t  qwTriggerKind 
)

Set the channel trigger kind for a specified channel.

Parameters
hDeviceA device handle.
wChChannel number, 0 to ScpGetChannelCount() - 1.
qwTriggerKindTrigger kind: a TK_* value.
Returns
The actually set channel trigger kind, a TK_* value.
See Also
ScpChTrGetKinds
ScpChTrGetKind