An asynchronous SCPI instrumentation library.
Project description
μSCPI
An asynchronous SCPI instrumentation library.
Installation
Installing the latest release from PyPI.
pip install -U uscpi
Installing from the latest source using git.
git clone http://github.com/mcpcpc/uscpi
cd uscpi/
pip install .
Usage
A basic example using the asyncio library.
from asyncio import run
from uscpi.protocol import TCP
from uscpi.instrument import Instrument
protocol = TCP(host="127.0.0.1", port=5025)
instrument = Instrument(protocol=protocol)
async def main():
response = await instrument.idn()
print(response)
if __name__ == "__main__":
run(main())
Features
The uscpi
is fairly lightweight and leaves a majority of instrument function commands to be implemented by the user. Nonetheless, the following IEEE-488.2 commands have been implemented:
- Clear Status Command
- Event Status Enable Command and Query
- Standard Event Status Register Query
- Identification Query
- Reset Command
- Service Request Enable Command and Query
- Read Status Byte Query
- Trigger Command
- Self-Test Query
- Wait-to-Continue Command
Credits
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
uscpi-0.0.1.tar.gz
(7.9 kB
view hashes)
Built Distribution
uscpi-0.0.1-py3-none-any.whl
(6.8 kB
view hashes)