hantekosc


Namehantekosc JSON
Version 0.1.1 PyPI version JSON
download
home_page
SummaryPython interface with integrated software trigger for controlling USB oscilloscopes from Hantek.
upload_time2023-10-14 10:24:33
maintainer
docs_urlNone
author
requires_python>=3.10
licenseOSI Approved :: GNU General Public License v3 (GPLv3)
keywords oscilloscope software-trigger hantek 6022be 6022bl
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            **********************
Project hantekosc
**********************

Hantekosc provides a Python interface to control the mobile USB-oscilloscopes made by Hantek.
It is based on library "Hantek6022API" (https://github.com/Ho-Ro/Hantek6022API).

Features
========
* Implemented software trigger

* Settings like recording length, sample rate, presample ratio or trigger mode can be set in a simple way

Examples
========

Example for initializing an oscilloscope device::

   from hantekosc import oscilloscope

    osc = oscilloscope.Oscilloscope()
    osc.channels[0].voltage_range = 5
    osc.channels[1].voltage_range = 5
    osc.trigger_mode = 'REPEAT'
    osc.sample_rate = 1 * 1e6
    osc.record_length = 2000
    osc.pre_sample_ratio = 0.2
    osc.selected_channel = 0
    osc.channels[0].trigger_kind = 'FALLING'
    osc.channels[0].trigger_level = 0.5

    osc.start()

Example of retrieving data from the oscilloscope's channel 1 after initialization::

    timing_data = osc.channels[0].measured_data[0]
    voltage_data = osc.channels[0].measured_data[1]


Installation requirements
=========================
Just copy the 60-hantek6022api rules to the system's folder::

    curl -fsSL https://raw.githubusercontent.com/BMecke/hantekosc/main/PyHT6022/udev/60-hantek6022api.rules | sudo tee /etc/udev/rules.d/60-hantek6022api.rules

Restart “udev” management tool:Restart “udev” management tool::

    sudo service udev restart


Install hantekosc (The use of virtual environments is recommended)::

    pip install hantekosc

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "hantekosc",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "",
    "keywords": "oscilloscope,software-trigger,hantek,6022BE,6022BL",
    "author": "",
    "author_email": "Bruno Mecke <info@bmecke.de>",
    "download_url": "https://files.pythonhosted.org/packages/de/8e/0d5550f6d47977cbf68bcdf2f368bddbaef0b1869a56fd605256c77a68fd/hantekosc-0.1.1.tar.gz",
    "platform": null,
    "description": "**********************\nProject hantekosc\n**********************\n\nHantekosc provides a Python interface to control the mobile USB-oscilloscopes made by Hantek.\nIt is based on library \"Hantek6022API\" (https://github.com/Ho-Ro/Hantek6022API).\n\nFeatures\n========\n* Implemented software trigger\n\n* Settings like recording length, sample rate, presample ratio or trigger mode can be set in a simple way\n\nExamples\n========\n\nExample for initializing an oscilloscope device::\n\n   from hantekosc import oscilloscope\n\n    osc = oscilloscope.Oscilloscope()\n    osc.channels[0].voltage_range = 5\n    osc.channels[1].voltage_range = 5\n    osc.trigger_mode = 'REPEAT'\n    osc.sample_rate = 1 * 1e6\n    osc.record_length = 2000\n    osc.pre_sample_ratio = 0.2\n    osc.selected_channel = 0\n    osc.channels[0].trigger_kind = 'FALLING'\n    osc.channels[0].trigger_level = 0.5\n\n    osc.start()\n\nExample of retrieving data from the oscilloscope's channel 1 after initialization::\n\n    timing_data = osc.channels[0].measured_data[0]\n    voltage_data = osc.channels[0].measured_data[1]\n\n\nInstallation requirements\n=========================\nJust copy the 60-hantek6022api rules to the system's folder::\n\n    curl -fsSL https://raw.githubusercontent.com/BMecke/hantekosc/main/PyHT6022/udev/60-hantek6022api.rules | sudo tee /etc/udev/rules.d/60-hantek6022api.rules\n\nRestart \u201cudev\u201d management tool:Restart \u201cudev\u201d management tool::\n\n    sudo service udev restart\n\n\nInstall hantekosc (The use of virtual environments is recommended)::\n\n    pip install hantekosc\n",
    "bugtrack_url": null,
    "license": "OSI Approved :: GNU General Public License v3 (GPLv3)",
    "summary": "Python interface with integrated software trigger for controlling USB oscilloscopes from Hantek.",
    "version": "0.1.1",
    "project_urls": {
        "Homepage": "https://github.com/BMecke/hantekosc"
    },
    "split_keywords": [
        "oscilloscope",
        "software-trigger",
        "hantek",
        "6022be",
        "6022bl"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "33ff25c6c456e737dac0e8be683e79a363b0c06e612a445638bf2017c3dbd797",
                "md5": "0bd3bde80118f056c8259ecd3439e711",
                "sha256": "b676bc9b48c04b2c62a4359ed85951b668f1d45018d767b940c15df3be0635cf"
            },
            "downloads": -1,
            "filename": "hantekosc-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0bd3bde80118f056c8259ecd3439e711",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 209837,
            "upload_time": "2023-10-14T10:24:28",
            "upload_time_iso_8601": "2023-10-14T10:24:28.672770Z",
            "url": "https://files.pythonhosted.org/packages/33/ff/25c6c456e737dac0e8be683e79a363b0c06e612a445638bf2017c3dbd797/hantekosc-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "de8e0d5550f6d47977cbf68bcdf2f368bddbaef0b1869a56fd605256c77a68fd",
                "md5": "f2418219fb29c0e2887a3c6d7d81b08a",
                "sha256": "c26ea2e08db38801b57352ab9747e4a3b2ca42f0ee877d5641790602b498be94"
            },
            "downloads": -1,
            "filename": "hantekosc-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "f2418219fb29c0e2887a3c6d7d81b08a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 1649009,
            "upload_time": "2023-10-14T10:24:33",
            "upload_time_iso_8601": "2023-10-14T10:24:33.523424Z",
            "url": "https://files.pythonhosted.org/packages/de/8e/0d5550f6d47977cbf68bcdf2f368bddbaef0b1869a56fd605256c77a68fd/hantekosc-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-14 10:24:33",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "BMecke",
    "github_project": "hantekosc",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "hantekosc"
}
        
Elapsed time: 2.62980s