LibTiePie  0.4.3
Library for interfacing TiePie engineering instruments
 All Files Functions Typedefs Macros Groups Pages
Trigger system

This section contains (mostly deprecated!) trigger related functions. More...

Modules

 Timeout
 This section contains trigger timeout related functions.
 
 Delay
 This section contains trigger delay related functions.
 

Functions

uint64_t ScpGetTriggerSources (TpDeviceHandle_t hDevice)
 Get supported trigger sources.
 
uint64_t ScpGetTriggerSourceOR (TpDeviceHandle_t hDevice)
 Get trigger sources OR.
 
uint64_t ScpSetTriggerSourceOR (TpDeviceHandle_t hDevice, uint64_t qwTriggerSourceMask)
 Set trigger sources OR.
 
uint64_t ScpGetTriggerSourceAND (TpDeviceHandle_t hDevice)
 Get trigger sources AND.
 
uint64_t ScpSetTriggerSourceAND (TpDeviceHandle_t hDevice, uint64_t qwTriggerSourceMask)
 Set trigger sources AND.
 
uint64_t ScpGetTriggerKinds (TpDeviceHandle_t hDevice, uint64_t qwTriggerSourceMask)
 Get supported trigger kinds by source(s).
 
uint64_t ScpGetTriggerKind (TpDeviceHandle_t hDevice, uint64_t qwTriggerSource)
 Get trigger kind.
 
uint64_t ScpSetTriggerKind (TpDeviceHandle_t hDevice, uint64_t qwTriggerSource, uint64_t qwTriggerKind)
 Set trigger kind.
 
double ScpGetTriggerLevel (TpDeviceHandle_t hDevice, uint64_t qwTriggerSource, uint32_t dwIndex)
 Get trigger level.
 
double ScpSetTriggerLevel (TpDeviceHandle_t hDevice, uint64_t qwTriggerSource, uint32_t dwIndex, double dLevel)
 Set trigger level.
 
double ScpGetTriggerHysteresis (TpDeviceHandle_t hDevice, uint64_t qwTriggerSource, uint32_t dwIndex)
 Get trigger hysteresis.
 
double ScpSetTriggerHysteresis (TpDeviceHandle_t hDevice, uint64_t qwTriggerSource, uint32_t dwIndex, double dHysteresis)
 Set trigger hysteresis.
 
uint64_t ScpChGetTriggerKinds (TpDeviceHandle_t hDevice, uint16_t wCh)
 Get supported channel trigger kinds.
 
uint64_t ScpChGetTriggerKind (TpDeviceHandle_t hDevice, uint16_t wCh)
 Get channel trigger kind.
 
uint64_t ScpChSetTriggerKind (TpDeviceHandle_t hDevice, uint16_t wCh, uint64_t qwTriggerKind)
 Set channel trigger kind.
 
double ScpChGetTriggerLevel (TpDeviceHandle_t hDevice, uint16_t wCh, uint32_t dwIndex)
 Get channel trigger level.
 
double ScpChSetTriggerLevel (TpDeviceHandle_t hDevice, uint16_t wCh, uint32_t dwIndex, double dLevel)
 Set channel trigger level.
 
double ScpChGetTriggerHysteresis (TpDeviceHandle_t hDevice, uint16_t wCh, uint32_t dwIndex)
 Get channel trigger hysteresis.
 
double ScpChSetTriggerHysteresis (TpDeviceHandle_t hDevice, uint16_t wCh, uint32_t dwIndex, double dHysteresis)
 Set channel trigger hysteresis.
 
double ScpChGetTriggerPulseTime (TpDeviceHandle_t hDevice, uint16_t wCh)
 Get channel trigger pulse time.
 
double ScpChSetTriggerPulseTime (TpDeviceHandle_t hDevice, uint16_t wCh, double dPulseTime)
 Set channel trigger pulse time.
 

Detailed Description

This section contains (mostly deprecated!) trigger related functions.

Most functions in this section are deprecated and will be removed in LibTiePie 0.5.0, see Trigger system page.

Function Documentation

uint64_t ScpGetTriggerSources ( TpDeviceHandle_t  hDevice)

Get supported trigger sources.

Deprecated:
Will be removed in LibTiePie 0.5.0, see Trigger system page.
Parameters
hDeviceA device handle.
Returns
Supported trigger sources, a set of OR-ed TS_* values.
uint64_t ScpGetTriggerSourceOR ( TpDeviceHandle_t  hDevice)

Get trigger sources OR.

