Skip to main content

"Interactive command shell for USB TMC device"

Project description

USB-TMC Shell

Overview

Interactive command shell for USB Test and Measurement device Class (TMC) device.

Installation

It can be installed from GitHub using pip:

pip install git+https://github.com/Enchan1207/tmcsh

After installation, command tmcsh will be available.

Usage

1. Choosing a communication device

When you start tmcsh, you will be prompted to select a device.

$ tmcsh
USB-TMC shell v0.1.0
Connected USB-TMC devices:
  [0] Tektronix TDS2012B (0699:0367)
Enter the index of the device you want to communicate with.
Type 'r' to reload, ^C or ^D to abort.
>

Type index for communicate with:

0

After it, shell tries to establish connection.

Establish connection...

If that succeeds, you'll see a REPL-like prompt.

>>> 

2. Query the device

You can send IEEE 488 common commands...

>>> *IDN?
TEKTRONIX,TDS 2012B,C062851,CF:91.1CT FV:v22.01
>>> *ESR?
128

model-specific commands...

>>> DATA?
RPBINARY;REFA;CH2;1;2500;1

or commands that return binary.

>>> DATA:SOURCE?
CH2
>>> DATA:SOURCE CH1
>>> CURVE?
0000: 23 34 32 35 30 30 81 81 80 80 80 80 80 81 80 81
0001: 81 81 80 80 80 80 80 81 80 80 80 81 80 81 80 81
0002: 80 80 80 80 81 80 81 80 80 80 80 81 81 80 80 80
0003: 80 81 80 80 80 81 80 80 80 80 81 80 80 81 81 80
0004: 80 81 80 81 81 81 81 80 80 81 80 80 81 80 80 80
0005: 80 80 81 80 80 80 81 80 80 80 80 81 81 80 80 80
0006: 80 80 80 81 80 80 80 81 80 81 80 80 80 80 80 80
0007: 81 81 80 81 80 81 80 80 80 80 80 81 80 81 80 81
0008: 80 81 80 80 80 80 81 80 80 80 80 80 81 80 80 80
0009: 81 80 80 81 80 80 81 81 81 81 81 80 80 81 81 80
...

License

This repository is published under MIT License.

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

tmcsh-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

tmcsh-0.1.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file tmcsh-0.1.0.tar.gz.

File metadata

  • Download URL: tmcsh-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for tmcsh-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4c40d7d9e95fd39b5474df7f828db6e63a00ab62c413e4204747816c7f7ead1d
MD5 1466b7473966612c4fca45b56ed82f0a
BLAKE2b-256 8b38dc83991ae58fd1d9fbd5015ee50d5eb4bda38ee90d0c6d68a3f81d3ccd78

See more details on using hashes here.

File details

Details for the file tmcsh-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tmcsh-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for tmcsh-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b324355574415f837f5fa5c284d28324a4535bc105460cddb42cf53cf4e08ea6
MD5 a97b3ecaee02112c9c4c5965120a27ae
BLAKE2b-256 eee5f02ede827e900e6e428bd5138ff82b4298fb0f6cf01ee337ecad7b5d55a7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page