General Functions
These functions are not scope specific, so will need to be called using
psdk.[function]
or pypicosdk.[function]
where [function]
is one of the following:
Functions:
Name | Description |
---|---|
convert_time_axis |
Converts a time axis array from one unit to another. |
get_all_enumerated_units |
Enumerate all supported PicoScope units. |
resolution_enhancement |
Returns the buffer after applying a moving average filter with the specified window size. |
convert_time_axis(time_axis, current_units, convert_units)
Converts a time axis array from one unit to another.
This method calculates a scaling factor by comparing the exponents of the current and target units, then multiplies the time axis array by this factor.
Parameters: |
|
---|
Returns: |
|
---|
Examples:
>>> from pypicosdk import convert_time_axis
>>> new_time_axis = convert_time_axis(old_time_axis, 'ns', 'ms')
get_all_enumerated_units()
Enumerate all supported PicoScope units.
Returns: |
|
---|
Examples:
>>> from pypicosdk import get_all_enumerated_units
>>> n_units, unit_list = get_all_enumerated_units()
>>> print(n_units, unit_list)
resolution_enhancement(buffer, window_size, padded=True)
Returns the buffer after applying a moving average filter with the specified window size.
Parameters: |
|
---|
Returns: |
|
---|
Examples:
>>> from pypicosdk import resolution_enhancement
>>> enhanced_buffer = resolution_enhancement(buffer, window_size=16)