Library to communicate and parse .trc files with/from LeCroy oscilloscopes.
Project description
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
- File src/lecroyutils/control.py on 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:
> pip install lecroyutils
Usage
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
License
lecroyutils is licensed under the MIT 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lecroyutils-4.0.2.tar.gz.
File metadata
- Download URL: lecroyutils-4.0.2.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b6b6ebc5921d3dc8e430b8ba3ad556fa373861aafbf600a059bcab765461f31
|
|
| MD5 |
15a4d84c50dd5b68ee6e7cfb13cd2dd2
|
|
| BLAKE2b-256 |
7fd77a0d3101102399b88640804de7404008459a99c2b51fa68d907e5a9cdd1e
|
File details
Details for the file lecroyutils-4.0.2-py3-none-any.whl.
File metadata
- Download URL: lecroyutils-4.0.2-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
411bb0c24d980a638d1f2e57ead53433a1b1d0fd562a37aad1d614be5d8ce324
|
|
| MD5 |
e0a6f61f4e8e65355af558c9e0899d73
|
|
| BLAKE2b-256 |
614b7be5d8dbedf1cb8a1f0ec99ac3685e0bbe47cef0f915ebe471f02d53225b
|