hvl_ccb.dev.tiepie.channel

Inheritance diagram of hvl_ccb.dev.tiepie.channel

class TiePieOscilloscopeChannelConfig(ch_number: int, channel: libtiepie.oscilloscopechannel.OscilloscopeChannel)[source]

Bases: PublicPropertiesReprMixin

Oscilloscope’s channel configuration, with cleaning of values in properties setters as well as setting and reading them on and from the device’s channel.

static clean_coupling(coupling: str | TiePieOscilloscopeChannelCoupling) TiePieOscilloscopeChannelCoupling[source]
static clean_enabled(enabled: bool) bool[source]
clean_input_range(input_range: float | TiePieOscilloscopeRange) TiePieOscilloscopeRange[source]
static clean_trigger_enabled(trigger_enabled: bool) bool[source]
clean_trigger_hysteresis(trigger_hysteresis: float) float[source]
static clean_trigger_kind(trigger_kind: str | TiePieOscilloscopeTriggerKind) TiePieOscilloscopeTriggerKind[source]
clean_trigger_level(trigger_level: int | float) float[source]
static clean_trigger_level_mode(level_mode: str | TiePieOscilloscopeTriggerLevelMode) TiePieOscilloscopeTriggerLevelMode[source]
property coupling: TiePieOscilloscopeChannelCoupling
property enabled: bool
property has_safeground: bool

Check whether bound oscilloscope device has “safeground” option

Returns:

bool: 1=safeground available

property input_range: TiePieOscilloscopeRange
property probe_gain: float

The measured value of the channel will be scaled by a gain. This feature is currently not implemented

property probe_offset: float

The measured value of the channel will be shifted by an offset. This feature is currently not implemented

property safeground_enabled: bool

safeground

Returns:

_description_

property trigger_enabled: bool
property trigger_hysteresis: float
property trigger_kind: TiePieOscilloscopeTriggerKind
property trigger_level: float
property trigger_level_mode: TiePieOscilloscopeTriggerLevelMode
class TiePieOscilloscopeChannelConfigLimits(osc_channel: libtiepie.oscilloscopechannel.OscilloscopeChannel)[source]

Bases: object

Default limits for oscilloscope channel parameters.

class TiePieOscilloscopeChannelCoupling(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: NameEnum

An enumeration.

ACA
ACV
DCA
DCV
class TiePieOscilloscopeRange(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: RangeEnum

An enumeration.

EIGHTY_VOLT = 80.0
EIGHT_HUNDRED_MILLI_VOLT = 0.8
EIGHT_VOLT = 8.0
FORTY_VOLT = 40.0
FOUR_HUNDRED_MILLI_VOLT = 0.4
FOUR_VOLT = 4.0
TWENTY_VOLT = 20.0
TWO_HUNDRED_MILLI_VOLT = 0.2
TWO_VOLT = 2.0
classmethod unit() Literal['V'][source]

Returns the Unit of the values in the enumeration. :return: the unit of the values in the enumeration in string format

class TiePieOscilloscopeTriggerKind(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

An enumeration.

ANY
FALLING
RISING
class TiePieOscilloscopeTriggerLevelMode(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: NameEnum

An enumeration.

ABSOLUTE
RELATIVE
UNKNOWN