Example ====== Enable/Disable DMX Outputs ====== ^ by: | Sebastian Beutel, March 2020 | ^ published: | here | ^ description: | enables/disables DMX outputs | ^ remarks: | idea: https://www.facebook.com/groups/1811437589141428/permalink/2601186196833226/ | {{tag>enable disable output dmx artnet sacn}} ==== functions ==== * [[:macros:function:Dmx.EnableDmxModule]] ===== Code ===== Dmx.EnableDmxModule("LocalDevice", "5", true) Dmx.EnableDmxModule("LocalDevice", "5", false) Dmx.EnableDmxModule("LocalDevice", "10", true) Dmx.EnableDmxModule("LocalDevice", "10", false) Dmx.EnableDmxModule("LocalDevice", "7", true) Dmx.EnableDmxModule("LocalDevice", "7", false) ===== Explanation ===== This explains the functional steps within the sequence. For all the other XML details please refer to [[:macros:formats_and_syntax#xml_format|Formats and syntax]] In order to ensble/disable the various DMX output modules [[:macros:function:Dmx.EnableDmxModule]] is called with appropriate parameters: * ''"LocalDevice"'' is the dfeNodeId for the local outputs, i.e. not those at a TNP * ''"5"'', ''"7"'' or ''"10"'' denote the output modules Art-Net, DMX or sACN * ''true'' resp. ''false'' indicate whether to enable or disable this output ===== How to use it ===== - [[:macros:deploying|make this macro available]] - trigger such a macro in order to enable/disable an output ~~DISCUSSION~~