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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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