stanza.base.mixins
Module Contents
Classes
API
Mixin class that provides the default InstrumentChannel implementation.
Add a channel to the instrument.
Can be called as:
- add_channel(channel) - uses channel.name as key
- add_channel(channel_name, channel) - uses provided name as key
Get a channel by name.
Remove a channel from the instrument.
Bases: stanza.base.mixins.InstrumentChannelMixin
Mixin class that provides the default ControlInstrument implementation using channel parameters.
Set voltage on a specific channel using parameter system.
Get current voltage on a specific channel using parameter system.
Get current slew rate on a specific channel using parameter system.
Set slew rate on a specific channel using parameter system.
Bases: stanza.base.mixins.InstrumentChannelMixin
Mixin class that provides default MeasurementInstrument implementations.
Context manager that handles preparation, avoiding nested calls.
Override in subclasses for actual preparation logic.
Optional override in subclasses for actual teardown logic.
Default measurement that reads the ‘current’ parameter from the first channel.
Subclasses are expected to expose channels via get_channel(int) and a ‘current’ Parameter on each channel whose getter performs the measurement.