Retrieve and configure Historian tag attributes

This procedure describes how to read from and configure attributes for a tag on an Historian server.

Procedure

  1. Add a workflow that will be used to configure the attributes of an Historian tag.
  2. In the navigator, click Workflow > Workflows.
  3. In the Workflows list, select the resource you want to work with.
  4. In the Displays panel, click Workflow Management > Workflow Editor.
  5. Click the Workflow Editor tab.
  6. Insert an activity:
    • At the workflow level:
      • From the Standard Activities panel, click and drag the activity you want to insert to a drop point.
        Note: Activities can exist only between the presubprocess and postsubprocess.
    • At the subprocess level:
      • Double-click the local subprocess you want to add the activity to.
      • From the Standard Activities panel, click and drag the activity you want to insert to a drop point.
  7. On the activity configuration panel, click Configure Method.
    The Configure Method dialog box appears, displaying a list of the available call method service providers.
  8. Double-click IProficyHistorian to display the list of available call methods.
  9. Click GetTagAttributes, and then click Finish.
  10. Configure the call method as follows:
    1. In the Historian Address field, click the ellipsis button, and then select the Historian server with the tag whose attributes you want to retrieve.
    2. In the Tag Name field, enter the name of the Historian tag whose attributes you want to retrieve.
  11. For each tag attribute you want to change, insert a Write activity into the workflow, after the call method, and then configure it as follows:
    1. On the activity configuration panel, click the ellipsis button.
      The Select Variable dialog box appears.
    2. Expand the call method you created in step 9 and, then select the Return Value.
    3. Click OK.
    4. On the activity configuration panel, enter a value for the attribute or bind the value to another attribute.
  12. Repeat steps 7 through 11.
  13. Click SetTagAttributes, and then click Finish.
  14. Configure the call method as follows:
    1. In the Historian Address field, click the ellipsis button, and then select the same Historian server you selected in step 10a.
    2. In the Tag Attributes field, click the arrow, and then select Bind.
      The Select Variable dialog box appears.
    3. Expand the call method you created in step 9, and then select the Return Value output parameter.
    4. In the Tag Name field, enter the name of the same Historian tag you specified in step 10b.
    5. Click OK.
  15. Click Save.
  16. Run the workflow, or, on the Test/Debug tab, test the workflow to ensure that your input parameters are configured correctly.