LibTiePie  0.4.4
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

 Time out
 This section contains trigger time out 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 1.0, see Trigger system page.

Function Documentation

uint64_t ScpGetTriggerSources ( TpDeviceHandle_t  hDevice)

Get supported trigger sources.

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

Get trigger sources OR.

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

Set trigger sources OR.

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

Get trigger sources AND.

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

Set trigger sources AND.

Deprecated:
Will be removed in LibTiePie 1.0, see Trigger system page.
Parameters
hDeviceA device handle.
qwTriggerSourceMaskTrigger sources, a set of OR-ed TS_CH* values.
Returns
Trigger sources, a set of OR-ed TS_CH* values.
Since
0.4.0
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 1.0, use: ScpChTrGetKinds() and/or DevTrInGetKinds().
Parameters
hDeviceA device handle.
qwTriggerSourceMaskA TS_CH* value or multiple OR-ed TS_CH* values.
Returns
Supported trigger kinds, a set of OR-ed TK_* values.
Since
0.4.0
uint64_t ScpGetTriggerKind ( TpDeviceHandle_t  hDevice,
uint64_t  qwTriggerSource 
)

Get trigger kind.

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

Set trigger kind.

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

Get trigger level.

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

Set trigger level.

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

Get trigger hysteresis.

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

Set trigger hysteresis.

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

Get supported channel trigger kinds.

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

Get channel trigger kind.

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

Set channel trigger kind.

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

Get channel trigger level.

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

Set channel trigger level.

Deprecated:
Will be removed in LibTiePie 1.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.
Since
0.4.0
double ScpChGetTriggerHysteresis ( TpDeviceHandle_t  hDevice,
uint16_t  wCh,
uint32_t  dwIndex 
)

Get channel trigger hysteresis.

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

Set channel trigger hysteresis.

Deprecated:
Will be removed in LibTiePie 1.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.
Since
0.4.0
double ScpChGetTriggerPulseTime ( TpDeviceHandle_t  hDevice,
uint16_t  wCh 
)

Get channel trigger pulse time.

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

Set channel trigger pulse time.

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