Universe#

A Universe object is returned from e.g. get_dmx_universe.

Member functions#

The following are member functions of Universe objects.

get_channel_value#

get_channel_value(channel)

Gets the current level of a channel in the universe, where channel is the integer channel number (1-512).

For example:

uni = get_dmx_universe(1) -- get DMX Universe 1
level = uni:get_channel_value(1) -- get channel 1 from the returned universe

park#

park(channel, value)

Parks an output channel at a given value according to the parameters:

Parameter

Value Type

Description

Value Example

channel

integer (1-512)

Number of the output channel

1

value

integer (0-255)

Level to set the channel to

128

For example:

-- Park channel 4 of DMX universe 1 at 128 (50%)
get_dmx_universe(1):park(4,128)

unpark#

unpark(channel)

Clears the parked value on an output channel, where channel is the integer channel number (1-512).

For example:

 -- Unpark channel 4 of DMX universe 1
 -- (it will go back to normal output levels)
get_dmx_universe(1):unpark(4)