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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Use the EMS to Create an Engine Simulator Part 3

No ratings

 

 

Step 5: Create InfoTable

 

Now that we have connected values coming from our EMS engine simulator, we want a method of permanent storage whenever we feel it's appropriate to take a sample.

 

From repeated sampling, we'll be able to build up a historical record usable for both manual inspection, as well as automatic analysis via ThingWorx Analytics (though ThingWorx Analytics is beyond the scope of this guide).

 

To hold these records, we'll use an Info Table Property.

 

But any time that you create an Info Table, you first need a Data Shape to format the columns.

 

  1. Click Browse > MODELING > Data Shapes.
     

    05-elps-datashapes.png

     

  2. At the top-left, click + New.

    06-elps-new-datashape.png

     

  3. In the Name field, type esimDataShape.
     

    07-elps-datashape-name.png

     

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

  5. At the top, click Field Definitions.
     

    08-elps-field-defs.png

     

We now want to add a separate Field Definition for each entry of our engine simulator data, i.e. low_grease, s1_fb1 through s1_fb5, and s2_fb1 through s2_fb5.

 

In addition, we'll add an additional field named identifier which simply keeps a rolling count of the current log entry number.

 

  1. Click + Add.
     


    30-esim-add-definition.png

     

  2. In the Name field on the right slide-out, type identifier

  3. Change the Base Type to NUMBER.

  4. Check Is Primary Key


    31-esim-identifier.png

     

  5. At the top-right, click the "Check with a +" button for Done and Add.

    32-esim-done-add.png

     

     
  6. Repeatedly add additional definitions as per the chart below:

    Note that you will NOT check the "Is Primary Key" box, as you only need one, i.e. identifier.

    NameBase type
    low_greaseNUMBER
    s1_fb1NUMBER
    s1_fb2NUMBER
    s1_fb3NUMBER
    s1_fb4NUMBER
    s1_fb5NUMBER
    s2_fb1NUMBER
    s2_fb2NUMBER
    s2_fb3NUMBER
    s2_fb4NUMBER
  7. Create one additional entry for s2_fb5 and NUMBER, but click the "Check" button for DONE.

  8. At the top, click Save.


    09-elps-datashape-save.png

     

 

Create Info Table

 

Now that we have a Data Shape we can add an Info Table Property to EdgeThing.

  1. Return to the Properties and Alerts tab of EdgeThing.

    10-elps-edgething-props.png

     

  2. At the top-left, click + Add.

    24-esim-property-add.png

     

  3. In the Name field of the slide-out on the right, type infoTableProperty.


    25-esim-infotableproperty-name.png

     

  4. Change the Base Type to INFOTABLE.


    34-esim-base-type-infotable.png

     

  5. In the new Data Shape field, search for and select esimDataShape.

    35-esim-select-datashape.png

     

  6. Check the Persistent checkbox.


    37-esim-infotable-persistent.png

     

  7. At the top-right, click the "Check" button for Done.

  8. At the top, click Save.


    11-elps-edgething-saved.png

     

 

Click here for Part 4 of this guide.

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