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

Some trigger kinds require an additional condition to indicate how the channel trigger must respond to the input signal. More...

Functions

uint32_t ScpChTrGetConditions (TpDeviceHandle_t hDevice, uint16_t wCh)
 Get the supported trigger conditions for a specified channel with the current trigger kind.
 
uint32_t ScpChTrGetCondition (TpDeviceHandle_t hDevice, uint16_t wCh)
 Get the current selected trigger condition for a specified channel.
 
uint32_t ScpChTrSetCondition (TpDeviceHandle_t hDevice, uint16_t wCh, uint32_t dwCondition)
 Set the trigger condition for a specified channel.
 

Detailed Description

Some trigger kinds require an additional condition to indicate how the channel trigger must respond to the input signal.

The available trigger conditions depend on the currently set trigger kind. Use ScpChTrGetConditions to determine the available trigger conditions for the currently selected trigger kind. Read more on trigger condition.

By default the trigger condition is set to: greater than (TC_GREATER).

Function Documentation

uint32_t ScpChTrGetCondition ( TpDeviceHandle_t  hDevice,
uint16_t  wCh 
)

Get the current selected trigger condition for a specified channel.

Parameters
hDeviceA device handle.
wChChannel number, 0 to ScpGetChannelCount() - 1.
Returns
The current trigger condition, a TC_* value.
See Also
ScpChTrGetConditions
ScpChTrSetCondition
uint32_t ScpChTrGetConditions ( TpDeviceHandle_t  hDevice,
uint16_t  wCh 
)

Get the supported trigger conditions for a specified channel with the current trigger kind.

Parameters
hDeviceA device handle.
wChChannel number, 0 to ScpGetChannelCount() - 1.
Returns
Supported trigger conditions for this channel and trigger kind, a set of OR-ed TC_* values.
See Also
ScpChGetTriggerKind
ScpChTrGetCondition
ScpChTrSetCondition
uint32_t ScpChTrSetCondition ( TpDeviceHandle_t  hDevice,
uint16_t  wCh,
uint32_t  dwCondition 
)

Set the trigger condition for a specified channel.

Parameters
hDeviceA device handle.
wChChannel number, 0 to ScpGetChannelCount() - 1.
dwConditionThe required trigger condition, a TC_* value.
Returns
The actually set trigger condition, a TC_* value.
See Also
ScpChTrGetConditions
ScpChTrGetCondition