> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.conductorquantum.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.conductorquantum.com/_mcp/server.

# stanza.drivers.qdac2



## Module Contents

### Classes

| Name | Description |
|------|-------------|
| [`QDAC2CurrentRange`](#stanzadriversqdac2qdac2currentrange) | Current measurment ranges for QDAC2. |
| [`QDAC2ControlChannel`](#stanzadriversqdac2qdac2controlchannel) | None |
| [`QDAC2MeasurementChannel`](#stanzadriversqdac2qdac2measurementchannel) | None |
| [`QDAC2`](#stanzadriversqdac2qdac2) | None |

### Data

`logger`

### API

```python
stanza.drivers.qdac2.logger
```

**Value**: `getLogger(...)`


```python
class stanza.drivers.qdac2.QDAC2CurrentRange
```

**Bases**: `str`, `enum.Enum`

Current measurment ranges for QDAC2.

### Initialization

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


```python
LOW
```

**Value**: `LOW`


```python
HIGH
```

**Value**: `HIGH`


```python
__str__() -> str
```


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

**Bases**: `stanza.base.channels.ControlChannel`

```python
_setup_parameters() -> None
```

Setup QDAC2-specific control parameters with hardware integration.


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

**Bases**: `stanza.base.channels.MeasurementChannel`

```python
_setup_parameters() -> None
```

Setup QDAC2-specific measurement parameters with hardware integration.


```python
class stanza.drivers.qdac2.QDAC2(instrument_config: stanza.models.GeneralInstrumentConfig, 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.GeneralInstrument`

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


```python
set_voltage(
    channel_name: str, voltage: float
) -> None
```

Set the voltage on a specific channel.


```python
get_voltage(channel_name: str) -> float
```

Get the voltage on a specific channel.


```python
set_slew_rate(
    channel_name: str, slew_rate: float
) -> None
```

Set the slew rate on a specific channel.


```python
get_slew_rate(channel_name: str) -> float
```

Get the slew rate on a specific channel.


```python
get_current_range(channel_name: str) -> str
```

Get the current range on a specific channel.


```python
set_current_range(
    channel_name: str, current_range: str | stanza.drivers.qdac2.QDAC2CurrentRange
) -> None
```

Set the current range on a specific channel.


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

Set the current range on all measurement channels.


```python
get_measurement_aperature_s(channel_name: str) -> float
```

Get the measurement aperature on a specific channel.


```python
set_measurement_aperature_s(
    channel_name: str, measurement_aperature_s: float
) -> None
```

Set the measurement aperature on a specific channel.


```python
set_measurement_aperatures_s(measurement_aperature_s: float) -> None
```

Set the measurement aperature on all measurement channels.


```python
get_nplc_cycles(channel_name: str) -> float
```

Get the number of cycles on a specific channel.


```python
set_nplc_cycles(
    channel_name: str, nplc_cycles: float
) -> None
```

Set the number of cycles on a specific channel.


```python
set_all_nplc_cycles(nplc_cycles: float) -> None
```

Set the number of cycles on all measurement channels.


```python
measure(channel_name: str | list[str]) -> float | list[float]
```

Measure the current on a specific channel.


```python
close() -> None
```

Close the QDAC2 driver.


```python
idn() -> str
```


```python
__str__() -> str
```