Skip to main content

Simple GUI for HV controls

Project description

hv-controls

Simple GUI for HV source controls.

Can be used for Mantigora devices.

Tested on Ubuntu 21.10 with HT-60-30-P. Proposal correct work on all platform for HT-60-*, HT-15-*, HT2000, HV2000, HV6000.

Installation

  1. Install USB/FTDI drivers. Application can be used different drivers for Linux and Windows. For Linux/Windows can be used pyftdi with libusb (On Debian/Ubuntu use sudo apt-get install libusb-1.0). For Windows can be used FTD2XX (Not implemented).
  2. Configure our system what would to allow using drivers from user-space. For linux see here or run application with sudo.
  3. Install application:
    • For installation from PyPI run pip install mipt-npm-hv-controls
    • For installation from source, move application source directory and run pip install -e . (Also you can install dependencies manually pip install pyqt5 pyftdi matplotlib Jinja2)
  4. Run hv-controls in terminal (or python3 main.py). Use option --no-gui for run console apps. Use options --debug for getting debug information in log.

For developers

Devices parameters

Devices parameters located in hv/device_data and based on file Unit1.pas, inforamtion from vendor and specification of protocol.

Parameters of next devices isn't consistent:

  • HT-15-10-P and HT-15-10-N: max current 3000 mcA or 750 mcA?
  • HT-6-... absent current step.
  • HT4000, HT6000, HR... absent codemax ADC and DAC.

Code overview

Файл hv_device.py содержит класс HVDevice, который принимает команды от консольного или графического интерфейса и превращает их в команды для низкоуровневых драйверов. Файлы ftdi_device.py и ftd2xx_device.py содержать классы-обертки над драйверами STDI и STD2XX (для него пока только заглушка).

Файл cmd_ui.py предоставляет консольный интерфейс для управления прибором, будет полезен при отладке. Директория hv/ui предоставляет графический интерфейс для управления прибором. Файл run.py содержит точки входа, для запуска которых pip умеет создавать shell и bat скрипты. Файл main.py позволяет запускать консольный и графический интерфейс

В директории hv/device_data хранится информация об источниках различных серий, источник должен сообщать свою серию, и оттуда буду браться данные.

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

mipt-npm-hv-controls-0.2.2.tar.gz (1.7 MB view details)

Uploaded Source

Built Distribution

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

mipt_npm_hv_controls-0.2.2-py3-none-any.whl (1.7 MB view details)

Uploaded Python 3

File details

Details for the file mipt-npm-hv-controls-0.2.2.tar.gz.

File metadata

  • Download URL: mipt-npm-hv-controls-0.2.2.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.0.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for mipt-npm-hv-controls-0.2.2.tar.gz
Algorithm Hash digest
SHA256 54287c6c39679863ae94bd84566630f44e509a83a6b4d549fe932b60ca46c9c5
MD5 f3816555217b2269bc98e389d2562d3c
BLAKE2b-256 f7d99556f3e02b9eadd4573ec8c1c86edb008488ccb236fcab51bf5f4652e91e

See more details on using hashes here.

File details

Details for the file mipt_npm_hv_controls-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: mipt_npm_hv_controls-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.0.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for mipt_npm_hv_controls-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ba32424346498017d3f71fe36e26fa869d23ba6e162bdb8c3abeb069798a2873
MD5 66020017c5fbda557c5e5354b60fc33a
BLAKE2b-256 c69227311da29b475c80f8055d7854e838d19ce036a2806dfa024b63ea6af15c

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