cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Enhanced Engine Failure Visualization Part 1

No ratings

 

Enhance your Engine Failure-Prediction GUI.

 

 

GUIDE CONCEPT

 

This guide will use ThingWorx Foundation’s Mashup Builder to create a more advanced Graphical User Interface (GUI) than the one we originally created to display results from Analytics Manager’s engine-failure predictions.

 

Following the steps in this guide, you will learn how to utilize Widgets and backend data to more completely visualize customer failure conditions.

 

IoTProductMgmt_0-1667585843104.png

 

 

YOU'LL LEARN HOW TO

 

  • Create a Mashup with a Header
  • Divide your Mashup into Sub-sections
  • Use a Contained Mashup to reuse development
  • Store historical data in a Value Steam
  • Display historical data in a Time Series Chart
  • Show spreadsheet data via a Grid Widget
  • Tie Mashup controls into the ThingWorx backend

 

NOTE: The estimated time to complete all parts of this guide is 60 minutes.

 

 

Step 1: Scenario

 

In this guide, we’re taking our previous MotorCo Minimum Viable Product (MVP) Mashup and expanding it.

 

Our original Mashup showed the results from ThingWorx Analytics as it determined whether or not a low-grease condition was currently present.

 

The goal of this guide is to create an Enhanced GUI to visualize those predicted “low grease” conditions in a more complete manner.

 

IoTProductMgmt_1-1667585962360.jpeg

 

GUI-creation to visualize analytical model deployment can be extremely helpful for the automative segment in particular. For instance, each car that comes off the factory line could have an EMS constantly sending data from which an analytical model could automatically detect engine trouble.

 

This could enable your company to offer an engine monitoring subscription service to your customers.

 

This guide will show you how to visualize the results of an engine analytic model for a smart, connected products play.

 

 

Step 2: Create Mashup

 

Just like in the last guide, we're now going to create a Mashup to visualize ThingWorx Analytics results.

 

This one is simply going to be more complicated to include additional functionality.

 

But before we can start designing our GUI, we must first instantiate a Mashup onto which we can place our Widgets.

 

    1. In ThingWorx Foundation, click Browse > Visualization > Mashups.

 

IoTProductMgmt_3-1667586146005.png

 

    2. Click + New.


IoTProductMgmt_4-1667586146006.png

 

    3. On the New Mashup pop-up under Responsive Templates, click Header Only.


IoTProductMgmt_5-1667586146011.png

 

    4. Click OK.


IoTProductMgmt_6-1667586146012.png

 

    5. In the Name field, type EEFV_Mashup.


IoTProductMgmt_7-1667586146014.png

 

    6. If Project is not already set, search for and select PTCDefaultProject.

 

    7. At the top, click Save.


IoTProductMgmt_8-1667586146015.png

 

    8. At the top, click Design.


IoTProductMgmt_9-1667586146017.png

 

 

 

 

Step 3: Set Layout

 

Now that we’re in Mashup Builder, you can see the separate top-section of the central Canvas area created by our selection of “Header Only” on the New Mashup pop-up.

 

Unlike the original Mashup where we used Static Positioning, most of this Mashup will continue to use Responsive so that it can grow and shrink as resolution changes on various viewing devices.

 

To add multiple Responsive Widgets to a Responsive Positioning Mashup, though, you need to create some additional sub-sections. We’ll do so now.

 

    1. In the top-left of Mashup Builder, click the Layout tab.


IoTProductMgmt_0-1667591360941.png

 

    2. Click the main, bottom section of the Canvas, i.e. the non-header section, to select it.


IoTProductMgmt_1-1667591360945.png

 

    3. On the Layout tab, click Add Top.


IoTProductMgmt_2-1667591360947.png

 

    4. With the top-half of the original bottom section still selected, click Add Left.


IoTProductMgmt_3-1667591360949.png

 

    5. Click in the bottom section to select the bottom-half of the original container.


IoTProductMgmt_4-1667591360952.png

 

    6. Click Add Left.


IoTProductMgmt_5-1667591360954.png

 

    7. At the top, click Save

 

