Introduction
By default, Tag descriptions can be retrieved using the Tag List data source:
however, the descriptor field is not retrieved by the Tag Data data source:
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:
Spotfire will read the data and create a table visualization:
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:
set the filter to bring back the tags that you need, in our case we use "sin*":
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:
Click Next and choose to Match Columns on the "Tag Data" column:
Click Next and select the "Descriptor" column to add with a "Left outer" join method:
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:
The Descriptor column will now appear in the Table Visualization
Recommended Comments
There are no comments to display.