One of the best ways to engage users with the Tulip platform is to provide them with the analytical feedback of what's being measured.  

In these instances, it is useful to be able to embed analyses into your app, which allows the user to see the analytics without turning their head to a dashboard. 

Or, you can create an interactive shop floor dashboard app that can be used on a shop floor or a mobile phone.

Embedding an Analysis In An App

In order to embed an Analysis within a step of your app, follow these steps:

1- Select Embed from the Toolbar and Analysis from the resulting dropdown list. This will create an empty embedded analysis Widget.

2- Select the Analysis Widget to choose the analysis to embed.  You can either choose to create a new analysis or select an analysis that has already been created.

In the Context Pane of the Analysis Widget, you can change the size and background color of the analysis just like any other widget. Additionally, you can customize the title of the analysis and toggle the display of the Last Updated time for each chart. 


Dynamic Filtering the Embedded Analysis

Once you select an Analysis, you can add dynamic filters.

This means that you can change the data being shown in the analysis based on a variable, table record, machine output and more.

Dynamic Analyses support the following data types:

  • Text
  • Number
  • Integer
  • Boolean
  • Interval
  • Datetime
  • User
  • Station
  • Machine

These will manipulate the "Filters" section from the bottom of the Context Pane in the Analytics Builder.

Setup

In the Context Pane, select the pencil next to the Filters option.

Then, begin adding filters. These will change the data shown in the analysis every time the app is run.

Example: Current Operator Stats

Operators may only need to see their own performance. In this case, the Analysis can be set to filter to only the logged in user.

  • "User" "Equals" "Variable" "Logged In User"

App Analysis Filters

  • User
  • Station
  • Start Time
  • Date
  • Date and Time
  • Shift Duration
  • Hour of Day
  • Process Cycle Time
  • All form inputs in that app
  • All variables in that app

Table Analysis Filters

  • All Fields for that Table

Machine Analysis Filters

  • Machine
  • Start Time
  • End Time
  • Duration
  • Program
  • Part Count
  • Defect Count
  • Parts Per Hour
  • Uptime Duration
  • Downtime Duration

Technical Details

Note: Analytics are set to refresh every 60 seconds by default. When embedding in an App you may choose to reduce this duration so you can see changes as they happen.

To reduce the duration, edit the analysis and change the Refresh Seconds under the Sharing menu. This can be changed to a minimum of 5 seconds.

Further Reading

Did this answer your question?