Creating TGML graphic pop-ups
You can add a pop-up to a TGML graphic. When a user clicks on a device in a TGML graphics page that has a configured pop-up, a pop-up is displayed. This topic lists the steps to add a pop-up to a device, and includes an example to illustrate how to create a TGML graphic pop-up.
To create a TGML graphic pop-up:
- Open the Graphics Editor: Go to Start > Power Monitoring Expert > Graphics Editor.
- Go to File > New > Graphic.
- Design the graphics based on the PME user requirement.
NOTE: Newly created TGML graphic pop-ups can be used for all the devices. When the user clicks on a breaker in the PME Web Applications, the pop-up displays the same for all the components, but the values will be different based on the breaker.
Example
The following steps demonstrate how to create a rectangle box and bind it:
- From the top menu bar click Rectangle, draw on the workspace, and then click the Objects tab.
- Go to the TGML, right-click on Rectangle, click New, and then select Bind.
- Click Bind > press F2 or go to the Properties pane, and then set the value of Format to Presentation and Attribute to Stroke.
- Right-click on Bind, click New, and then select ConvertText.
- Click ConvertText > press F2 or go to the Properties pane, select the appropriate stroke color, and then set SignalEqualTo to
FALSE
. -
Go to the Bindings tab, select the appropriate device measurements, and then copy the value.
- Go to the Objects tab, select Bind, and then paste the copied value.
- Save the TGML file.
- Log in to the PME Web Applications.
- Click on the created TGML file in the Diagram Library menu.
The following screen is displayed:
NOTE:
To configure other signal values, repeat step 5. For example: TRUE
or DISCONNECTED
.
NOTE: If the bind name is used without component, rename the bind to: Device Name$$Measurement Name$$Handle Number
. Device Name$$Measurement Name
.
Rendering error conditions in pop-up using presentation value
In the bind properties, the Presentation values are Format = Presentation, Attribute = Content:
The following table explains the error rendering with the respective place holder that appears in the output Pop-Up as shown in the previous image:
Comm Loss |
![]() |
NA Value | -INF |
Quality is good | Show Value returned by API |
PME not running | Default Comm Loss |
Unknown |
![]() |
For example, when PME is shut down, the default comm loss is shown below: