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

SimpleEnttecDMXProMk2
ExtensionExtension

Interface for communication with the Enttec DMX pro Mk2 device

Description

barebones and low-level implementation to handle DMX communication (send only) with the Enttec DMX Pro Mk2 (two universes).

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

Class Methods

.new

create a new instance.

Arguments:

portid

one listed in SerialPort.devices.

baudrate

baudrate of the serial port.

universeSize

size of the initial DMX universes.

cmdperiod

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

Examples

Instantiation

Controlling a fixture with SimpleDMXFixture

// an Astera LED Par at dmx address 20 in universe 0 q.ax3 = SimpleDMXFixture.newFor(\ax3, \13, 20, 0);

// set to green q.ax3.setColor(Color.green); q.enttec.add(q.ax3); q.enttec.sendDMX(flush: false);

// set to red q.ax3.setColor(Color.red); q.enttec.add(q.ax3); q.enttec.sendDMX(flush: false);

Controlling a fixture without SimpleDMXFixture

A cameo THUNDERWASH 600 RGBW at dmx address 477 in universe 1:

Closing the serial port