Functions for controlling signal frequency, sample frequency and frequency mode.
The frequency mode can be affected by changing the signal type. When signal type DC is active, frequency is not available.
By default the frequency mode is set to signal frequency (FM_SIGNALFREQUENCY) and the frequency is set to 1 kHz.
void GenGetFrequencyMinMax |
( |
TpDeviceHandle_t |
hDevice, |
|
|
uint32_t |
dwFrequencyMode, |
|
|
double * |
pMin, |
|
|
double * |
pMax |
|
) |
| |
Get minimum and maximum signal/sample frequency by mode.
- Parameters
-
hDevice | A device handle. |
dwFrequencyMode | Generator frequency mode, a FM_* value. |
pMin | Pointer to memory location for minimum or NULL . |
pMax | Pointer to memory location for maximum or NULL . |
- Since
- 0.4.0
Get minimum signal/sample frequency.
- Parameters
-
- Returns
- Minimum signal/sample frequency.
- Since
- 0.4.0
Get maximum signal/sample frequency.
- Parameters
-
- Returns
- Minimum signal/sample frequency.
- Since
- 0.4.0
Get signal/sample frequency.
- Parameters
-
- Returns
- Signal/sample frequency.
- Since
- 0.4.0
Set signal/sample frequency.
- Parameters
-
- Returns
- Signal/sample frequency.
- Since
- 0.4.0
Get supported generator frequency modes.
- Parameters
-
- Returns
- Supported generator frequency modes, a set of OR-ed FM_* values.
- Since
- 0.4.1
Get generator frequency mode.
- Parameters
-
- Returns
- Generator frequency mode, a FM_* value.
- Since
- 0.4.1
uint32_t GenSetFrequencyMode |
( |
TpDeviceHandle_t |
hDevice, |
|
|
uint32_t |
dwFrequencyMode |
|
) |
| |
Set generator frequency mode.
- Parameters
-
- Returns
- Generator frequency mode, a FM_* value.
- Since
- 0.4.1