# lecroyutils
[![pypi](https://badgen.net/pypi/v/lecroyutils/)](https://pypi.org/project/lecroyutils/)
Library to communicate and parse .trc files with/from LeCroy oscilloscopes.
This library is based on previous work:
* File src/lecroyutils/data.py on [lecroyparser](https://github.com/bennomeier/leCroyParser)
* File src/lecroyutils/control.py on [LecroyScope_python_snippet](https://github.com/ethz-pes/LecroyScope_python_snippet)
## Features
* remote control LeCroy oscilloscopes over vxi11
* does not require additional drivers (no visa)
* controlling trigger settings
* accessing statistics
* downloading screenshots
* view and donwload waveform data
* parse LeCroy .trc waveform data
* support for sequence mode
* x and y units
## Installation
lecroyutils is available in the Python Package Index (PyPi). It may be installed with pip:
```bash
> pip install lecroyutils
```
## Usage
```python
from lecroyutils.data import LecroyScopeData
# Parse a local .trc file
data = LecroyScopeData.parse_file('C2_00000_Lecroy.trc')
from lecroyutils.control import LecroyScope, TriggerMode, TriggerType
# Connect to a scope over vxi11
scope = LecroyScope('127.0.0.1')
scope.trigger_type = TriggerType.edge
scope.trigger_source = 'C1'
scope.acquire(force=True)
data = scope.waveform('C1')
scope.save_waveform('C1', 'C1_00000_Lecroy.trc')
```
## Related
* [lecroyparser](https://github.com/bennomeier/leCroyParser)
* [LecroyScope_python_snippet](https://github.com/ethz-pes/LecroyScope_python_snippet)
* [python-vxi11](https://github.com/python-ivi/python-vxi11)
## License
lecroyutils is licensed under the [MIT](LICENSE) license.
## Notice
We are not affiliated, associated, authorized, endorsed by, or in any way officially connected with Teledyne LeCroy, or any of its subsidiaries or its affiliates. The official Teledyne LeCroy github profile can be found at https://github.com/TeledyneLeCroy.
Raw data
{
"_id": null,
"home_page": "https://github.com/sibartel/lecroyutils",
"name": "lecroyutils",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "Parse, LeCroy, Scope, Oscilloscope, TRC",
"author": "Silas Bartel",
"author_email": "silas.a.bartel@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/7f/d7/7a0d3101102399b88640804de7404008459a99c2b51fa68d907e5a9cdd1e/lecroyutils-4.0.2.tar.gz",
"platform": null,
"description": "# lecroyutils\n\n[![pypi](https://badgen.net/pypi/v/lecroyutils/)](https://pypi.org/project/lecroyutils/)\n\nLibrary to communicate and parse .trc files with/from LeCroy oscilloscopes.\n\nThis library is based on previous work:\n* File src/lecroyutils/data.py on [lecroyparser](https://github.com/bennomeier/leCroyParser)\n* File src/lecroyutils/control.py on [LecroyScope_python_snippet](https://github.com/ethz-pes/LecroyScope_python_snippet)\n\n## Features\n* remote control LeCroy oscilloscopes over vxi11\n * does not require additional drivers (no visa)\n * controlling trigger settings\n * accessing statistics\n * downloading screenshots\n * view and donwload waveform data\n* parse LeCroy .trc waveform data\n * support for sequence mode\n * x and y units\n\n## Installation\n\nlecroyutils is available in the Python Package Index (PyPi). It may be installed with pip:\n\n```bash\n> pip install lecroyutils\n```\n\n## Usage\n\n```python\nfrom lecroyutils.data import LecroyScopeData\n\n# Parse a local .trc file\ndata = LecroyScopeData.parse_file('C2_00000_Lecroy.trc')\n\nfrom lecroyutils.control import LecroyScope, TriggerMode, TriggerType\n\n# Connect to a scope over vxi11\nscope = LecroyScope('127.0.0.1')\nscope.trigger_type = TriggerType.edge\nscope.trigger_source = 'C1'\nscope.acquire(force=True)\ndata = scope.waveform('C1')\n\nscope.save_waveform('C1', 'C1_00000_Lecroy.trc')\n```\n\n## Related\n* [lecroyparser](https://github.com/bennomeier/leCroyParser)\n* [LecroyScope_python_snippet](https://github.com/ethz-pes/LecroyScope_python_snippet)\n* [python-vxi11](https://github.com/python-ivi/python-vxi11)\n\n## License\nlecroyutils is licensed under the [MIT](LICENSE) license.\n\n## Notice\nWe are not affiliated, associated, authorized, endorsed by, or in any way officially connected with Teledyne LeCroy, or any of its subsidiaries or its affiliates. The official Teledyne LeCroy github profile can be found at https://github.com/TeledyneLeCroy.\n",
"bugtrack_url": null,
"license": null,
"summary": "Library to communicate and parse .trc files with/from LeCroy oscilloscopes.",
"version": "4.0.2",
"project_urls": {
"Bug Tracker": "https://github.com/sibartel/lecroyutils/issues",
"Homepage": "https://github.com/sibartel/lecroyutils"
},
"split_keywords": [
"parse",
" lecroy",
" scope",
" oscilloscope",
" trc"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "614b7be5d8dbedf1cb8a1f0ec99ac3685e0bbe47cef0f915ebe471f02d53225b",
"md5": "e0a6f61f4e8e65355af558c9e0899d73",
"sha256": "411bb0c24d980a638d1f2e57ead53433a1b1d0fd562a37aad1d614be5d8ce324"
},
"downloads": -1,
"filename": "lecroyutils-4.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e0a6f61f4e8e65355af558c9e0899d73",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 9100,
"upload_time": "2024-04-27T14:16:51",
"upload_time_iso_8601": "2024-04-27T14:16:51.371475Z",
"url": "https://files.pythonhosted.org/packages/61/4b/7be5d8dbedf1cb8a1f0ec99ac3685e0bbe47cef0f915ebe471f02d53225b/lecroyutils-4.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7fd77a0d3101102399b88640804de7404008459a99c2b51fa68d907e5a9cdd1e",
"md5": "15a4d84c50dd5b68ee6e7cfb13cd2dd2",
"sha256": "9b6b6ebc5921d3dc8e430b8ba3ad556fa373861aafbf600a059bcab765461f31"
},
"downloads": -1,
"filename": "lecroyutils-4.0.2.tar.gz",
"has_sig": false,
"md5_digest": "15a4d84c50dd5b68ee6e7cfb13cd2dd2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 9322,
"upload_time": "2024-04-27T14:16:56",
"upload_time_iso_8601": "2024-04-27T14:16:56.547676Z",
"url": "https://files.pythonhosted.org/packages/7f/d7/7a0d3101102399b88640804de7404008459a99c2b51fa68d907e5a9cdd1e/lecroyutils-4.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-27 14:16:56",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "sibartel",
"github_project": "lecroyutils",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "lecroyutils"
}