Jump to content
  • Adding Tag Descriptions to Data Retrieved with the Spotfire® Custom Data Source for OSIsoft PI


    Introduction

    By default, Tag descriptions can be retrieved using the Tag List data source:

    taglistdata1.thumb.png.c667ed7cd83516134031c97e3d52fb48.png taglistdata2.png.1b66c6eae0d41352ed27c66655829cc5.png

    however, the descriptor field is not retrieved by the Tag Data data source:

    tagdata1.thumb.png.344b727bed556efd2f526f5bb8651780.png tagdata2.thumb.png.09fb41b17217ec76fe02629527dafdcb.png

    Fortunately, in Spotfire®, it is possible combine these two tables to quickly achieve the desired result. 


    Step #1 : Get the Tag Data

    For this example we will keep it simple and use two tags from the PI demo set SINUSOID and SINUSOIDU.

    From the File menu, select Open From --> OSIsoft PI Server Tag Data and populate the dialog with the required settings.  In our case we pick the two tags SINUSOID and SINUSOIDU and retrieve 24 hours of Actual Values:

    tagdata1_0.thumb.png.1defb8f2ca9ea5048a8888cc676e0e49.png

    Spotfire will read the data and create a table visualization:

    tagdata2_0.thumb.png.1517e1a751c46c8b185e598545ce13cd.png


    Step #2 : Add the Tag Descriptions

    The next step is to add the Tag List data to the dxp file. From the File Menu, select Add Data Tables... and in the dropdown list, select OSIsoft PI Server Tag List:

    taglistdata3.png.92b4a7e7a0aac6738b1af68905153eba.png

    set the filter to bring back the tags that you need, in our case we use "sin*":

    taglistdata1_0.thumb.png.631bdfcfafd8c53faf89aabb1c48513d.png

    Click OK twice, and Spotfire will read the data and create a table visualization:


    Step #2a : Add the Description to the Tag Data

    To do this, we insert the column from the Tag Details table into the Tag Data table using a Left Join. Switch back to the page displaying the Tag Data and click on Insert --> Columns... The Insert Columns Dialog will open. Use the Select dropdown to add columns from the Tag List table:

    taglistdata2_0.png.57fca237c6a1e10dcf3555bd8cc12b51.png

    Click Next and choose to Match Columns on the "Tag Data" column:

    addcolumns2.png.aab59352b928dc210c7708e8d2e16b14.png

    Click Next and select the "Descriptor" column to add with a "Left outer" join method:

    addcolumns3.png.1b313d306925c3c3cfeb413237320a4a.png

    Click "Finish" to add the new column.  With the default Table Visualization settings, the new column will not automatically be visible.  That is the last step.


    Step #3 : Update the Table Visualization

    Click on the settings for the Table Visualization and go to the Columns page.  Select the Descriptor column and click "Add >" to add it to the Selected Columns list:

    updatetable1.png.fa34d9ac4bc0f192456e4f95d9e6ef7a.png updatetable2.png.0bfe6ee3f074a159e05b4eb224161184.png

    The Descriptor column will now appear in the Table Visualization

    updatetable3.thumb.png.7a6205bc97c439d39d1d6fb38e50e5da.png


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...