A python module to automate MCCI lab equipment using PyVisa
You can install ZooKeeper using standard pip install:
pip install .
in the root directory
You can run ZooKeeper from the root directory using:
python -m zookeeper [-b <backend>]
backend: specifies the PyVisa backend
@py default, PyVisa-py backend
@sim simulation backend
For the moment, you can use the VISA device classes in a scripting environment by importing the SCPI package:
import SCPIThe SCPI package implements all the functionality of an SCPI instrument. You can create an instrument with a valid port, connect to it and disconnect when you are finished (this destroys the python object).
import SCPI
# create an SCPI instrument
inst = SCPI.Instrument(prot=<port>, backend=<backend>)
# now connect to the device
inst.connect()You can perform SCPI commands in multiple ways. The easiest method is to use a hierarchial attribute command:
# SCPI -> MEASure:VOLTage 1
inst.measure.voltage(1)Any command without an argument is a query.
A high level driver for the Rohde and Schwarz power supply
- check backend version number with
python -m visa info