Overview
This package can be used to drive a Rigol DG5000 waveform generator. It provides an object oriented interface to the SCPI commands using Python properties. Especially it does the conversion from number to string (and vice versa) automatically.
Installation
You need to install the pyvisa package. On windows the pyvisa a package is supported by the python(x,y) distribution.
To install the RigolDG5000 driver, download the package and run the command:
python setup.py install
You can also directly move the RigolDG5000 to a location that Python can import from (directory in which scripts using PyDAQmx are run, etc.)
Usage
First you need to create your visa instrument.
import visa
from RigolDG5000 import RigolDG5000
inst = visa.instrument('USB0::0x0000::0x0000::DG5Axxxxxxxxx::INSTR', term_chars='\n', timeout=1)
## If you are using Visa >= 1.6
# rm = visa.ReourveManager()
# inst = rm.open_resource('USB0::0x0000::0x0000::DG5Axxxxxxxxx::INSTR', term_chars='\n', timeout=1)
rigol = RigolDG5000(inst=inst)
rigol.output[1].load = 50
rigol.source[1].voltage.unit = "DBM"
rigol.source[1].frequency.fixed = 10000000
rigol.source[1].state = 'ON'
print source[1].frequency.fixed
All the commands are Python properties that can be read or write.
Contact
Please send bug reports or feedback to Pierre Cladé.
Metadata
Release files for RigolDG5000 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| RigolDG5000-0.2.tar.gz | 16.2 kB | Without provenance | Details |
Release files / RigolDG5000-0.2.tar.gz
| Download URL | RigolDG5000-0.2.tar.gz |
|---|---|
| Size | 16.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5aaf2b5fca38f4d3a0883a133df7c56e90dbb72e318e18c5bb2f7ed3e84edc61
|
|
BLAKE2b-256 checksum How to use checksums |
ff6ff72ce041d69167e118582e44e8c8a57afcfaa69caca4679a96a5aa27bebd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for RigolDG5000 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.