Skip to main content

('A python package to interact with Voltcraft DLP 3306 powersupply',)

Project description

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
    vtc = await VoltcraftDLP3306.create_device(ip="12.12.12.12", port="1234")

    # Set current (Ampere) at channel 1
    await vtc.set_setup_current_chan(4, 1)

    # Set voltage (Volt) at channel 1
    await vtc.set_setup_voltage_chan(15, 1)

    # Turn on channel 1
    await vlt.turn_on_chan(1)

    # Print current (Ampere) at channel 1
    print(await vlt.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 vlt.watch(frequency=0.2, out="measure.csv", channels=[1,2,3])

    # Turn off channel 1
    await vlt.turn_off_chan(1)

if __name__ == "__main__":
    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..

Licence

License Apache 2.0

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

voltcraft_dlp3306-0.1.1.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

voltcraft_dlp3306-0.1.1-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file voltcraft_dlp3306-0.1.1.tar.gz.

File metadata

  • Download URL: voltcraft_dlp3306-0.1.1.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for voltcraft_dlp3306-0.1.1.tar.gz
Algorithm Hash digest
SHA256 05de9809e216678ab42b63d6b69884711f5bb89954aa06d88c3d71c2dbe6b529
MD5 1c374f005ba0f75bd355f5ba9e44263f
BLAKE2b-256 666964498200b6924a3dcdac9574a606759f5271ad20b3adb52c9d7011e580f4

See more details on using hashes here.

File details

Details for the file voltcraft_dlp3306-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for voltcraft_dlp3306-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d190045700783f30c72dbde1e3f1d7fb0cca082bcb032d49d66d61fede9b67e0
MD5 1f377d3ecf6f03a98a9b1a4b42e35770
BLAKE2b-256 58a1a2ef054fa1315c4803b3b504f9bed39c5560927fe74106a287fec6c0cd58

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page