Now we need to instruct our channel to run the MATLAB code periodically so we can continuously gather data. To do this, navigate to Apps tab, and under the "Actions" section, click on TimeControl. Click on the "New TimeControl" button and fill out the following information:
Name: Todoist Update
Every: 5 minutes
Action: MATLAB Analysis
Code to execute: Todoist
Then click on the "Save TimeControl" button. This TimeControl instructs the MATLAB code to run every 5 minutes, check Todoist.com for any overdue tasks, which returns a "0" if there aren't any overdue tasks, and a "1" if there are any overdue tasks. This information is then plotted to a graph under the "Task Overdue" channel where we can see a graph of our data as it updates.