Python package for Voltcraft DLP 3306 powersupply
voltcraft_dlp3306 is a Python package to interact with Volcrat powersupply with respect to its SCPI protocol implementation
Installation
We encourage installing this package via the pip tool (a Python package manager):
pip install voltcraft-dlp3306
Physically plug an RJ45 cable to the Volcraft device and a switch or directly to your laptop.
The IP address and the port of your Voltcraft device can be found/setup at: 'Utility' button > 'Port set' tab > 'LAN set' subtab
Getting started
This plugin is designed to be straightforward and stateless. Some improvements/optimizations could be done with a stateful object.
import asyncio
from voltcraft_dlp3306 import VoltcraftDLP3306
async def main_async():
# Device ip and port can be found directly on the powersupply option
vlc = await VoltcraftDLP3306.create_device(ip="42.42.42.42", port="1234")
# Set max delivered current (Ampere) at channel 1
await vlc.set_setup_current_chan(4, 1)
# Set delivered voltage (Volt) at channel 1
await vlc.set_setup_voltage_chan(15, 1)
# Switch on channel 1
await vlc.turn_on_chan(1)
# Print actual develired current (Ampere) at channel 1
print(await vlc.get_running_current_chan(1))
# Record channels values (voltage and current) to a csv file
# You can provide a callback to stop the record at anytime
await vlc.watch(frequency=0.2, out="measure.csv", channels=[1,2,3])
# Turn off channel 1
await vlc.turn_off_chan(1)
if __name__ == "__main__":
# Package API must be used with asyncio
asyncio.run(main_async())
Vocabulary explained:
Development
This repository is at its early stage and is still in active development. If you are looking for a way to contribute please read CONTRIBUTING.md.
Reach us
We love feedback. Feel free to reach us on Scaleway Slack community, we are waiting for you on #opensource..
License
Metadata
Release files for voltcraft-dlp3306 0.1.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 | |
|---|---|---|---|
| voltcraft_dlp3306-0.1.2.tar.gz | 9.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| voltcraft_dlp3306-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.4 kB
Release files / voltcraft_dlp3306-0.1.2.tar.gz
| Download URL | voltcraft_dlp3306-0.1.2.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d8eb53b33fd376a14a4d94f73591f067390767b8a748aa18ddac072fdffe6db
|
|
BLAKE2b-256 checksum How to use checksums |
1b8f12cc68e29dad46fd2355a042deab27c85747b21860e5c2fd88abba2cfa13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Release files / voltcraft_dlp3306-0.1.2-py3-none-any.whl
| Download URL | voltcraft_dlp3306-0.1.2-py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1497b4e646cbfa888ef12fc1174a67b65174df613cbb0de2510a5c37d3558035
|
|
BLAKE2b-256 checksum How to use checksums |
a1a5365ba222e3e08ea57c6fe70eb2d450251b254056bf4f6eff0f98fa8ca67b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|