Repeating Background Commands
This tutorial covers how to use a command in an Entrance to repeat at a user defined interval. This is useful for devices that automatically disconnect after a period of time without any activity (Yamaha AVRs disconnect after 45 seconds). Another use is to query a device for a feedback every few seconds.
- Open Entrance.
- Add Entrance.
- Assign Command.
- Select Entrance.
- Entrance Properties.
- Define Interval.
Step One: Open Entrance
Click on the + sign next to the Panel name and you will see all the items which make up that panel including item called "Entrance".
Step Two: Add Entrance
Right Mouse button click on the "Entrance" item and select "Add Entrance". Default entrance name "Entrance" is created.
Step Three: Assign Command
Drag and drop a device command that you would like to keep executing in the background.
Step Four: Select Entrance
You will see the command be a part of the entrance in both the middle pane and the left hand pane of the iRule Builder. Click on the created "Entrance" item.
Step Five: Entrance Properties
On the bottom left hand pane of the builder you will see the properties of your entrance.
Step Six: Repeatable
Click on the drop-down arrow for "repeatable" item and select "YES".
Step Seven: Interval
Once "YES" is selected, "repeat every (sec)" option becomes available with default of 0.2 seconds between repeating the commands of the entrance.
Step Eight: Define Interval
Change it to your desired repeating time segment in seconds and press the Enter key.
Step Nine: Save
Click on the Save icon to save your work. Alternatively, you can click on File than Save or by pressing CTRL+S on the PC