PyViLab
Introduction
Python CLI and GUI application to control RIGOL devices through pyvilab_lib.
Supported equipment:
- multimeter RIGOL DM3068
- oscilloscope RIGOL DS1202Z-E, DS2072A
- generator RIGOL DG1022A
Requirements
- Python (tested with 3.8+)
- matplotlib
- numpy
- argparse
Installation
- SW instalation
- No instalation is required in actual version. Only needed to clone repository.
git clone https://gitlab.nsoric.com/mtf/lab/pyvilab.git
And then you can directly run .py script or prepared bash scrips.
- HW instalation
- Refer to pyvilab_lib manual.
Usage
CLI python script
multimeter.py FUNCTION [-r] [-s]
: run measure on multimeter.- FUNCTION - can be one of: VOLTAGE_DC, VOLTAGE_AC, CURRENT_DC, CURRENT_AC, RESISTANCE, RESISTANCE, CONTINUITY, DIODE or CAPACITANCE
- -r : range. Range code. Enter allowed key values:
- for CURRENT_DC: 0:200μA, 1:2mA , 2:20mA, 3:200mA, 4:2A, 5:10A, AUTO
- for CURRENT_AC: 0:20mA, 1:200mA, 2:2A, 3:10A, AUTO
- for VOLTAGE_DC: 0:200mV, 1:2V, 2:20V, 3:200V, 4:1000V, AUTO
- for VOLTAGE_AC: 0:200mV, 1:2V, 2:20V, 3:200V, 4:750V, AUTO
- for RESISTANCE: 0:200Ω, 1:2kΩ, 2:20kΩ, 3:200kΩ, 4:1MΩ, 5:10MΩ, 6:100MΩ, AUTO
- for FRESISTANCE: 0:200Ω, 1:2kΩ, 2:20kΩ, 3:200kΩ, 4:1MΩ, 5:10MΩ, 6:100MΩ, AUTO
- for FREQUENCY: 0:200mV, 1:2V, 2:20V, 3:200V, 4:750V, AUTO
- for PERIOD: 0:200mV, 1:2V, 2:20V, 3:200V, 4:750V, AUTO
- for CAPACITANCE: 0:2nF, 1:20nF, 2:200nF, 3:2μF, 4:200μF, 5:10000μF, AUTO
- -s : measuring speed/rate. Available values: FAST (cca 4ms), MEDIUM (cca 10ms), SLOW (4s). Defaults to FAST.
CLI bash scripts
- multimeter_DCV.sh - perform DC voltage measurement in FAST mode, with maximal range (1000V)
Measured data form CLI scripts are stored in ./data folder. Name of measure file contains date timestamp as a filename.
GUI application
AppImage file
Project status
Only Linux OS is supported for now.


Created at
15.03.2022
Last update
13.01.2025, 22:35:10