SimpleAbstractSerialDMX:
Filter:
SimpleDMXControl/Classes (extension) | External Control > DMX

SimpleAbstractSerialDMX
ExtensionExtension

an abstract Serial-based DMX interface

Description

Abstract barebones DMX interface. Not intended to be used directly, but rather to be subclassed by a class that implements the actual DMX interface. SerialPort edition.

NOTE: Although DMX addresses are typically documented 1-based, all SimpleDMX data structures are 0-based.

new

create a new instance

Arguments:

portid

port id of the serial port. If nil, the first available port will be used.

baudrate

desired baud rate

universeSizes

An array of integers, one for each universe, specifying the number of channels in each universe. If not specified, defaults to 512 channels per universe.

cmdperiod

if true, the serial port will be closed on command-period.

Instance Methods

.baudrate

desired baud rate

.portid

port id of the serial port

.port

serial port object

.open

open the serial port and initialize the device

.close

close the serial port