Skip to main content

package for HAICU experiment

Project description

HAICU Control Script (haicu-ctl)

Overview

Package and command line utility for controlling and sequencing the MLD1200

Installation

The recommended installation method is via pip

To install/upgrade: pip install -U haicu

To run it locally from the source (from the scripts/haicu directory): python -m haicu

Usage

Command: haicu-ctl [-h] [--version] [-v] [-l file] [-s SERIAL] [-j] {list,info,set,upload,program,convert,compare}

Purpose: Connects to an MLD1200 device and reads/writes registers, statuses, and memory. Also contains utility functions to create .RLE files for consumption by device.

Options:

-h or --help Print out help for general usage or subcommand. Ie: haicu-ctl -h or haicu-ctl set -h

--version Print out current version

-v or --verbose Increase logging level, can be used multiple times

-l LOG_FILE or --log LOG_FILE Specify log file name, instead of standard naming scheme

-s SERIAL or --serial SERIAL Specify serial number of MLD1200 to connect to

-j or --json For reads, format output in JSON. Only affects set (with no value), info, status, control, memory, and bread

The available subcommands are:

  • list - List of available MLD1200 devices
  • info - Get full report on MLD1200, all registers and status bits
  • set <regname> [data] - Allows human-readable setting of register values. If data is omitted, returns current value in register
  • upload <file> <section> - Upload a new sequence into MLD1200 from file. Choose section to load ('left','right','extension'). Does not start sequence.
  • program [config_file] [--auto/-a] - Upload and start sequence. Can be passed a path to an INI file, otherwise tries to use 'haicu.ini' in current directory. The '--auto' option auto-reload the sequencer when it finishes, it will then start again on next trigger.
  • convert <infile> <outfile> - Convert a derived format file 'infile' into RLE formatted file 'outfile'
  • compare <derived_file> <rle_file> - Compare a derived file to an RLE file

Diagnostic subcommands:

  • memtest - Test the selected MLD by writing and reading random values to DDR memory
  • status <addr> - Low level readback of status register at given address
  • control <addr> [data] - Low level read/write of control registers. Omit 'data' to return current value at given address
  • memory <addr> [data] - Low level read/write of DDR memory. Omit 'data' to return current value at given address
  • bread <addr> <count> - Low level block read of DDR memory section. Reads 'count' words out of DDR started at given address

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

haicu_eth-0.9.7.tar.gz (22.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

haicu_eth-0.9.7-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

Details for the file haicu_eth-0.9.7.tar.gz.

File metadata

  • Download URL: haicu_eth-0.9.7.tar.gz
  • Upload date:
  • Size: 22.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.4

File hashes

Hashes for haicu_eth-0.9.7.tar.gz
Algorithm Hash digest
SHA256 cc74d4e43f26f220dedc487d9ee21cecc1d578deb68218be334914dccd50d58f
MD5 53b82206488856ac754a01704e15cbb5
BLAKE2b-256 ef6e0bda0cab8be2ebfdc8c67c82045719ebf3db5af3c8f70a87d4cf9ba83208

See more details on using hashes here.

File details

Details for the file haicu_eth-0.9.7-py3-none-any.whl.

File metadata

  • Download URL: haicu_eth-0.9.7-py3-none-any.whl
  • Upload date:
  • Size: 23.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.4

File hashes

Hashes for haicu_eth-0.9.7-py3-none-any.whl
Algorithm Hash digest
SHA256 71b5d46a6065e10ab9ae0ee4c0008649b5f5968d9e4666a5445c525eb3e3322a
MD5 f6e79552c9e87a06c67cd55fc275ac2c
BLAKE2b-256 002fa2c6fa233732c41e4caf96f9be835f9de3b6b243d726256791b31397ae27

See more details on using hashes here.

Supported by

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