Creating self-resetting events
Some applications require events that reset automatically after a certain amount of time. In these cases, it's normal that the user will trigger the event and leave the system running. After a predetermined amount of time, the system automatically reverts back. This can easily be achieved in Audia by using the Event Scheduler block.
Programming self-resetting events
This method for create self-resetting events uses two presets: one to set up an event in the Event Scheduler for some time later, and another one to clear out that event so that it only happens once. The former preset will also include all of the changes required for the special event. The latter preset will also include all of the changes required to reset everything back to normal.
- Add an Event Scheduler block to your design.
- Add a Remote Preset block and connect it to the output of the Event Scheduler block.
- Create a new preset for the "normal" mode. this preset should include all the blocks and settings that revert the system to normal operation. Make certain you include the Event Scheduler block in this preset but leave the Scheduler settings blank when you save the preset.
- Assign this new preset to the Remote Preset block connected to the Event Scheduler block (right-click on the preset button and select "Assign Preset").
- Double click on the Event Scheduler block, set the Scheduled Type to Periodic and set, under Periodic, the time required until the system resets.
- Create another preset for the timed event. This preset should have all the settings you need for the special event you want to trigger. Make certain to include the Event Scheduler block in this preset. Ensure that the Event Scheduler block is set with the desired time before saving this preset.
- Load the configuration to your Audia/Nexia.
Now, when you recall the preset for the timed event, the scheduler will be activated and after the programmed time, the system will revert back to normal operation. When the "Normal Mode" preset is recalled, the Event Scheduler block should be cleared out so that it no longer has a schedule.
If you need to create multiple timed events, you can add more event presets that include the Event Scheduler block with the appropriate time for such event.
For self-resetting events that reset in a short amount of time (a few minutes or less), an alternative to this method is to use Logic Delay blocks instead of presets and Event Scheduler blocks.