Documentation PI Nexus+ Documentation

PI Nexus+ / Administration Guide

PI Vision Instances

This chapter adds a PI Vision instance so PI Nexus+ can inventory its displays and show which displays use a PI Point, AF attribute or analysis. Skip it if you do not use PI Vision.

Overview

This chapter adds a PI Vision instance so PI Nexus+ can inventory its displays and show which displays use a PI Point, AF attribute or analysis. Skip it if you do not use PI Vision.

Before you start

PI Nexus+ reads displays from the PI Vision SQL database, not from the web server. Create a SQL Server login for the PI Nexus+ service account, or map a group it belongs to, and grant it db_datareader on each PI Vision database.

Add an instance

Edit dialog of a PI Vision instance with its connection, the unused display check and the datasource health levels
  1. Open Admin > PI Vision Instances and choose Add Instance.
  2. Enter a Name, for example PI Vision Production, and the URL of PI Vision. It must end in /PIVision, for example https://pivis01.example.com/PIVision.
  3. Enter the SQL Server and Database of PI Vision; both are required. Choose the Site once two sites exist.
  4. For a load-balanced farm, enter the farm's other web servers under Other Web Servers, one /PIVision URL per line. The URL above opens displays; the other web servers are only monitored as hosts.
  5. Leave Unused display check on to mark displays not opened for Unused After Days (365 by default).
  6. Under Datasource Health Levels, choose how missing, error and warning datasources affect a display's health.
  7. Choose Test. It checks the URL format and reads the SQL database; it does not contact the web server.
  8. Choose Save Instance. Enabled for scanning is ticked by default; clear it to save the instance without scanning it.

An instance is one PI Vision database: every web server of a farm reads the same database, so they belong to one instance. Saving a second instance for a database that another instance already reads is refused. When an upgraded installation already has two instances for one database, the page names them; keep one, add the other's URL to its Other Web Servers, and Remove the other.

Keep Missing Datasource at Error where displays are operationally important, or set it to Warning where PI Vision is mainly used for ad hoc views. Remove in the row menu deletes the instance together with its display inventory. Users work with displays as described in PI Vision Displays in the User Guide.

Troubleshooting

SymptomCauseFix
"PI Vision URL must end with /PIVision"The URL points to the server or a displayEnter the PI Vision application URL ending in /PIVision
Test fails with a SQL login errorNo login or no db_datareader for the accountGrant the rights in Before you start
Test fails: database not foundWrong SQL Server or database nameCheck the names in the PI Vision installation
Test passes, but the scan fails with a SQL login errorOnly the web application's account has db_datareader; the scan runs as the scanner service accountGrant the rights to both accounts
Displays are not inventoriedEnabled for scanning is clearedChoose Enable in the row menu
Save fails: "PI Vision instance ... already reads ..."Another instance reads the same PI Vision database, for example another web server of the same farmAdd this web server's URL to that instance's Other Web Servers instead

Reference: PI Vision Instance Settings