From b3106a80ca127cfa43d474fbd92f8e91c6bebfb9 Mon Sep 17 00:00:00 2001 From: Marius Greuel Date: Thu, 31 Oct 2024 17:44:10 +0100 Subject: [PATCH] Update documentation --- README.md | 4 ++-- docs/introduction.rst | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 94a87f9..b01920f 100644 --- a/README.md +++ b/README.md @@ -5,12 +5,12 @@ **DwfPy** is a Python package that allows you to access **Digilent WaveForms** devices via Python. It provides a low-level API with complete access to the Digilent WaveForms API, and also a simple but powerful high-level API, which allows you to configure WaveForms devices with a single statement. -For instance, to output a 1kHz sine-wave on a **Analog Discovery 2**, you can simply write: +For instance, to output a 1kHz sine-wave on an **Analog Discovery**, you can simply write: ```python import dwfpy as dwf -with dwf.AnalogDiscovery2() as device: +with dwf.Device() as device: print('Generating a 1kHz sine wave on WaveGen channel 1...') device.analog_output['ch1'].setup('sine', frequency=1e3, amplitude=1, start=True) input('Press Enter key to exit.') diff --git a/docs/introduction.rst b/docs/introduction.rst index bcbd47e..4eb1879 100644 --- a/docs/introduction.rst +++ b/docs/introduction.rst @@ -8,13 +8,13 @@ It provides a low-level API with complete access to the Digilent WaveForms API, and also a simple but powerful high-level API, which allows you to configure WaveForms devices with a single statement. -For instance, to output a 1kHz sine-wave on a **Analog Discovery 2**, you can simply write: +For instance, to output a 1kHz sine-wave on an **Analog Discovery**, you can simply write: .. code-block:: import dwfpy as dwf - with dwf.AnalogDiscovery2() as device: + with dwf.Device() as device: print('Generating a 1kHz sine wave on WaveGen channel 1...') device.analog_output['ch1'].setup('sine', frequency=1e3, amplitude=1, start=True) input('Press Enter key to exit.')