Time-based triggers are useful when there is a need to repeat an action within a step at regular intervals of time.  

A time-based trigger is a Step Trigger, which means that they can only be accessed on triggers associated with a step (and not a button).  Time based triggers increment a counter at regular intervals or trigger an IoT device such as a pick-to-light which lights different bins over time within a step.

The following guide will help you create a time-based trigger on Tulip:

1- Ensure that you are on the desired Step where you want to add the trigger.

2- Add the trigger by clicking on the plus icon next to Triggers in the Context Pane. 

3- Name the trigger by filling out the title at the top of the Trigger Editor that opens.

Set the Event:

  • Select timer fires in the drop-down menu
  • Select the time interval at which an action is to be triggered in the second drop-down menu. Eg. every 30 seconds.

Set an Action:

  • Click the "Add New Action" button on the right side of the window in the Then section.
  • Select the desired action you want to execute.  In this example, the aim to create a counter that increments by 5 every second.  So, select Data Manipulation in the drop-down menu.
  • Select "Increment Value" in the second drop-down menu
  • Select "counter" in the following drop-down, which is the variable you will be modifying
  • Select "Static Value", integer and 5 in the drop-down menus associated with "by"
  • "Save" the trigger once you are done

In order to view the value of the variable that is being changed in this example, add the variable counter to the Step as shown and run the app in the Tulip Player. 

If you have any questions about the role of variables in your Tulip app, we recommend checking out, "What are Variables and How to Use Them".

Did this answer your question?