stanza.drivers.qdac2

Module Contents

Classes

NameDescription
QDAC2CurrentRangeCurrent measurment ranges for QDAC2.
QDAC2ControlChannelNone
QDAC2MeasurementChannelNone
QDAC2None

Data

logger

API

1stanza.drivers.qdac2.logger

Value: getLogger(...)

1class stanza.drivers.qdac2.QDAC2CurrentRange

Bases: str, enum.Enum

Current measurment ranges for QDAC2.

Initialization

Initialize self. See help(type(self)) for accurate signature.

1LOW

Value: LOW

1HIGH

Value: HIGH

1__str__() -> str
1class stanza.drivers.qdac2.QDAC2ControlChannel(name: str, channel_id: int, config: stanza.base.channels.ChannelConfig, driver: stanza.pyvisa.PyVisaDriver)

Bases: stanza.base.channels.ControlChannel

1_setup_parameters() -> None

Setup QDAC2-specific controlparameters with hardware integration.

1class stanza.drivers.qdac2.QDAC2MeasurementChannel(name: str, channel_id: int, config: stanza.base.channels.ChannelConfig, driver: stanza.pyvisa.PyVisaDriver)

Bases: stanza.base.channels.MeasurementChannel

1_setup_parameters() -> None

Setup QDAC2-specific measurement parameters with hardware integration.

1class stanza.drivers.qdac2.QDAC2(instrument_config: stanza.models.BaseInstrumentConfig, channel_configs: dict[str, stanza.base.channels.ChannelConfig], current_range: stanza.drivers.qdac2.QDAC2CurrentRange = QDAC2CurrentRange.LOW, is_simulation: bool = False, sim_file: str | None = None)

Bases: stanza.base.instruments.BaseInstrument

1_initialize_channels(channel_configs: dict[str, stanza.base.channels.ChannelConfig]) -> None
1prepare_measurement() -> None

Prepare the measurement.

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.

1set_slew_rate(
2 channel_name: str, slew_rate: float
3) -> None

Set the slew rate on a specific channel.

1get_slew_rate(channel_name: str) -> float

Get the slew rate on a specific channel.

1get_current_range(channel_name: str) -> str

Get the current range on a specific channel.

1set_current_range(
2 channel_name: str, current_range: str | stanza.drivers.qdac2.QDAC2CurrentRange
3) -> None

Set the current range on a specific channel.

1set_current_ranges(current_range: str | stanza.drivers.qdac2.QDAC2CurrentRange) -> None

Set the current range on all measurement channels.

1get_measurement_aperature_s(channel_name: str) -> float

Get the measurement aperature on a specific channel.

1set_measurement_aperature_s(
2 channel_name: str, measurement_aperature_s: float
3) -> None

Set the measurement aperature on a specific channel.

1set_measurement_aperatures_s(measurement_aperature_s: float) -> None

Set the measurement aperature on all measurement channels.

1get_nplc_cycles(channel_name: str) -> float

Get the number of cycles on a specific channel.

1set_nplc_cycles(
2 channel_name: str, nplc_cycles: float
3) -> None

Set the number of cycles on a specific channel.

1set_all_nplc_cycles(nplc_cycles: float) -> None

Set the number of cycles on all measurement channels.

1measure(channel_name: str) -> float

Measure the current on a specific channel.

1close() -> None

Close the QDAC2 driver.

1idn() -> str
1__str__() -> str