IoTProductMgmt_6-1667591360955.png

 

You now have a Responsive Positioning Mashup with five (5) sub-sections, i.e. :

 

  1. Header
  2. Top-left
  3. Top-Right
  4. Bottom-left
  5. Bottom-right

 

 

 

Step 4: Adjust Header

 

 In this step, we'll outfit the Header sub-section with a company name and logo.

 

    1. Select the top Header section and ensure that you're still on the Layout tab in the top-left.

 

IoTProductMgmt_0-1667592212764.png

 

    2. Change the Positioning to Static.


IoTProductMgmt_1-1667592212767.png

 

    3. In the top-left, select the Widgets tab.


IoTProductMgmt_2-1667592212768.png

 

    4. Drag-and-drop an Image Widget onto the Header section.


IoTProductMgmt_3-1667592212770.png

 

    5. Expand the size of the Image Widget by dragging the corners.


IoTProductMgmt_4-1667592212771.png

 

    6. Drag-and-drop a Label Widget onto the Header section.


IoTProductMgmt_5-1667592212772.png

 

    7. Expand the size of the Label Widget.


IoTProductMgmt_6-1667592212774.png

 

    8. With the Label Widget still selected, change the LabelText Property (in the bottom-left) to MotorCo, and hit the keyboard Tab key to lock-in your modification.

 

IoTProductMgmt_7-1667592212775.png

 

    9. In the bottom-left, change to the Style Properties tab.


IoTProductMgmt_8-1667592212777.png

 

    10. Expand Base > Label, and change font-size to 72px.


IoTProductMgmt_9-1667592212780.png

 

    11. At the top, click Save.

 

Upload Media Image

 

We want to set the earlier Image Widget to the company logo.

 

To do so, we need to upload it to Foundation by creating a Media Entity.

 

    1. Click Browse > Visualization > Media.


IoTProductMgmt_10-1667592212782.png

 

    2. Click + New.


IoTProductMgmt_11-1667592212782.png

 

    3. In the Name field, type EEFV_Logo.


IoTProductMgmt_12-1667592212783.png

 

    4. If Project is not already set, search for and select PTCDefaultProject.

 

    5. Right-click and "Save as" to download motorco-logo.jpg.

 

    6. Under Image, click Change.

 

    7. Navigate to and select the motorco-logo.jpg file you just downloaded.


IoTProductMgmt_13-1667592212784.png

 

    8. Click Open.

 

    9. At the top, click Save.


IoTProductMgmt_14-1667592212788.png

 

Change Image to Logo

 

Now that we have the company logo stored within ThingWorx, we can update the Image Widget to reference it.

 

    1. Return to EEFV_Mashup.

 

    2. Click the Image Widget to select it, and ensure that the bottom-left Properties tab is active.

 

IoTProductMgmt_15-1667592212790.png

 

    3. Scroll down in the Properties until you find SourceURL.

 

IoTProductMgmt_16-1667592212791.png

 

    4. In the Search Media field, type eefv.

 

IoTProductMgmt_17-1667592212794.png

 

    5. Select EEFV_Logo.

 

IoTProductMgmt_18-1667592212799.png

 

    6. Click Save.

 

 

Change Background Color

 

Finally, we want to change the background color of the Header.

 

    1. In the top-left, select the Explorer tab.

  • Note that the Explorer tab may be in the top-left drop-down if you're using a lower-resolution screen.

 

IoTProductMgmt_19-1667592212804.png

 

    2. Select the Header itself.

 

IoTProductMgmt_20-1667592212807.png

 

    3. In the bottom-left, select the Style Properties tab and expand Base > Container.

 

IoTProductMgmt_21-1667592212812.png

 

    4. Beside background, click the white square to open a color-selector.

 

    5. Select a color you desire.

 

IoTProductMgmt_22-1667592212815.png

 

    6. Click Select.

 

IoTProductMgmt_23-1667592212820.png

 

    7. Click Save.

 

 

Click here to view Part 2 of this guide.

Version history
Last update:
‎Mar 07, 2023 02:03 PM
Updated by:
Labels (2)
Contributors