Skip to main content

No project description provided

Project description

Luxbeam Introduction

Build Documentation HTML

Luxbeam is a python package that implements the protocol for programming Luxbeam DMD controller from VISITECH. The Luxbeam class implements the control protocol of Luxbeam digital micro-mirror device (DMD) controller. This is tested with Luxbeam 4600 controller and DLP9500UV DMD. In addition to equipment control from the Luxbeam class, the LuxbeamSeqeuncer class implements the support for composing sequencer code used in Luxbeam controller. This allows the user to compose the sequencer code using native python arithmetic operations and some of the flow controls.

Installation

Luxbeam can be installed from PyPI via:

pip install Luxbeam

One can also clone the repository to install it in the develop mode:

pip install -e .

Test

It is recommended to run the test cases to ensure LuxBeam is compatiable with your setup.

Run the tests in the test folder:

pytest test --ip="<IP address>"

Run the interactive tests:

pytest test --ip="<IP address>" --interactive -s

Example

import Luxbeam
from Luxbeam.sample import number_image

#  This is the equivalent example of displaying non-scrolling images in the LB 4600 user guide.

# Connect to the Luxbeam
luxbeam = Luxbeam.Luxbeam("192.168.0.10", timeout=1)  # modify the ip address if required.

# Prepare the image (display 123 on the DMD)
image = number_image(123, luxbeam.cols, luxbeam.rows)

# Set image type to 1 (binary). (One-time Operation)
luxbeam.set_image_type(1)

# Set inum size to 1080. (One-time Operation)
luxbeam.set_inum_size(luxbeam.rows)

# Disable the sequencer.
luxbeam.set_sequencer_state(Luxbeam.SEQ_CMD_RUN, Luxbeam.DISABLE)

# Set sequencer in reset-state
luxbeam.set_sequencer_state(Luxbeam.SEQ_CMD_RESET, Luxbeam.ENABLE)

# Load the image to inum = 0.
luxbeam.load_image(0, image)

# Compose the sequencer file.
seq = Luxbeam.LuxbeamSequencer()
for _ in seq.jump_loop_iter():  # A while-true loop
    seq.load_global(0, 400)  # Load data from Inum (0) to DMD
    seq.trig(Luxbeam.TRIG_MODE_NEGATIVE_EDGE, Luxbeam.TRIG_SOURCE_INTERNAL, 0)  # Neg. edge internal trigger
    seq.reset_global(40)  # Display contents on DMD

# View the generated sequence file
print(seq.dumps())

# Send sequence file.
luxbeam.load_sequence(seq.dumps())

# Take sequencer out of reset-state
luxbeam.set_sequencer_state(Luxbeam.SEQ_CMD_RESET, Luxbeam.DISABLE)

# Start the sequencer
luxbeam.set_sequencer_state(Luxbeam.SEQ_CMD_RUN, Luxbeam.ENABLE)

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

Luxbeam-0.1.2.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

Luxbeam-0.1.2-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file Luxbeam-0.1.2.tar.gz.

File metadata

  • Download URL: Luxbeam-0.1.2.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for Luxbeam-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ef8b69b907b5c2e6c0acc2b9226154433dfac4ac4beb1a37bf2eeb319efda5dd
MD5 b32b5cea16c823afc99b2a40cb975be9
BLAKE2b-256 97f3b1d6fd66daa53027014cdb3f1266d39760c89788f768bc4d83f00626c805

See more details on using hashes here.

File details

Details for the file Luxbeam-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: Luxbeam-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for Luxbeam-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ce0cd578c09ae053865254f3e0273b05496b6fef7fb739486af7edea737a03fa
MD5 7e84f88631a48a6aa3b2380e929e9220
BLAKE2b-256 98f02d6bb4da2c2a43aecf676e2c050a5c3e27f563847927071ec8181a4f5ca8

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