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

Functions

void GenGetFrequencyMinMax (TpDeviceHandle_t hDevice, uint32_t dwFrequencyMode, double *pMin, double *pMax)
 Get minimum and maximum signal/sample frequency by mode.
 
double GenGetFrequencyMin (TpDeviceHandle_t hDevice)
 Get minimum signal/sample frequency.
 
double GenGetFrequencyMax (TpDeviceHandle_t hDevice)
 Get maximum signal/sample frequency.
 
double GenGetFrequency (TpDeviceHandle_t hDevice)
 Get signal/sample frequency.
 
double GenSetFrequency (TpDeviceHandle_t hDevice, double dFrequency)
 Set signal/sample frequency.
 
uint32_t GenGetFrequencyModes (TpDeviceHandle_t hDevice)
 Get supported generator frequency modes.
 
uint32_t GenGetFrequencyMode (TpDeviceHandle_t hDevice)
 Get generator frequency mode.
 
uint32_t GenSetFrequencyMode (TpDeviceHandle_t hDevice, uint32_t dwFrequencyMode)
 Set generator frequency mode.
 

Detailed Description

By default the frequency mode is set to signal frequency (FM_SIGNALFREQUENCY) and the frequency is set to 1 kHz.

Function Documentation

double GenGetFrequency ( TpDeviceHandle_t  hDevice)

Get signal/sample frequency.

Parameters
hDeviceA device handle.
Returns
Signal/sample frequency.
double GenGetFrequencyMax ( TpDeviceHandle_t  hDevice)

Get maximum signal/sample frequency.

Parameters
hDeviceA device handle.
Returns
Minimum signal/sample frequency.
double GenGetFrequencyMin ( TpDeviceHandle_t  hDevice)

Get minimum signal/sample frequency.

Parameters
hDeviceA device handle.
Returns
Minimum signal/sample frequency.
void GenGetFrequencyMinMax ( TpDeviceHandle_t  hDevice,
uint32_t  dwFrequencyMode,
double *  pMin,
double *  pMax 
)

Get minimum and maximum signal/sample frequency by mode.

Parameters
hDeviceA device handle.
dwFrequencyModeGenerator frequency mode, a FM_* value.
pMin
pMax
uint32_t GenGetFrequencyMode ( TpDeviceHandle_t  hDevice)

Get generator frequency mode.

Parameters
hDeviceA device handle.
Returns
Generator frequency mode, a FM_* value.
uint32_t GenGetFrequencyModes ( TpDeviceHandle_t  hDevice)

Get supported generator frequency modes.

Parameters
hDeviceA device handle.
Returns
Supported generator frequency modes, a set of OR-ed FM_* values.
double GenSetFrequency ( TpDeviceHandle_t  hDevice,
double  dFrequency 
)

Set signal/sample frequency.

Parameters
hDeviceA device handle.
dFrequencySignal/sample frequency.
Returns
Signal/sample frequency.
uint32_t GenSetFrequencyMode ( TpDeviceHandle_t  hDevice,
uint32_t  dwFrequencyMode 
)

Set generator frequency mode.

Parameters
hDeviceA device handle.
dwFrequencyModeGenerator frequency mode, a FM_* value.
Returns
Generator frequency mode, a FM_* value.