Pablo Benvenuto

Learning Lab - Building AF Displays Part 2

Discussion created by Pablo Benvenuto Champion on Aug 24, 2012
This is the Building AF Displays Part 2 Learning Lab, if you did not read the first half, you can find it here: Part 1.

Add AF elements

You can now right click and cut or click on Edit > Undo to delete the symbol you just added. Drag and drop from the "AF Browser" window the two tanks based on the "Tank_Alpha" template on the screen. In the Tank Farm database these are Tank_FGT657 and Tank_FGT658. Notice that the tanks are showing up with the "Tank 24" symbol. By default, the name of the element will also be displayed.

pic12.png

Click on Tools > Modeler Preferences, and under the Attributes tab, check the Create name label for attribute option and select the Left position from the drop down menu. Click OK.

Select tank FGT657 and in the AF Property window, click on the Attributes tab. You can now select and drag the material, density, mass and volume attributes for the tanks. Drop these attributes to the left of tank FGT657. Notice that the attribute label is attached to the value so moving the value in the display will make the label follow along.

You can change the displayed units for the volume attribute. Double click the value symbol and select the AF data source. Change the units of measure to kiloliter.

pic13.png

Add dynamic elements

You can now add a bar graph symbol on the right side of the tank to display the tank’s level. Click on Draw > Bar. Now draw a rectangle by dragging your mouse to the right of tank FGT657. When the define bar dialog window opens, select AF2 from the Tag Search... drop down menu. Select the element Tank_FGT657, the attribute MeterLevel and the units of measure percent. You can now add the MeterLevel attribute on the right side of the bar graph and move the attribute label on top of the value.

pic14.png

With all the desired attributes on the display you are ready to promote the Tank_FGT657 element to the composite level and assign the composite symbol to the Tank_Alpha template. Select the tank symbol, the bar graph symbol, all attributes and labels (except the name label) around the Tank_FGT657 element. Click on Arrange > Group, and click Yes when asked to promote the element to the composite level.

Now right click the composite element and assign it to the Tank_Alpha template. Select Yes on the overwrite confirmation message and notice the other element based on the Tank_Alpha template being updated with the new composite symbol associated to the template.

Using one of the two tanks on the display, assign the same composite element to the other two tank templates, Tank_Bravo and Tank_Charlie, and drag and drop the two other tanks in the display (Tank_ERY623 and Tank_KLR231).

You can change the tank symbol of the tanks using the Tank_Bravo template to the "Tank15" symbol from the symbol library. Select the composite element containing the Tank_KLR231 element. Click on Arrange > Ungroup. Double click the Tank24 symbol to change the symbol. Select Tank15 from the Symbol Library. Click on Arrange > Regroup. Assign the composite symbol to the Tank_Bravo template and select Yes on the overwrite confirmation message.

Repeat the previous steps to change the tank symbol for the tanks using the Tank_Charlie template to the "Mix Tank" symbol in the library.

You can now save the changes to the AF database. Click on File > AF Check In.  Now you have an AF display that you can use to monitor the four tanks in the configuration.

Check out the OSIsoft Virtual Learning Environment and see what other Learning Labs are available for you to gets hands on experience with the PI System.

Outcomes