Functions for controlling the amplitude and amplitude range.
When signal type DC is active, amplitude is not available.
By default the amplitude is set to: 1 V and auto ranging is enabled (BOOL8_TRUE).
Get the maximum signal amplitude.
- Parameters
-
- Returns
- Maximum signal amplitude.
- Since
- 0.4.0
Get the minimum signal amplitude.
- Parameters
-
- Returns
- Minimum signal amplitude.
- Since
- 0.4.0
Get the signal amplitude.
- Parameters
-
- Returns
- Signal amplitude.
- Since
- 0.4.0
Set the signal amplitude.
- Parameters
-
- Returns
- Signal amplitude.
- Since
- 0.4.0
uint32_t GenGetAmplitudeRanges |
( |
TpDeviceHandle_t |
hDevice, |
|
|
double * |
pList, |
|
|
uint32_t |
dwLength |
|
) |
| |
Get the supported amplitude ranges.
- Parameters
-
hDevice | A device handle. |
pList | Pointer to array. |
dwLength | Number of elements in array. |
- Returns
- Total number of ranges.
- Example
double* pRanges = malloc( sizeof( double ) * dwRangeCount );
printf( "GenGetAmplitudeRanges:\n" );
for( i = 0 ; i < dwRangeCount ; i++ )
printf( "- %f\n" , pRanges[ i ] );
free( pRanges );
- Since
- 0.4.1
Get the amplitude range.
- Parameters
-
- Returns
- Range.
- Since
- 0.4.1
Set the amplitude range.
- Parameters
-
hDevice | A device handle. |
dRange | Maximum value that must fit within range. |
- Returns
- Range.
- Example
double dRange = 10;
printf( "GenSetAmplitudeRange = %f" , dRange );
- Since
- 0.4.1