Functions to control the input range of an oscilloscope channel.
More...
|
TIEPIE_HW_API tiepie_hw_bool | tiepie_hw_oscilloscope_channel_get_auto_ranging (tiepie_hw_handle handle, uint16_t ch) |
| Check whether auto ranging is enabled for a specified channel.
|
|
TIEPIE_HW_API tiepie_hw_bool | tiepie_hw_oscilloscope_channel_set_auto_ranging (tiepie_hw_handle handle, uint16_t ch, tiepie_hw_bool value) |
| Set auto ranging for a specified channel.
|
|
TIEPIE_HW_API uint32_t | tiepie_hw_oscilloscope_channel_get_ranges (tiepie_hw_handle handle, uint16_t ch, double *list, uint32_t length) |
| Get the supported input ranges for a specified channel, with the currently selected coupling.
|
|
TIEPIE_HW_API double | tiepie_hw_oscilloscope_channel_get_range (tiepie_hw_handle handle, uint16_t ch) |
| Get the currently selected input range for a specified channel.
|
|
TIEPIE_HW_API double | tiepie_hw_oscilloscope_channel_set_range (tiepie_hw_handle handle, uint16_t ch, double range) |
| Set the input range for a specified channel.
|
|
Functions to control the input range of an oscilloscope channel.
An oscilloscope channel will have one or more different input ranges. The number of input ranges and which ranges are available depends on the selected input coupling. Use tiepie_hw_oscilloscope_channel_get_ranges() to determine how many and which ranges are available. Changing the input couping may change the selected input range.
An input channel supports auto ranging, where a suitable input range is selected based on the measured data of the last performed measurement with the channel. Manually setting a range will disable auto ranging.
When auto ranging of a channel is enabled and trigger level mode is set to TIEPIE_HW_TLM_ABSOLUTE, the input range will not auto range to a range that is smaller than the selected trigger level.
By default the highest available range is selected and auto ranging is enabled.
◆ tiepie_hw_oscilloscope_channel_get_auto_ranging()
◆ tiepie_hw_oscilloscope_channel_set_auto_ranging()
◆ tiepie_hw_oscilloscope_channel_get_ranges()
TIEPIE_HW_API uint32_t tiepie_hw_oscilloscope_channel_get_ranges |
( |
tiepie_hw_handle |
handle, |
|
|
uint16_t |
ch, |
|
|
double * |
list, |
|
|
uint32_t |
length |
|
) |
| |
Get the supported input ranges for a specified channel, with the currently selected coupling.
- Parameters
-
- Returns
- The total number of ranges.
- Status values
-
- Example
double* Ranges = malloc(sizeof(double) * Range_count);
printf("Scp_chGet_ranges (Ch%u):\n", Ch + 1);
for(i = 0 ; i < Range_count ; i++)
printf("- %f\n", Ranges[ i ]);
free(p_ranges);
TIEPIE_HW_API uint32_t tiepie_hw_oscilloscope_channel_get_ranges(tiepie_hw_handle handle, uint16_t ch, double *list, uint32_t length)
Get the supported input ranges for a specified channel, with the currently selected coupling.
- See also
- tiepie_hw_oscilloscope_channel_get_range
-
tiepie_hw_oscilloscope_channel_set_range
- Since
- 1.0
◆ tiepie_hw_oscilloscope_channel_get_range()
TIEPIE_HW_API double tiepie_hw_oscilloscope_channel_get_range |
( |
tiepie_hw_handle |
handle, |
|
|
uint16_t |
ch |
|
) |
| |
◆ tiepie_hw_oscilloscope_channel_set_range()
TIEPIE_HW_API double tiepie_hw_oscilloscope_channel_set_range |
( |
tiepie_hw_handle |
handle, |
|
|
uint16_t |
ch, |
|
|
double |
range |
|
) |
| |
Set the input range for a specified channel.
When a non existing input range value is tried to be set, the closest available larger input range is selected.
- Parameters
-
- Returns
- The actually selected input range.
- Status values
-
- Example
double Range = 10;
printf("Scp_chSet_range = %f", Range);
TIEPIE_HW_API double tiepie_hw_oscilloscope_channel_set_range(tiepie_hw_handle handle, uint16_t ch, double range)
Set the input range for a specified channel.
- See also
- tiepie_hw_oscilloscope_channel_get_ranges
-
tiepie_hw_oscilloscope_channel_get_range
- Since
- 1.0