Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI Builder (PI Server 2024 R2)

Edit the reactor template

  • Last UpdatedDec 13, 2024
  • 2 minute read

Before you edit the reactor template, you need to Create the reactor templates.

You can use PI Builder to edit previously created templates. Follow this procedure to edit the reactor template that you created in a previous exercise. You will edit the template to add new attribute templates, including child attribute templates.

  1. Open a new Microsoft Excel worksheet and click the PI Builder tab.

  2. In the Connections group, open the database in which you created the reactor template:

    1. From the AF Server list, select the PI AF server that stores the database.

    2. From the Database list, select the database.

  3. Retrieve the reactor template:

    1. Click Library > Templates > Find Templates to open the Template Selection window.

    2. In the table of templates, select Reactor Template and click OK.

    3. In the Select Object Types and Column Headers window, click Clear All.

    4. From the Attribute Template group, select the Type check box.

    5. Click OK.

      PI Builder retrieves the template from PI AF and writes the data in the selected columns in your worksheet. The Retrieve Selected Objects window shows the operations completed.

    6. Click Close.

      The worksheet should look like this:

      An example of how the worksheet should look after retrieving the attribute template

      Note: If you don't have a reactor template, then create the worksheet illustrated above and publish it to PI AF.

  4. Create the new attribute templates:

    1. Copy the third row and paste it into the next three rows.

    2. In row four, specify a manufacturer attribute:

      Column

      Value

      Name

      Manufacturer

      AttributeType

      String

    3. In row five, specify a serial-number attribute, which is a child attribute of the manufacturer attribute:

      Column

      Value

      Name

      Manufacturer | Serial Number

      AttributeType

      String

      Note: Because this is an attribute, the Parent column still must specify Reactor Template. An attribute-relative path in the name indicates the hierarchy.

    4. In row six, specify a maintenance-date attribute, also a child attribute of the manufacturer attribute:

      Column

      Value

      Name

      Manufacturer | Last Maintained

      AttributeType

      DateTime

      The worksheet should look like this:

      An example of how the worksheet should look after adding the values to the attribute template

  5. Publish the modified template:

    1. Click Publish to open the Publish Options window.

    2. From the Edit Mode list, select Create and Edit.

    3. Click OK.

      PI Builder creates the templates in the database. The Publish Selected Objects window shows the operations completed. PI Builder automatically checks in the changes.

    4. Click Close.

      You can view the templates in PI System Explorer. If PI System Explorer is already open, click Refresh to see the changes.

TitleResults for “How to create a CRG?”Also Available in