Skip to main content

Unofficial Python framework for communication with the Menlo Syncro RRE laser synchronization unit

Project description

Synster -- Python API for Menlo Syncro box

Dependencies

Needs:

  • python3-pyserial
  • python3-

Quick'n Dirty Snippets

Try this:

>>> from rbp import Message, Device, ControlBytes, Errors, Commands
>>> dev = Device("/dev/ttyUSB0")
>>> m = Message(src=0x0, dest=0xff, cmd=Commands.ECHO, data='hi!')
>>> r = dev.req(m)
>>> print(r)

Test like this, if you already have a Menlo Syncro attached:

$ export SYNCSTER_PORT=/dev/ttyUSB0
$ cd syncster/syncster
$ pytest-3 -s rbp.py

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

menlo-syncro-0.1.0.tar.gz (27.8 kB view hashes)

Uploaded Source

Built Distribution

menlo_syncro-0.1.0-py3-none-any.whl (29.8 kB view hashes)

Uploaded Python 3

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