# RigolDG1022Z

Control the Rigol DG1022Z function generator from Python through [`InstroAWG`](https://dev.nominal.io/instro/awg.md).

![Rigol DG1022Z](https://dev.nominal.io/instro/_images/RigolDG1022Z.png)

The [`RigolDG1022Z`](https://dev.nominal.io/instro/ref/instruments/instro.awg.drivers.rigol_dg1022z.RigolDG1022Z.md#instro.awg.drivers.rigol_dg1022z.RigolDG1022Z "instro.awg.drivers.rigol_dg1022z.RigolDG1022Z") provides a driver that can be used to instantiate an [InstroAWG](https://dev.nominal.io/instro/awg.md).

## Creating an [`InstroAWG`](https://dev.nominal.io/instro/awg.md) with [`RigolDG1022Z`](https://dev.nominal.io/instro/ref/instruments/instro.awg.drivers.rigol_dg1022z.RigolDG1022Z.md#instro.awg.drivers.rigol_dg1022z.RigolDG1022Z "instro.awg.drivers.rigol_dg1022z.RigolDG1022Z")

```python
from instro.awg.drivers import RigolDG1022Z
from instro.awg import InstroAWG

awg = InstroAWG(
    name="myAWG",
    driver=RigolDG1022Z(visa_resource="USB0::0x1AB1::0x0642::DG1ZA000000000::INSTR"),
    num_channels=2,
)
```

Parameters and methods specific to [`RigolDG1022Z`](https://dev.nominal.io/instro/ref/instruments/instro.awg.drivers.rigol_dg1022z.RigolDG1022Z.md#instro.awg.drivers.rigol_dg1022z.RigolDG1022Z "instro.awg.drivers.rigol_dg1022z.RigolDG1022Z") can be found in the [Reference](https://dev.nominal.io/instro/ref.md).
