Rigol-DG2052-Function-Gener.../README.md

1.5 KiB

Rigol DG2052 Python Library

[fn_gen] The Function Generator SCPI library in Python

Description: A library for usage with SCPI compliant function generators (for now the DG2000 series from rigol)

Usage:

Linux

# Clone Repository and change to repo directory
git clone https://collaborating.tuhh.de/m-4/imek-public/python-libs/rigol-dg2052-python-library.git && cd rigol-dg2052-python-library
# Install virtualenv for python virtual enviroment management
pip install virtualenv # Can be skipped if already installed
# Create a virutal enviroment in repo folder called 'venv'
python -m venv venv
# Activate virtual enviroment
source venv/bin/activate
# Install python build package to build library
pip install build
# Build library
python -m build
# Deactivate virtual enviroment
deactivate

Windows

# Clone Repository and change to repo directory
git clone https://collaborating.tuhh.de/m-4/imek-public/python-libs/rigol-dg2052-python-library.git
cd rigol-dg2052-python-library
# Install virtualenv for python virtual enviroment management
pip install virtualenv # Can be skipped if already installed
# Create a virutal enviroment in repo folder called 'venv'
python -m venv venv
# Activate virtual enviroment
venv\Scripts\Activate.ps1
# Install python build package to build library
pip install build
# Build library
python -m build
# Deactivate virtual enviroment
deactivate

The library will be then available in dist as a .whl file.