Lua 関数の GetDMXUniverse は、DMXチャンネルとその現在値を含むテーブルを返します。
― または ―
この例では、DMXユニバース1(許可されている場合)のテーブルを出力しています。
return function()
-- This gets a table for universe 1 with the returned value in percent
local tableDMXUniverse = GetDMXUniverse(1,true)
-- Check the returned table and print information if nil
if tableDMXUniverse == nil then
Printf("No value is returned. The univers is not granted or input is out of range")
return
end
-- Prints the table if not nil
for addr, value in ipairs(tableDMXUniverse) do
Printf("DMX Addr: %i - DMX value : %i", addr, value)
end
end