Functions for controlling the amplitude and amplitude range.
More...
Functions for controlling the amplitude and amplitude range.
By default the amplitude is set to: 1 V and auto ranging is enabled (BOOL8_TRUE).
Get maximum signal amplitude.
- Parameters
-
- Returns
- Maximum signal amplitude.
- Since
- 0.4.0
Get minimum signal amplitude.
- Parameters
-
- Returns
- Minimum signal amplitude.
- Since
- 0.4.0
Get signal amplitude.
- Parameters
-
- Returns
- Signal amplitude.
- Since
- 0.4.0
Set signal amplitude.
- Parameters
-
- Returns
- Signal amplitude.
- Since
- 0.4.0
uint32_t GenGetAmplitudeRanges |
( |
TpDeviceHandle_t |
hDevice, |
|
|
double * |
pList, |
|
|
uint32_t |
dwLength |
|
) |
| |
Get supported 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 range.
- Parameters
-
- Returns
- Range.
- Since
- 0.4.1
Set 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