DMX USB Pro Interface

rcp.dmx

Objects related to DMX lighting control.

class rcp.dmx.QtDMXUSBPro[source]

Class to manage a serial connection to an ENTTEC DMXUSB PRO for DMX lighting control output. Uses the Qt QSerialPort object for data transport. This currently only supports output, although the device is capable of receiving DMX. For details on the device, please see https://www.enttec.com/range/controls/dmx-usb-interfaces/

available_ports()[source]

Return a list of names of available serial ports.

close()[source]

Shut down the serial connection to the DMX device.

open()[source]

Open the serial port and initialize communications. If the port is already open, this will close it first. If the current name is None, this will not open anything. Returns True if the port is open, else False.

set_channel(channel, value)[source]

Set a single channel value and update the hardware.

Parameters:
  • start – zero-based index of channel to update

  • value – 8-bit integer value

set_channels(start, values)[source]

Set a range of channels and update the hardware.

Parameters:
  • start – zero-based index of first channel to update

  • values – list or numpy array of 8-bit integer values

set_size(channels)[source]

Set the size of the DMX ‘universe’. The value is limited to the valid range of [25,512]. Each channel is an 8-bit value transmitted on the DMX bus; typically each fixture occupies several sequential channels at a start address configured on the fixture.