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

Description

Functions for controlling the signal type.

The generator supports several standard signal types. Depending on the signal type that is set, other properties of the generator are available:

Signal typeAmplitudeOffsetFrequencyPhaseSymmetryData
Sine yes yes yes yes yes no
Triangle yes yes yes yes yes no
Square yes yes yes yes yes no
DC no yes no no no no
Noise yes yes yes no no no
Arbitrary yes yes yes yes no yes

By default signal type is set to: Sine (ST_SINE).

Functions

uint32_t GenGetSignalTypes (TpDeviceHandle_t hDevice)
 Get supported signal types. More...
 
uint32_t GenGetSignalType (TpDeviceHandle_t hDevice)
 Get signal type. More...
 
uint32_t GenSetSignalType (TpDeviceHandle_t hDevice, uint32_t dwSignalType)
 Set signal type. More...
 

Function Documentation

uint32_t GenGetSignalTypes ( TpDeviceHandle_t  hDevice)

Get supported signal types.

Parameters
hDeviceA device handle.
Returns
Supported signal types, a set of ST_* values.
Since
0.4.0
uint32_t GenGetSignalType ( TpDeviceHandle_t  hDevice)

Get signal type.

Parameters
hDeviceA device handle.
Returns
Signal type, a ST_* value.
Since
0.4.0
uint32_t GenSetSignalType ( TpDeviceHandle_t  hDevice,
uint32_t  dwSignalType 
)

Set signal type.

Parameters
hDeviceA device handle.
dwSignalTypeSignal type, a ST_* value.
Returns
Signal type, a ST_* value.
Remarks
When the generator is active, changing the signal type may shortly interrupt the output signal.
Changing the signal type can affect the frequency mode.
Setting certain signal types will make other generator properties unavailable.
Since
0.4.0