Deprecated:
Will be removed in LibTiePie 0.5.0, see Trigger system page.
Parameters
hDeviceA device handle.
Returns
Trigger sources, a set of OR-ed TS_* values.
uint64_t ScpSetTriggerSourceOR ( TpDeviceHandle_t  hDevice,
uint64_t  qwTriggerSourceMask 
)

Set trigger sources OR.

Deprecated:
Will be removed in LibTiePie 0.5.0, see Trigger system page.
Parameters
hDeviceA device handle.
qwTriggerSourceMaskTrigger sources, a set of OR-ed TS_* values.
Returns
Trigger sources, a set of OR-ed TS_* values.
uint64_t ScpGetTriggerSourceAND ( TpDeviceHandle_t  hDevice)

Get trigger sources AND.

Deprecated:
Will be removed in LibTiePie 0.5.0, see Trigger system page.
Parameters
hDeviceA device handle.
Returns
Trigger sources, a set of OR-ed TS_* values.
uint64_t ScpSetTriggerSourceAND ( TpDeviceHandle_t  hDevice,
uint64_t  qwTriggerSourceMask 
)

Set trigger sources AND.

Deprecated:
Will be removed in LibTiePie 0.5.0, see Trigger system page.
Parameters
hDeviceA device handle.
qwTriggerSourceMaskTrigger sources, a set of OR-ed TS_* values.
Returns
Trigger sources, a set of OR-ed TS_* values.
uint64_t ScpGetTriggerKinds ( TpDeviceHandle_t  hDevice,
uint64_t  qwTriggerSourceMask 
)

Get supported trigger kinds by source(s).

When getting supported trigger kinds of multiple sources the result is a set of OR-ed TK_* values which are supported by all sources.

Deprecated:
Will be removed in LibTiePie 0.5.0, use: ScpChTrGetKinds() and/or DevTrInGetKinds().
Parameters
hDeviceA device handle.
qwTriggerSourceMaskA TS_* value or multiple OR-ed TS_* values.
Returns
Supported trigger kinds, a set of OR-ed TK_* values.
uint64_t ScpGetTriggerKind ( TpDeviceHandle_t  hDevice,
uint64_t  qwTriggerSource 
)

Get trigger kind.

Deprecated:
Will be removed in LibTiePie 0.5.0, use: ScpChTrGetKind() and/or DevTrInGetKind().
Parameters
hDeviceA device handle.
qwTriggerSourceA TS_* value.
Returns
A TK_* value.
uint64_t ScpSetTriggerKind ( TpDeviceHandle_t  hDevice,
uint64_t  qwTriggerSource,
uint64_t  qwTriggerKind 
)

Set trigger kind.

Deprecated:
Will be removed in LibTiePie 0.5.0, use: ScpChTrSetKind() and/or DevTrInSetKind().
Parameters
hDeviceA device handle.
qwTriggerSourceA TS_* value.
qwTriggerKindTrigger kind: a TK_* value.
Returns
A TK_* value.
double ScpGetTriggerLevel ( TpDeviceHandle_t  hDevice,
uint64_t  qwTriggerSource,
uint32_t  dwIndex 
)

Get trigger level.

Deprecated:
Will be removed in LibTiePie 0.5.0, use: ScpChTrGetLevel().
Parameters
hDeviceA device handle.
qwTriggerSourceA TS_* value.
dwIndexTrigger level index.
Returns
Trigger level, 0 to 1.
double ScpSetTriggerLevel ( TpDeviceHandle_t  hDevice,
uint64_t  qwTriggerSource,
uint32_t  dwIndex,
double  dLevel 
)

Set trigger level.

Deprecated:
Will be removed in LibTiePie 0.5.0, use: ScpChTrSetLevel().
Parameters
hDeviceA device handle.
qwTriggerSourceA TS_* value.
dwIndexTrigger level index.
dLevelTrigger level, 0 to 1.
Returns
Trigger level, 0 to 1.
double ScpGetTriggerHysteresis ( TpDeviceHandle_t  hDevice,
uint64_t  qwTriggerSource,
uint32_t  dwIndex 
)

Get trigger hysteresis.

Deprecated:
Will be removed in LibTiePie 0.5.0, use: ScpChTrGetHysteresis().
Parameters
hDeviceA device handle.
qwTriggerSourceA TS_* value.
dwIndexTrigger hysteresis index.
Returns
Trigger hysteresis, 0 to 1.
double ScpSetTriggerHysteresis ( TpDeviceHandle_t  hDevice,
uint64_t  qwTriggerSource,
uint32_t  dwIndex,
double  dHysteresis 
)

Set trigger hysteresis.

