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

The Time property determines how long a specific condition must last for the channel trigger to respond. More...

Functions

uint32_t ScpChTrGetTimeCount (TpDeviceHandle_t hDevice, uint16_t wCh)
 Get the number of trigger times for the current trigger kind and trigger condition.
 
double ScpChTrGetTime (TpDeviceHandle_t hDevice, uint16_t wCh, uint32_t dwIndex)
 Get the current trigger time value for a specified channel and trigger type.
 
double ScpChTrSetTime (TpDeviceHandle_t hDevice, uint16_t wCh, uint32_t dwIndex, double dTime)
 Set the required trigger time value for a specified channel and trigger type.
 

Detailed Description

The Time property determines how long a specific condition must last for the channel trigger to respond.

The number of time properties depends on the currently selected trigger kind and currently selected trigger condition. Use ScpChTrGetTimeCount to determine the number of trigger time properties for the currently set trigger kind and condition.

The trigger time is set as a value in seconds. By default time[0] is set to 1 ms.

Function Documentation

double ScpChTrGetTime ( TpDeviceHandle_t  hDevice,
uint16_t  wCh,
uint32_t  dwIndex 
)

Get the current trigger time value for a specified channel and trigger type.

Parameters
hDeviceA device handle.
wChChannel number, 0 to ScpGetChannelCount() - 1.
dwIndexTime index, 0 to ScpChTrGetTimeCount() - 1.
Returns
The currently set trigger time value, in seconds.
See Also
ScpChTrGetTimeCount
ScpChTrSetTime
uint32_t ScpChTrGetTimeCount ( TpDeviceHandle_t  hDevice,
uint16_t  wCh 
)

Get the number of trigger times for the current trigger kind and trigger condition.

Parameters
hDeviceA device handle.
wChChannel number, 0 to ScpGetChannelCount() - 1.
Returns
Number of available trigger times for the current trigger kind and condition.
See Also
ScpChTrGetCondition
ScpChTrGetTime
ScpChTrSetTime
double ScpChTrSetTime ( TpDeviceHandle_t  hDevice,
uint16_t  wCh,
uint32_t  dwIndex,
double  dTime 
)

Set the required trigger time value for a specified channel and trigger type.

Parameters
hDeviceA device handle.
wChChannel number, 0 to ScpGetChannelCount() - 1.
dwIndexTime index, 0 to ScpChTrGetTimeCount() - 1.
dTimeThe required trigger time value, in seconds.
Returns
The actually set trigger time value, in seconds.
See Also
ScpChTrGetTimeCount
ScpChTrGetTime