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
    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

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.2.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for voltcraft_dlp3306-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2d8eb53b33fd376a14a4d94f73591f067390767b8a748aa18ddac072fdffe6db
MD5 4d36e5e5a0af13729fdf39e3e25b3e35
BLAKE2b-256 1b8f12cc68e29dad46fd2355a042deab27c85747b21860e5c2fd88abba2cfa13

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for voltcraft_dlp3306-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1497b4e646cbfa888ef12fc1174a67b65174df613cbb0de2510a5c37d3558035
MD5 9e6681b99b354f244020cff5cc88b5a2
BLAKE2b-256 a1a5365ba222e3e08ea57c6fe70eb2d450251b254056bf4f6eff0f98fa8ca67b

See more details on using hashes here.

Supported by

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