Deprecated:
Will be removed in LibTiePie 0.5.0, use: ScpChTrSetHysteresis().
Parameters
hDeviceA device handle.
qwTriggerSourceA TS_* value.
dwIndexTrigger hysteresis index.
dHysteresisTrigger hysteresis, 0 to 1.
Returns
Trigger hysteresis, 0 to 1.
uint64_t ScpChGetTriggerKinds ( TpDeviceHandle_t  hDevice,
uint16_t  wCh 
)

Get supported channel trigger kinds.

Deprecated:
Will be removed in LibTiePie 0.5.0, use: ScpChTrGetKinds().
Parameters
hDeviceA device handle.
wChChannel number, 0 to ScpGetChannelCount() - 1.
Returns
Supported trigger kinds, a set of OR-ed TK_* values.
uint64_t ScpChGetTriggerKind ( TpDeviceHandle_t  hDevice,
uint16_t  wCh 
)

Get channel trigger kind.

Deprecated:
Will be removed in LibTiePie 0.5.0, use: ScpChTrGetKind().
Parameters
hDeviceA device handle.
wChChannel number, 0 to ScpGetChannelCount() - 1.
Returns
A TK_* value.
uint64_t ScpChSetTriggerKind ( TpDeviceHandle_t  hDevice,
uint16_t  wCh,
uint64_t  qwTriggerKind 
)

Set channel trigger kind.

Deprecated:
Will be removed in LibTiePie 0.5.0, use: ScpChTrSetKind().
Parameters
hDeviceA device handle.
wChChannel number, 0 to ScpGetChannelCount() - 1.
qwTriggerKindTrigger kind: a TK_* value.
Returns
A TK_* value.
double ScpChGetTriggerLevel ( TpDeviceHandle_t  hDevice,
uint16_t  wCh,
uint32_t  dwIndex 
)

Get channel trigger level.

Deprecated:
Will be removed in LibTiePie 0.5.0, use: ScpChTrGetLevel().
Parameters
hDeviceA device handle.
wChChannel number, 0 to ScpGetChannelCount() - 1.
dwIndexTrigger hysteresis index.
Returns
Trigger level, 0 to 1.
double ScpChSetTriggerLevel ( TpDeviceHandle_t  hDevice,
uint16_t  wCh,
uint32_t  dwIndex,
double  dLevel 
)

Set channel trigger level.

Deprecated:
Will be removed in LibTiePie 0.5.0, use: ScpChTrSetLevel().
Parameters
hDeviceA device handle.
wChChannel number, 0 to ScpGetChannelCount() - 1.
dwIndexTrigger hysteresis index.
dLevelTrigger level, 0 to 1.
Returns
Trigger level, 0 to 1.
double ScpChGetTriggerHysteresis ( TpDeviceHandle_t  hDevice,
uint16_t  wCh,
uint32_t  dwIndex 
)

Get channel trigger hysteresis.

Deprecated:
Will be removed in LibTiePie 0.5.0, use: ScpChTrGetHysteresis().
Parameters
hDeviceA device handle.
wChChannel number, 0 to ScpGetChannelCount() - 1.
dwIndexTrigger hysteresis index.
Returns
Trigger hysteresis, 0 to 1.
double ScpChSetTriggerHysteresis ( TpDeviceHandle_t  hDevice,
uint16_t  wCh,
uint32_t  dwIndex,
double  dHysteresis 
)

Set channel trigger hysteresis.

Deprecated:
Will be removed in LibTiePie 0.5.0, use: ScpChTrSetHysteresis().
Parameters
hDeviceA device handle.
wChChannel number, 0 to ScpGetChannelCount() - 1.
dwIndexTrigger hysteresis index.
dHysteresisTrigger hysteresis, 0 to 1.
Returns
Trigger hysteresis, 0 to 1.
double ScpChGetTriggerPulseTime ( TpDeviceHandle_t  hDevice,
uint16_t  wCh 
)

Get channel trigger pulse time.

Deprecated:
Will be removed in LibTiePie 0.5.0, use: ScpChTrGetTime().
Parameters
hDeviceA device handle.
wChChannel number, 0 to ScpGetChannelCount() - 1.
Returns
Trigger pulse time in seconds.
double ScpChSetTriggerPulseTime ( TpDeviceHandle_t  hDevice,
uint16_t  wCh,
double  dPulseTime 
)

Set channel trigger pulse time.

Deprecated:
Will be removed in LibTiePie 0.5.0, use: ScpChTrSetTime().
Parameters
hDeviceA device handle.
wChChannel number, 0 to ScpGetChannelCount() - 1.
dPulseTimeTrigger pulse time in seconds.
Returns
Trigger pulse time in seconds.