stanza.base.protocols

Module Contents

Classes

NameDescription
ControlInstrumentProtocol for control instruments.
MeasurementInstrumentProtocol for measurement instruments.
NamedResourceProtocol for resources that have a name attribute.

API

1class stanza.base.protocols.ControlInstrument

Bases: typing.Protocol

Protocol for control instruments.

1set_voltage(
2 channel_name: str, voltage: float
3) -> None

Set the voltage on a specific channel.

1get_voltage(channel_name: str) -> float

Get the voltage on a specific channel.

1get_slew_rate(channel_name: str) -> float

Get the slew rate on a specific channel.

1class stanza.base.protocols.MeasurementInstrument

Bases: typing.Protocol

Protocol for measurement instruments.

1measure(channel_name: str) -> float

Measure the current on a specific channel.

1class stanza.base.protocols.NamedResource

Bases: typing.Protocol

Protocol for resources that have a name attribute.

1name: str

Value: None