hvl_ccb.dev.tiepie.channel
- class SafeGround[source]
Bases:
object
Class that dynamically adds the safeground_enabled attribute getter/setter if the bound oscilloscope has the safeground option.
- class TiePieOscilloscopeChannelConfig(ch_number: int, channel: 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]
- clean_input_range(input_range: float | TiePieOscilloscopeRange) TiePieOscilloscopeRange [source]
- static clean_trigger_kind(trigger_kind: str | TiePieOscilloscopeTriggerKind) TiePieOscilloscopeTriggerKind [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 trigger_enabled: bool
- property trigger_hysteresis: float
- property trigger_kind: TiePieOscilloscopeTriggerKind
- property trigger_level: float
- property trigger_level_mode: TiePieOscilloscopeTriggerLevelMode
- class TiePieOscilloscopeChannelConfigLimits(osc_channel: 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 = 8
- ACV = 2
- DCA = 4
- DCV = 1
- 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