# 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](https://asset.conrad.com/media10/add/160267/c1/-/en/002619140ML00/mode-demploi-2619140-alimentation-de-laboratoire-reglable-voltcraft-dlp-3306-0-30-v-0-6-a-378-w-rs-232-usb-lan-fonction-esclave-nbr-d.pdf)
## Installation
We encourage installing this package via the pip tool (a Python package manager):
```bash
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.
```python
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](CONTRIBUTING.md).
## Reach us
We love feedback. Feel free to reach us on [Scaleway Slack community](https://slack.scaleway.com/), we are waiting for you on [#opensource](https://scaleway-community.slack.com/app_redirect?channel=opensource)..
## Licence
[License Apache 2.0](LICENCE)
Raw data
{
"_id": null,
"home_page": "http://github.com/scaleway/voltcraft-dlp3306",
"name": "voltcraft-dlp3306",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10.0",
"maintainer_email": null,
"keywords": null,
"author": "The Scaleway Developers",
"author_email": "community@scaleway.com",
"download_url": "https://files.pythonhosted.org/packages/66/69/64498200b6924a3dcdac9574a606759f5271ad20b3adb52c9d7011e580f4/voltcraft_dlp3306-0.1.1.tar.gz",
"platform": null,
"description": "# Python package for Voltcraft DLP 3306 powersupply\n\n**voltcraft_dlp3306** is a Python package to interact with Volcrat powersupply with respect [to its SCPI protocol implementation](https://asset.conrad.com/media10/add/160267/c1/-/en/002619140ML00/mode-demploi-2619140-alimentation-de-laboratoire-reglable-voltcraft-dlp-3306-0-30-v-0-6-a-378-w-rs-232-usb-lan-fonction-esclave-nbr-d.pdf)\n\n## Installation\n\nWe encourage installing this package via the pip tool (a Python package manager):\n\n```bash\npip install voltcraft-dlp3306\n```\n\nPhysically plug an RJ45 cable to the Volcraft device and a switch or directly to your laptop.\n\n\n\nThe IP address and the port of your Voltcraft device can be found/setup at: 'Utility' button > 'Port set' tab > 'LAN set' subtab\n\n## Getting started\n\nThis plugin is designed to be *straightforward and stateless*. Some improvements/optimizations could be done with a stateful object.\n\n```python\nimport asyncio\nfrom voltcraft_dlp3306 import VoltcraftDLP3306\n\nasync def main_async():\n # Device ip and port can be found directly on the powersupply option\n vtc = await VoltcraftDLP3306.create_device(ip=\"12.12.12.12\", port=\"1234\")\n\n # Set current (Ampere) at channel 1\n await vtc.set_setup_current_chan(4, 1)\n\n # Set voltage (Volt) at channel 1\n await vtc.set_setup_voltage_chan(15, 1)\n\n # Turn on channel 1\n await vlt.turn_on_chan(1)\n\n # Print current (Ampere) at channel 1\n print(await vlt.get_running_current_chan(1))\n\n # Record channels values (voltage and current) to a csv file\n # You can provide a callback to stop the record at anytime\n await vlt.watch(frequency=0.2, out=\"measure.csv\", channels=[1,2,3])\n\n # Turn off channel 1\n await vlt.turn_off_chan(1)\n\nif __name__ == \"__main__\":\n asyncio.run(main_async)\n\n```\n\nVocabulary explained:\n\n\n\n## Development\nThis 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](CONTRIBUTING.md).\n\n## Reach us\nWe love feedback. Feel free to reach us on [Scaleway Slack community](https://slack.scaleway.com/), we are waiting for you on [#opensource](https://scaleway-community.slack.com/app_redirect?channel=opensource)..\n\n## Licence\n[License Apache 2.0](LICENCE)\n",
"bugtrack_url": null,
"license": "Apache 2",
"summary": "('A python package to interact with Voltcraft DLP 3306 powersupply',)",
"version": "0.1.1",
"project_urls": {
"Homepage": "http://github.com/scaleway/voltcraft-dlp3306"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "58a1a2ef054fa1315c4803b3b504f9bed39c5560927fe74106a287fec6c0cd58",
"md5": "1f377d3ecf6f03a98a9b1a4b42e35770",
"sha256": "d190045700783f30c72dbde1e3f1d7fb0cca082bcb032d49d66d61fede9b67e0"
},
"downloads": -1,
"filename": "voltcraft_dlp3306-0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "1f377d3ecf6f03a98a9b1a4b42e35770",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10.0",
"size": 11353,
"upload_time": "2024-07-09T11:14:21",
"upload_time_iso_8601": "2024-07-09T11:14:21.760933Z",
"url": "https://files.pythonhosted.org/packages/58/a1/a2ef054fa1315c4803b3b504f9bed39c5560927fe74106a287fec6c0cd58/voltcraft_dlp3306-0.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "666964498200b6924a3dcdac9574a606759f5271ad20b3adb52c9d7011e580f4",
"md5": "1c374f005ba0f75bd355f5ba9e44263f",
"sha256": "05de9809e216678ab42b63d6b69884711f5bb89954aa06d88c3d71c2dbe6b529"
},
"downloads": -1,
"filename": "voltcraft_dlp3306-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "1c374f005ba0f75bd355f5ba9e44263f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10.0",
"size": 8985,
"upload_time": "2024-07-09T11:14:24",
"upload_time_iso_8601": "2024-07-09T11:14:24.106090Z",
"url": "https://files.pythonhosted.org/packages/66/69/64498200b6924a3dcdac9574a606759f5271ad20b3adb52c9d7011e580f4/voltcraft_dlp3306-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-09 11:14:24",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "scaleway",
"github_project": "voltcraft-dlp3306",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "scpi",
"specs": [
[
"==",
"2.4.0"
]
]
},
{
"name": "dataclasses",
"specs": [
[
"==",
"0.6"
]
]
}
],
"lcname": "voltcraft-dlp3306"
}