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
lecroyutils-2.0.2.tar.gz
(8.2 kB
view hashes)
Built Distribution
Close
Hashes for lecroyutils-2.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 538749f9c7db7703d78f318e3a6ccaed0bc31bd44db190e55ad24ce35c043b78 |
|
MD5 | 64906c7a4ac028b71c7afe146928fb8a |
|
BLAKE2b-256 | cd476ee514d57654a333e68e65aecfeacf9aeb00a506d7ec2e6d4b5bc4e51362 |