LibTiePie  0.4.5
Library for interfacing TiePie engineering instruments
 All Files Functions Typedefs Macros Modules Pages

Description

The enabled state of a channel trigger determines whether a channel is selected as trigger source.

Channel triggers of multiple channels can be enabled, in that case they will be OR'ed.

By default channel 1 is enabled, all other channels are disabled.

Functions

bool8_t ScpChTrGetEnabled (TpDeviceHandle_t hDevice, uint16_t wCh)
 Check whether channel trigger for a specified channel is enabled. More...
 
bool8_t ScpChTrSetEnabled (TpDeviceHandle_t hDevice, uint16_t wCh, bool8_t bEnable)
 To select a channel as trigger source, set channel trigger enable. More...
 

Function Documentation

bool8_t ScpChTrGetEnabled ( TpDeviceHandle_t  hDevice,
uint16_t  wCh 
)

Check whether channel trigger for a specified channel is enabled.

Parameters
hDeviceA device handle identifying the oscilloscope.
wChThe channel number identifying the channel, 0 to ScpGetChannelCount() - 1.
Returns
BOOL8_TRUE if enabled, BOOL8_FALSE otherwise.
Status values
NOT_SUPPORTED The indicated channel does not support trigger with the current settings.
INVALID_CHANNELThe requested channel number is not valid.
INVALID_HANDLE The handle is not a valid oscilloscope handle.
DEVICE_GONE The device indicated by the device handle is no longer available.
SUCCESS The function executed successfully.
See also
ScpChTrSetEnabled
Since
0.4.2
bool8_t ScpChTrSetEnabled ( TpDeviceHandle_t  hDevice,
uint16_t  wCh,
bool8_t  bEnable 
)

To select a channel as trigger source, set channel trigger enable.

Parameters
hDeviceA device handle identifying the oscilloscope.
wChThe channel number identifying the channel, 0 to ScpGetChannelCount() - 1.
bEnableBOOL8_TRUE or BOOL8_FALSE.
Returns
BOOL8_TRUE if enabled, BOOL8_FALSE otherwise.
Status values
NOT_SUPPORTED The indicated channel does not support trigger with the current settings.
INVALID_CHANNELThe requested channel number is not valid.
INVALID_HANDLE The handle is not a valid oscilloscope handle.
DEVICE_GONE The device indicated by the device handle is no longer available.
SUCCESS The function executed successfully.
See also
ScpChTrGetEnabled
Since
0.4.2