Skip to main content

A Package to control a digital function generator by PHYWE

Project description

PhyweControl

Python package for controlling the "Digital Function Generator" produced by PHYWE Systeme GmbH & Co. KG.

Installation

The package is included in the python packaging index and can be installed via pip:

pip install phywecontrol

Driver Installation

Windows

The function generator should show up as "Digital Function Generator" in the device manager. Select "Update Driver" and point the installation wizard to the driver folder.

Open the device properties and enable "Load VCP" in the "Advanced" Tab. After unplugging and re-plugging, the function generator shows up as COM Port in the device manager.

Linux

The device driver is included in the Linux kernel as ftdi_sio. However, the vendor and product id of the function generator are not registered in the driver and must be added manually.

Load the module:

modprobe ftio

Register the Device IDs for the module (if this doesn't work, the module location might be different on your system):

echo 0403 a303 > /sys/bus/usb-serial/drivers/ftdi_sio/new_id

After plugging in the function generator, it should show up as /dev/ttyUSBx.

To make this change permanent:

Add the file /etc/udev/rules.d/99-phywe.rules:

ACTION=="add", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="a303", RUN+="/sbin/modprobe ftdi_sio" RUN+="/bin/sh -c 'echo 0403 a303 > /sys/bus/usb-serial/drivers/ftdi_sio/new_id'"

Third-Party Content

The device drivers and interface docs in this repository are authored by PHYWE Systeme GmbH & Co. KG and are used with permission. All rights remain with the original authors.

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

phywecontrol-1.0.0.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

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

phywecontrol-1.0.0-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file phywecontrol-1.0.0.tar.gz.

File metadata

  • Download URL: phywecontrol-1.0.0.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for phywecontrol-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e5041c5ef4a3ada97fcfbeafa116967486ddf7198529efda6480b31fbd501bf6
MD5 9f260d8bb6b52fae8b0dfa160f4043b1
BLAKE2b-256 379c5332eded4246dbb623e813debd0fb35003c44e91884635c1cb45e3e5d0ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for phywecontrol-1.0.0.tar.gz:

Publisher: publish-to-pypi.yml on Schallform/PhyweControl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file phywecontrol-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: phywecontrol-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for phywecontrol-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7c170800f90093e651dd63de501084996dca5c9b5cc4e458b4945bb34eff671b
MD5 9d0593181d630160f312b8d77bb1898a
BLAKE2b-256 190c4035e7c86df726b990f4929d129af6695ee6939d5ddfe7a242debccf0c21

See more details on using hashes here.

Provenance

The following attestation bundles were made for phywecontrol-1.0.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on Schallform/PhyweControl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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