Best practices
Control Naming Convention
We recommend sticking to some kind of naming Convention for your Controls. An example for the "Play"-Button on the "Media"-Stage could be: Media_Play
.
Make sure to name the Control in the actual Name Property field not the Label Property.
Separate UI and Logic
Especially in larger UNIVERSE Projects it is essential to stick to some kind of structure when building the Project. We recommend separating into Stages that are displayed und interacted with and Stages that hold Controls with the Commands for the Devices in the Project. The elements on these two Stages are then connected using the UNIVERSE Device.
Using this structure has the advantage of easier debugging in case something is not working as expected or if a Device needs to be replaced. When the user has the possibility to trigger the same action at differen places of the Project all the UI Buttons execute the same Button on the Logic Stage. If the Command has to be adjusted you can just change it on the one Button on the Logic Stage instead of having to adjust every Button on the UI Stages.
One Control for every Command
Another way to make testing easier is separating every Command in its own Control on the Logic Stage. This ensures that you can test connections in a very granular way. To execute multiple Commands at once simply create a new Control and connect the new Control to the existing ones using the UNIVERSE Device or the Node-System.