AVEVA PI Vision OMI App User Guide
AVEVA PI Vision OMI App User Guide
aveva.com
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved.
No part of this documentation shall be reproduced, stored in a retrieval system, or transmitted by any means,
electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of AVEVA.
No liability is assumed with respect to the use of the information contained herein.
Although precaution has been taken in the preparation of this documentation, AVEVA assumes no responsibility
for errors or omissions. The information in this documentation is subject to change without notice and does not
represent a commitment on the part of AVEVA. The software described in this documentation is furnished under
a license agreement. This software may be used or copied only in accordance with the terms of such license
agreement.
ArchestrA, Avantis, Citect, DYNSIM, eDNA, EYESIM, InBatch, InduSoft, InStep, IntelaTrac, InTouch, OASyS,
PIPEPHASE, PRiSM, PRO/II, PROVISION, ROMeo, SIM4ME, SimCentral, SimSci, Skelta, SmartGlance, Spiral
Software, WindowMaker, WindowViewer, and Wonderware are trademarks of AVEVA and/or its subsidiaries. An
extensive listing of AVEVA trademarks can be found at: https://sw.aveva.com/legal. All other brands may be
trademarks of their respective owners.
Publication date: Friday, February 4, 2022
Contact Information
AVEVA Group plc
High Cross
Madingley Road
Cambridge
CB3 0HB. UK
https://sw.aveva.com/
For information on how to contact sales and customer training, see https://sw.aveva.com/contact.
For information on how to contact technical support, see https://sw.aveva.com/support.
To access the AVEVA Knowledge and Support center, visit https://softwaresupport.aveva.com.
Contents
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 3
Chapter 6 Upgrade and Migration of the PI Vision OMI App ............................ 35
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 4
Chapter 1
The AVEVA™ PI Vision OMI App enables a PI Vision dashboard or ad hoc display to be shown within a layout
pane of a running ViewApp. Displays can be configured to follow the current navigation context, and thus allow
users to view the status of assets in different locations. In this document, the AVEVA™ PI Vision OMI App is also
referred to as the OMI app to distinguish between the app and the native PI Vision application.
The OMI app incorporates the ease-of-use and fast access for which PI Vision is noted. The OMI app also allows
some of PI Vision's ad hoc visualization capabilities, including trends, meters and charts, to be utilized directly in
an OMI ViewApp. Note that the OMI app includes only a subset of PI Vision's capabilities.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 5
AVEVA™ PI Vision OMI App User Guide
Chapter 1 – AVEVA™ PI Vision OMI App
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 6
AVEVA™ PI Vision OMI App User Guide
Chapter 1 – AVEVA™ PI Vision OMI App
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 7
AVEVA™ PI Vision OMI App User Guide
Chapter 1 – AVEVA™ PI Vision OMI App
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 8
Chapter 2
Preparing the AVEVA PI Vision OMI App to run in an AVEVA ViewApp includes several major workflows that must
be completed by both PI Vision designers and ViewApp builders. The primary focus of this User Guide is to
describe the work done by the ViewApp builder to integrate the PI Vision OMI App into System Platform.
On the PI Vision side, a designer must ensure that the hierarchy of assets matches the System Platform
hierarchy. In addition, when using PI Vision dashboards when the PI Vision OMI App is in context mode,
keywords must be added to ensure that the correct dashboard is selected and displayed by the OMI app at run
time.
Configuring the OMI app requires setting properties for the app in the System Platform Layout Editor. These
properties are described in the following sections.
Note that some validation of property settings is done during configuration. Configuration errors will be
highlighted by a red box around the mis-configured item.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 9
AVEVA™ PI Vision OMI App User Guide
Chapter 2 – Configure the AVEVA PI Vision OMI App
o Freeform Displays: These properties define the parameters for showing a freeform display from a URL.
Ad hoc and dashboard displays must be disabled if a freeform display will be shown.
o Context: This property disables or enables the ability to view the attributes of the currently selected
asset in dashboard and ad hoc displays. If disabled, the app will show only the performance of those
attributes defined by property settings within the dashboard or ad hoc display settings.
Note: Context is not applicable to freeform displays.
o Time Range: These optional properties set start and end times for dashboard or ad hoc displays (not
applicable to freeform displays).
o Appearance: These properties disable/enable toolbars and the Kiosk mode for dashboard and ad hoc
displays (not applicable to freeform displays).
o Browser: This property lets you designate a cascading style sheet to control the appearance of
dashboard and ad hoc displays (not applicable to freeform displays).
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 10
AVEVA™ PI Vision OMI App User Guide
Chapter 2 – Configure the AVEVA PI Vision OMI App
For more information about PI Vision OMI App properties, see PI Vision OMI App Properties on page 12.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 11
AVEVA™ PI Vision OMI App User Guide
Chapter 2 – Configure the AVEVA PI Vision OMI App
View Dashboard Boolean property that enables/disables viewing a saved display from the PIVision
Display server. If True, the Dashboard Id is used to determine which dashboard display to
show at runtime.
Boolean properties for setting display mode (View Dashboard Display, View Ad hoc
Display, View Freeform Display) are mutually exclusive. If this setting is True, the other
display settings must be set to False.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 12
AVEVA™ PI Vision OMI App User Guide
Chapter 2 – Configure the AVEVA PI Vision OMI App
Ad Hoc Displays
View Ad hoc Boolean property that enables/disables the ad hoc display mode. If True, you can
Display specify data items to show in a single temporary trend (ad hoc) display.
Boolean properties for setting display mode (View Dashboard Display, View Ad hoc
Display, View Freeform Display) are mutually exclusive. If this setting is True, the other
display settings must be set to False.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 13
AVEVA™ PI Vision OMI App User Guide
Chapter 2 – Configure the AVEVA PI Vision OMI App
Context Asset Name of the of asset server for the PI system. The app uses this property to connect to
Server the AF server using the currently logged in Windows user credential. Once connected,
it gets attributes automatically from the currently selected asset, when the Follow
Current Context property is enabled.
This is an optional property. If a Context Asset Server is not configured, the PI Vision
OMI App tries connecting to the default AF Server.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 14
AVEVA™ PI Vision OMI App User Guide
Chapter 2 – Configure the AVEVA PI Vision OMI App
Freeform Displays
View Display Boolean property that enables/disables the freeform display mode. If True, the Display
URL URL Parameters property appends to the base URL configured in the Connection
properties, and shows the display called by the complete URL at runtime.
Boolean properties for setting display mode (View Dashboard Display, View Ad hoc
Display, View Freeform Display) are mutually exclusive. If this setting is True, the other
display settings must be set to False.
When freeform display mode is enabled, Display URL Parameters is the only other
property (in addition to Connection properties) that is used for configuring the display
for the given PI Vision webserver and website. All other properties, including Time
Range and Appearance, are ignored.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 15
AVEVA™ PI Vision OMI App User Guide
Chapter 2 – Configure the AVEVA PI Vision OMI App
Time Range
Start Time Specifies the start time of a dashboard or ad hoc display. If this property is not
specified, the start time defaults to the current time at run time.
Note: Start and end times must be used in pairs. OSIsoft recommends using ISO 8601
standards because they are not affected by time zones. Start/End time properties
cannot be used with freeform displays.
Follow Current If enabled, automatically discovers the applicable ad hoc or dashboard display
Context (depending on mode) associated with the asset in the AF server. Context cannot be
used with freeform displays.
Hide Toolbar Boolean value that determines if the display toolbar is shown or hidden. When set to
true, the toolbar is hidden. This property cannot be used with freeform displays.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 16
AVEVA™ PI Vision OMI App User Guide
Chapter 2 – Configure the AVEVA PI Vision OMI App
Hide Timebar Boolean value that determines if the display timebar is shown or hidden. When set to
true, the timebar is hidden. This property cannot be used with freeform displays.
Types of Displays
The PI Vision OMI App lets you choose different types of displays to show in a particular pane during run time:
Dashboard
Ad Hoc
Freeform
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 17
AVEVA™ PI Vision OMI App User Guide
Chapter 2 – Configure the AVEVA PI Vision OMI App
The types are mutually exclusive during configuration. Therefore, only one type can be configured for each
instance of the PI Vision OMI App. If you enable more than one during configuration, an error indication (red
highlight around the misconfiguration), will be shown.
Dashboard Displays on page 18, also called saved displays, show a previously saved display from your PI Vision
server.
Ad Hoc Displays on page 20, also called temporary displays, show attributes from the specified asset server and
asset database, and then plot the items on an ad hoc display.
Freeform Displays on page 21 let you specify a URL within the app during configuration. Freeform displays can
be dashboards displays, comparison displays, or any other valid URL that contains the PI System data that you
want to show at run time. In contrast to the other display types, you have to manually enter all URL parameters,
instead of configuring properties that are then passed to a PI System server.
Contextualized Displays
Both dashboard and ad hoc displays can be configured to to show attributes that belong to the currently
selected asset. This is determined by the Follow Current Context property. When Follow Current Context is
disabled (set to False), the display does not change when you select different assets. When Follow Current
Context is enabled (set to True), the display changes to the context of the selected asset. See Contextualization
on page 23 for more information.
Note: Freeform displays cannot be contextualized.
Dashboard Displays
Dashboard displays are saved displays on the PI Vision server. Each saved display has a unique ID (Display ID)
that can be used to call the display. The Display ID property is used to designate which display to show in the
ViewApp.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 18
AVEVA™ PI Vision OMI App User Guide
Chapter 2 – Configure the AVEVA PI Vision OMI App
View Dashboard Display and and the other view boolean values (View Dashboard Display, View Freeform
Display) are mutually exclusive. Make sure View Ad hoc Display and View Freeform Display are disabled if View
Dashboard Display is enabled.
Each saved PI Vision display (dashboard) has a unique URL, which includes a unique number. The Dashboard ID
property in the OMI app is configured with this number, for example:
https://PIVisionwebserver/PIVision/#/Displays/3117/PowerAnalysis
In this example, you would configure the Display ID property as 3117.
Asset Path is an optional property that you can use to to swap related assets that share the same PI Vision AF
template with an existing dashboard display. Specify the asset by appending the asset to the URL, followed by
the path of the new asset.
The Asset Path property lets you configure an existing display to use other assets that share the same AF
template. To do this:
1. Obtain the paths of the assets you want to use to replace the existing assets on the display. You can find
these paths in PI Vision search results, or in PI System Explorer.
2. Specify the asset path in this property to show in a display.
Path for a data item on a PI AF server: \\AFServerName\DatabaseName\ParentElement\ChildElement
The following screenshot shows a number of saved displays on the PI Vision server.
Note: Dashboard displays can be configured to show the status of different assets as you navigate around your
system, via the Follow Current Context property. See Contextualized Dashboard Displays on page 23 for more
information.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 19
AVEVA™ PI Vision OMI App User Guide
Chapter 2 – Configure the AVEVA PI Vision OMI App
Ad Hoc Displays
To enable ad hoc (temporary) displays within the OMI App for PI Vision, you must set View Ad hoc Display to
True by setting the checkmark.
This setting and the other view boolean values (View Dashboard Display, View Freeform Display) are mutually
exclusive. Make sure the other display types are disabled, and that Dashboard ID is set to 0 when configuring ad
hoc displays.
The Symbol Type property specifies a PIVisionSymbolType that shows each data item of the ad hoc display in a
single trend.
Use the following format to designate data items from an AF Server for display in the PI Vision OMI app:
\\AFServerName\DatabaseName\ParentElement\ChildElement|ChildAttribute
To select an item from a PI Data Archiver server, use the following format:
\\ArchiveServerName\TagName
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 20
AVEVA™ PI Vision OMI App User Guide
Chapter 2 – Configure the AVEVA PI Vision OMI App
Use the full URI of the asset or attribute. For example, to plot all attributes of an asset at run time, provide the
URI of the asset, as shown in following example:
\\AFServer1\pumpcbm\pump station\plant
To specify a particular attribute of an asset to display, append the attribute name to the asset name, using the
pipe symbol as separator between asset name and attribute:
\\AFServer1\pumpcbm\pump station\plant|bearing temperature
To specify multiple attributes, use a semicolon as the separator between attributes. You must provide the full
asset name for each attribute specified, even if all the attributes belong to the same asset.
\\AFServer1\pumpcbm\pump station\plant|bearing temperature; \\AFServer1\pumpcbm\pump
station\plant|pump\flow rate; \\AFServer1\pumpcbm\pump station\plant|pump speed
Note: Ad hoc displays can be configured to show show the status of different assets as you navigate around your
system, via the Follow Current Context property. See Contextualized Ad Hoc Displays on page 25for more
information.
Freeform Displays
To enable freeform displays within the OMI App for PI Vision, you must set View Freeform Display to True by
setting the checkmark.
View Freeform Display and the other view boolean display type values (View Dashboard Display, View Ad Hoc
Display) are mutually exclusive. Make sure the other display types are disabled, and that Dashboard ID is set to 0
when configuring freeform displays.
Freeform displays use the base URL configured for the app by the Web Server and Website parameters, and
then append additional arguments to the base URL through the Display URL Parameters property. To configure
a freeform display, you must enter the Display URL Parameters property with parameters needed. See PI Vision
OMI App Properties on page 12 for details about the Display URL Parameters property.
Other properties that can be configured in the OMI app, such as time and appearance parameters are ignored.
To pass these additional parameters, you must configure them in the Display URL Parameters property.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 21
AVEVA™ PI Vision OMI App User Guide
Chapter 2 – Configure the AVEVA PI Vision OMI App
URL Parameters: You can pass additional URL parameters that are appended to the base URL, via the Display
URL Parameters property. For example, you can pass parameters to show an event comparison display, to
configure the pane appearance via a stylesheet or to hide the toolbar, or to configure a time range.
For an Event Detail display, enter the following Display URL Parameters:
EventDetails?srcdisplayid=23&server=PIVISIONSERVERP&eventid=c80dc366-82e4-11ec-a058-00155d754303
For an Event Comparison display, enter:
EventComparison/24
To hide the toolbar on an Event Display, enter:
EventDetails?server=srcdisplayid=23&server=PIVISIONSERVERP&eventid=c80dc366-82e4-11ec-a058-00155d754
303&hidetoolbar
Time Properties
Dashboard and ad hoc displays allow you to specify start and end times for visualizing your data.
Note: The start/end time properties cannot be directly applied to freeform displays. If you wish to provide a
time interval for a freeform display, you must pass the start and end times through the Display URL Parameters
property.
Start Time: Specifies the start time of the display. If this property is not specified, the start time defaults to the
current time. Start and end times must be used in pairs. OSIsoft recommends using ISO 8601 standards because
they are not affected by time zones.
End Time: Specifies the end time of the display. If this property is not specified, the end time defaults to 8 hours
from the current. Start and end times must be used in pairs.
If no start and end times are specified, the time range of the saved display applies.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 22
AVEVA™ PI Vision OMI App User Guide
Chapter 2 – Configure the AVEVA PI Vision OMI App
Contextualization
Both dashboard displays and ad hoc displays can be contextualized. Contextualization is enabled by setting the
Follow Current Context property to true. With contextualization enabled, data applicable to the
currently-selected asset is shown for both dashboard and ad hoc displays. Your OMI asset hierarchy and
navigation node names must correlate with the structure of your PI Vision AF database for contextualization to
work.
Note: Freeform displays cannot be contextualized.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 23
AVEVA™ PI Vision OMI App User Guide
Chapter 2 – Configure the AVEVA PI Vision OMI App
You can add multiple keywords, using a semicolon as the separator. The PI Vision OMI app then searches for
displays within the PI Vision Asset Framework to find the display that contains the matching keyword as you
navigate to different assets. For example, adding the keyword "Plant" to a display will allow the OMI app to
find the display that is applicable when the currently-selected asset is named "Plant."
If more than one dashboard display contains the same keyword, the PI Vision OMI app will use the first
display that was saved with the keyword.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 24
AVEVA™ PI Vision OMI App User Guide
Chapter 2 – Configure the AVEVA PI Vision OMI App
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 25
AVEVA™ PI Vision OMI App User Guide
Chapter 2 – Configure the AVEVA PI Vision OMI App
If a matching asset is not found in the AF server, no data is shown and a message is provided in the System
Platform logger.
If the Data Items property is configured, those data items are shown together with the context-driven
attributes. The Data Items property can include data items from multiple databases from either the same AF
server or a different AF server.
The connection to the Context Asset Server uses the Windows credential of the currently logged-in user.
To contextualize Ad Hoc Displays
1. Enable the Follow Current Context property. When Follow Current Context is enabled, you can provide
entries for the following properties:
o Context Asset Server. This property specifies an asset server in your PI system that will be used to get
the current context. If you do not enter the server name, the PI Vision OMI app will try to connect to the
default asset server. The PI Vision OMI app will use the credentials of the currently logged-in Windows
user to connect to the asset server.
o Context Asset Database: This property names the asset database to retrieve from the specified Context
Asset Server, and is used to get the attributes from the currently-selected asset. If a database is not
specified, the PI Vision OMI app will attempt to discover the selected asset from the default database of
Context Asset Server (if specified). If the Context Asset Server is not specified, it will make the attempt
from the default asset server.
2. Set the Max Context Data Items to Show parameter to the number of data items that should be shown
from the selected asset. We recommend that you show no more than 10 to ensure good performance.
The Follow Current Context property will auto-discover the given number of attributes for the selected
asset. The attributes of the selected asset are retrieved from the PI Vision AF server and shown in the
selected type of symbol at run time. If there is no matching asset found in the AF server, no data is shown,
and a message is sent to the System Platform logger.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 26
AVEVA™ PI Vision OMI App User Guide
Chapter 2 – Configure the AVEVA PI Vision OMI App
In addition to contextual data items, you can show data items for other assets, regardless of the the current
context. These additional data items do not impact the Max Context Data Items to Show property, and do not
change as the context changes.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 27
AVEVA™ PI Vision OMI App User Guide
Chapter 2 – Configure the AVEVA PI Vision OMI App
Scripting Methods
The PI Vision OMI App includes the Refresh() scripting method for layout scripts.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 28
AVEVA™ PI Vision OMI App User Guide
Chapter 2 – Configure the AVEVA PI Vision OMI App
Event Scripting
The following event is exposed for scripting:
PIVisionLoaded: This notifies the app that display has finished loading.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 29
Chapter 3
The properties listed in the PI Vision OMI App property grid are validated during design time to ensure proper
configuration.
For most of the properties, design time validation occurs only when the property value is modified in the
property grid. If the property is not modified in the property grid, validation will occur when the ViewApp is
deployed to run time. Values entered for properties are checked, and if the required minimum configuration is
not met, an visual cue indicating the error is shown in the app, and details of the error are sent to the System
Platform Logger.
The following is a summary of property validation.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 30
AVEVA™ PI Vision OMI App User Guide
Chapter 3 – PI Vision OMI App Property Validation
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 31
Chapter 4
The applicable SSL certificate must be installed on the run time node that is running the PI Vision OMI App. See
SSL Certificate for Run-Time Nodes on page 7 for more information.
If an invalid app property value is detected when the ViewApp containing the PI Vision OMI App starts, an error
icon appears in the pane containing the app. The ViewApp continues running, but the pane containing the app
will show only the error icon.
One or more error messages appear in the System Management Console logger with descriptions of any
problems.
SSL Exceptions
If an SSL certificate is not configured, using the PI Vision OMI App for Dashboard displays in context mode will
fail and result into SSL Exception.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 32
Chapter 5
Troubleshooting
The PI Vision OMI App utilizes the following custom log flags within the AVEVA Log Flag Editor, to facilitate
troubleshooting:
AFSDK
Context
DashboardIDRetrieval
PIVisionAPP
PIVisionPropertySet
URL
Of the custom flags applicable to the PI Vision OMI App, URL is the most significant, and can be used to
troubleshoot issues related to display loading. When enabled, this flag shows the URL that will be formed, based
on the configuration that was set in the app.
As the PI Vision OMI App is essentially a wrapper around the PI Vision product, this URL flag can be used to
expose and diagnose the display issue that you may be seeing in the PI Vision OMI App.
To identify if the issue is on the OMI side or PI Vision side, copy the URL, as shown in the System Platform logger
view, and paste it in your standard browser. The behavior of the PI Vision display in the browser with the given
URL parameters/values should match the behavior seen in the OMI app, if the issue is on the PI Vision side.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 33
AVEVA™ PI Vision OMI App User Guide
Chapter 5 – Troubleshooting
If the problem is identified on the PI Vision side, we recommend that you contact Osisoft – PI vision customer
support. Once the problem is fixed in PI Vision, the PI vision OMI App for will start working and displaying the
expected behavior.
Although many URL parameters can be changed while the application is running, PI Vision does not officially
support URL parameters as a run-time setting. This means that the parameters are intended to be used in the
URL that opens the application, but not to modify the running application. To the end user, this means that
some parameter changes will require either a browser refresh or to reload the app in a new tab.
Having said that, many parameters will work correctly at run-time. If you encounter a parameter that is not
working the way you think it should, and it is causing an issue at run time, use the custom flag URL to verify if
the same behavior is also seen in the standard browser. Based on the results, you may need to contact customer
support or upgrade your PI Vision application server.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 34
Chapter 6
The PI Vision OMI App can be downloaded from AVEVA product website and then imported into AVEVA System
Platform 2020 R2 SP1. The AVEVA PI Vision OMI App Readme includes instructions for importing the app into
System Platform 2020 R2 SP1.
The PI Vision OMI App is targeted for System Platform 2020 R2 SP1.
The PI Vision OMI App can be migrated to subsequent versions of System Platform as they become
available.
Users can export the PI Vision OMI App to an .aaPKG file and then import the aaPKG file into a future release
of System Platform.
© 2022 AVEVA Group plc and its subsidiaries. All rights reserved. Page 35