Functions to control the oscilloscope resolution.
The resolution determines how accurate the amplitude of a signal can be measured. The higher the resolution, the more accurate the input signal can be reconstructed.
Devices can support multiple resolutions, use ScpGetResolutions() to determine the available resolutions for a device.
Besides native hardware resolutions, also enhanced resolutions can be available for a device. Use ScpIsResolutionEnhanced() to determine whether the current resolution is a native hardware resolution or an enhanced resolution.
The resolution can be set manually, but can also be set automatically, when auto resolution mode is enabled.
uint32_t ScpGetResolutions |
( |
LibTiePieHandle_t |
hDevice, |
|
|
uint8_t * |
pList, |
|
|
uint32_t |
dwLength |
|
) |
| |
Get an array with the supported resolutions of the specified oscilloscope.
The caller must assure that the array is available and that enough memory is allocated.
- Parameters
-
[in] | hDevice | A device handle identifying the oscilloscope. |
[out] | pList | A pointer to an array to contain the supported resolutions, or NULL . |
[in] | dwLength | The number of elements in the array. |
- Returns
- Total number of supported resolutions, or
0
when unsuccessful.
- Status values
-
- Example
uint8_t* pResolutions = malloc( sizeof( uint8_t ) * byResolutionCount );
printf( "ScpGetResolutions:\n" );
for( i = 0 ; i < byResolutionCount ; i++ )
printf( "- %u bits\n" , pResolutions[ i ] );
free( pResolutions );
- See also
- ScpGetResolution
-
ScpSetResolution
- Since
- 0.4.0
Get the current resolution of the specified oscilloscope.
- Parameters
-
- Returns
- The current resolution in bits, or
0
when unsuccessful.
- Status values
-
- See also
- ScpGetResolutions
-
ScpSetResolution
- Since
- 0.4.0
Set the resolution of the specified oscilloscope.
- Parameters
-
[in] | hDevice | A device handle identifying the oscilloscope. |
[in] | byResolution | The required resolution in bits. |
- Returns
- The actually set resolution in bits, or
0
when unsuccessful.
- Status values
-
- See also
- ScpGetResolutions
-
ScpGetResolution
- Since
- 0.4.0
Check whether the currently selected resolution is enhanced or a native resolution of the hardware.
- Parameters
-
- Returns
- BOOL8_TRUE if the current resolution is enhanced, BOOL8_FALSE otherwise.
- Status values
-
- Since
- 0.4.0