Intro To PI System Dev Tech - Workbook
Intro To PI System Dev Tech - Workbook
the PI System
1
© 2020 OSIsoft, LLC. All rights reserved
OSIsoft, LLC
1600 Alvarado Street
San Leandro, CA 94577
OSIsoft, the OSIsoft logo and logotype, Managed PI, OSIsoft Advanced Services,
OSIsoft Cloud Services, OSIsoft Connected Services, OSIsoft EDS, PI ACE, PI
Advanced Computing Engine, PI AF SDK, PI API, PI Asset Framework, PI Audit
Viewer, PI Builder, PI Cloud Connect, PI Connectors, PI Data Archive, PI DataLink,
PI DataLink Server, PI Developers Club, PI Integrator for Business Analytics, PI
Interfaces, PI JDBC Driver, PI Manual Logger, PI Notifications, PI ODBC Driver, PI
OLEDB Enterprise, PI OLEDB Provider, PI OPC DA Server, PI OPC HDA Server, PI
ProcessBook, PI SDK, PI Server, PI Square, PI System, PI System Access, PI Vision,
PI Visualization Suite, PI Web API, PI WebParts, PI Web Services, RLINK and
RtReports are all trademarks of OSIsoft, LLC.
All other trademarks or trade names used herein are the property of their
respective owners.
2
© 2020 OSIsoft, LLC. All rights reserved
Contents
- About this course .............................................................................................................................. 5
About this course .................................................................................................................................. 5
By the end of this course you’ll… .......................................................................................................... 5
Audience ............................................................................................................................................... 5
This Course Includes... .......................................................................................................................... 5
Prerequisites ......................................................................................................................................... 6
Further information .............................................................................................................................. 6
- Lesson 1: Introduction to PI Developer Technologies ...................................................................... 7
Learning outcomes................................................................................................................................ 7
Introduction .......................................................................................................................................... 7
Quick comparison of Dev. Technologies ............................................................................................... 7
Detailed comparison of Developer Technologies ................................................................................. 8
Licensing................................................................................................................................................ 9
List of deprecated PI Developer Technologies...................................................................................... 9
OSIsoft Messaging Format .................................................................................................................. 10
Learn More.......................................................................................................................................... 11
- Lesson 2: AF SDK ............................................................................................................................. 12
Learning outcomes.............................................................................................................................. 12
Definition ............................................................................................................................................ 12
Installation and rationale .................................................................................................................... 12
Naming Conventions ........................................................................................................................... 13
Exercise - Search the AF SDK Reference ............................................................................................. 14
Learn More.......................................................................................................................................... 15
- Lesson 3: PI SQL Framework ........................................................................................................... 16
Learning outcomes.............................................................................................................................. 16
Introduction ........................................................................................................................................ 16
PI SQL Data Access Server (RTQP) ....................................................................................................... 17
Architecture ........................................................................................................................................ 18
PI SQL Client ........................................................................................................................................ 18
PI SQL Commander ............................................................................................................................. 19
Learn More.......................................................................................................................................... 19
- Lesson 4: PI Web API ....................................................................................................................... 20
3
© 2020 OSIsoft, LLC. All rights reserved
Learning outcomes.............................................................................................................................. 20
Introduction ........................................................................................................................................ 20
PI Web API installation ........................................................................................................................ 21
Exercise - Explore PI Web API Reference ............................................................................................ 21
Using GitHub with PI ........................................................................................................................... 22
Learn More.......................................................................................................................................... 23
- Lesson 5: PI Integrators ................................................................................................................... 24
Learning outcomes.............................................................................................................................. 24
Introduction ........................................................................................................................................ 24
PI Integrator for Business Analytics .................................................................................................... 24
PI Integrator for Esri ArcGIS ................................................................................................................ 27
Learn More.......................................................................................................................................... 28
- Lesson 6: OCS and EDS .................................................................................................................... 30
Learning outcomes.............................................................................................................................. 30
OSIsoft Cloud Services (OCS)............................................................................................................... 30
Edge Data Store (EDS) ......................................................................................................................... 31
- Next Steps and FAQ ........................................................................................................................ 33
FAQ ...................................................................................................................................................... 33
Next steps ........................................................................................................................................... 33
4
© 2020 OSIsoft, LLC. All rights reserved
- About this course
About this course
Developer Technologies are designed to support the development of custom
applications on top of the PI System, as well as the integration of PI System data
with other applications and business systems. This course is designed for software
developers new to the PI System who desire programmatic access to it. You will
be introduced to various Developer Technologies that you can leverage in your
custom application to interact with the PI System. At the end of the lab, you will
walk away with knowledge of their basic capabilities and also know where to go if
you want to dive deeper into them.
We hope you enjoy the module and please don’t hesitate to get in touch with any
comments or feedback.
Audience
This course is designed for developers, systems integrators and systems architects
who are looking for an introduction on everything they need to develop solutions
on the PI System.
Level: Introductory
Study time: 2 hours
• Videos, discussion opportunities and quizzes to help you learn the material
• A sharable certificate of completion
5
© 2020 OSIsoft, LLC. All rights reserved
Prerequisites
Further information
• Once you register for a course, you will have access to the course materials
24/7 on this website.
• This is a self-paced course. Any questions or assistance needed about the
material can be asked in this course's space in the OSIsoft PI Square
community
• When you complete the examination at the end of the course, you will receive
a certificate of completion which can be shared and directly posted on
LinkedIn.
• For more information about our Online Courses please visit our FAQ page
You can audit the full video lecture content right now on the OSIsoft Learning
YouTube Channel
6
© 2020 OSIsoft, LLC. All rights reserved
- Lesson 1: Introduction to PI Developer Technologies
Learning outcomes
After completing this lesson, you will:
• Be more familiar with the types of PI Developer Technologies and
understand the features and limitations of each.
• Be more knowledgeable on topics such as the PI System Access (PSA)
license and the OSIsoft message format.
Introduction
PI Developer Technologies are designed to support the development of custom
applications on top of the PI System, as well as the integration of PI System data
with other applications and business systems such as Microsoft Office or SQL
Server, Enterprise Resource Planning systems (ERPs), reporting and analytics
platforms, web portals, or geospatial and maintenance systems among other
things.
They cover a wide range of use cases in various environments, programming
languages, operating systems, and infrastructures. This course covers an
introduction to the different technologies in the family, including:
• AF SDK provides comprehensive, high performance, Windows based .NET
programmatic access to the PI System. Other technologies in the family might
use AF SDK calls internally.
• PI SQL Framework family of products exposes the data on a PI Server as if it were
on a relational database. Here, we will be focusing on PI SQL client and RTQP.
• PI Web API exposes a REST API, enabling operating system and device
independent programmatic access to the PI System.
• AF SDK
o Has the best performance of all PI Development Technologies.
o More methods and options available than any other Technology.
7
© 2020 OSIsoft, LLC. All rights reserved
o Limited to Windows operating systems.
• PI SQL Framework
o Is compatible with other systems that use Structured Query Language
(SQL).
o Has limited methods and options available compared with AF SDK (for
example, setting security on assets and creating units of measure).
o Is limited to read-only PI AF access (but can create and write to tags on
your PI System).
• PI Web API
o Operating system and programming language agnostic.
o Limited methods and options available compared with AF SDK.
Detailed comparison of Developer Technologies
• R: Read access
• RW: Read and Write access
* through PI Point Data Reference Attributes
8
© 2020 OSIsoft, LLC. All rights reserved
You might also like to have a look at this presentation from the Developer Track at
the 2017 Users Conference in San Francisco: “How to Pick the Right PI Developer
Technology for Your Project”.
Licensing
PI Developer Technologies are freely available for download. However, this does
not mean that the PI Developer Technologies are license-free. You need a PI System
Access (PSA) license to deploy your applications. You might think of this as a run-
time license. The PSA runtime license enables end users to access PI System data,
including time series data in Data Archives and asset metadata in AF Servers, using
any of the PI Developer Technologies.
Therefore, PSA is a license required when deploying a non-OSIsoft software
program, application, or device that programmatically accesses data stored in the
PI Server or supporting servers. Programmatic access of PI System data is possible
through our Developer Technologies. Deprecated Developer Technologies may
require additional licensing.
• What are the terms of a PI System Access license? Please refer to the Usage and
Service Terms Content > Product Licensing > Product Usage Terms document
for the most up-to-date terms of the PSA license.
• Who should I contact regarding the PI System Access license? If you have
questions regarding licensing, contact your Customer Success Manager or
Account Manager.
For the latest information on the PI System Access license review this article on the
myOSIsoft customer portal.
9
© 2020 OSIsoft, LLC. All rights reserved
Data Access Pack or PI System Access licenses are required to deploy custom PI
API applications.
PI Web Services - PI Web Services is a set of Simple Object Access Protocol (SOAP)
services that exposes time series data in the PI System. This product is
implemented using Microsoft Windows Communication Foundation (WCF). PI
System Access licenses are required to deploy custom PI Web Services
applications.
For a complete list, please visit the Developer Technologies website.
10
© 2020 OSIsoft, LLC. All rights reserved
• Data
Within each category, three types of actions can be specified: Create, Update, and
Delete.
Each message bulks individual JSON objects into a JSON array. Within a given
array, all objects must be of the same message type: Type, Container, or Data.
To achieve optimal throughput, bulking and compression of messages is
recommended.
For more information:
• Live Library documentation – link
• OMF Docs - link
Learn More
• PI Developers club - link
o an online offering that provides resources for developing applications and
solutions on the PI System. PI DevClub can be considered the next version
of OSIsoft Virtual Campus and offers members-only and public features.
PI DevClub is the gateway to get support, latest updates, and access to
the developers’ community.
o The member benefits of the club are listed in this FAQ.
• PI Developer Technologies (tech support) - link
11
© 2020 OSIsoft, LLC. All rights reserved
- Lesson 2: AF SDK
Learning outcomes
After completing this lesson, you will:
• Be more familiar with AF SDK programmatic library.
• Know how to locate and search the AF SDK reference.
• Know how to locate and install the AF SDK.
Definition
If you need to develop your own application to interact with the PI System, you
have a few options. The whole family of PI Developer Technologies is at your
disposal. However, if you want to get the best performance out of your
application, the AF SDK has the greatest potential - assuming you are developing
and running the application in a Microsoft Windows environment.
The AF SDK is a Microsoft .NET based programmatic library that provides
structured access to the variety of data stored in the OSIsoft PI System. This data
includes:
• Assets and their properties and relationships
• Time Series data from the PI Data Archive and other sources
• Event frames that record and contextualize process events
The AF SDK provides a comprehensive, Windows based, programmatic interface
to the PI System. It provides an object-oriented approach to interact with AF
structures and data, as well as the PI Data Archive, directly. The AF SDK is
designed for easy access from Microsoft .NET languages like Visual Basic .NET, C#,
and Managed C++. The development machine and the machine that will
eventually run any applications developed with AF SDK must have at least
Microsoft .NET Framework 3.5 installed. However, for full use of all features we
recommend using the AF SDK .NET 4.5 assemblies, which would require .NET 4.5
to be installed on both the development machine, and any other machines that
will run your application.
12
© 2020 OSIsoft, LLC. All rights reserved
• You can quickly build complex AF hierarchies. Many of our customers and
partners prefer to build AF hierarchies this way, rather than using the PI
Builder plugin to Microsoft Excel.
• You have the power to create rich and customized Windows client
applications. Client applications such as PI Datalink are developed using the
AF SDK and its predecessors.
• It is well suited to developing middleware applications sitting between the
PI System and other systems. AF SDK gives you flexibility on how you want
to integrate other systems with the PI System and allows you to do so in
the most resource efficient way possible. It is also possible to automate
element generation and/or synchronization between AF and other systems.
cra
In the myOSIsoft customer portal, use the Products page search box to search for
the PI Server Integrated Installation Kit. The installer includes components such as
PI AF Server, PI Notifications Service, PI Analysis Service, and PI AF Client (includes
AF SDK). For the most recent release, search in the Current Version tab; for all
versions 2018 and later, search in the All Versions tab.
For more information on downloading the Asset Framework (AF) Server and PI
System Explorer from the Customer Portal have a look at this article.
Naming Conventions
Every time you write an application using the AF SDK, you are going to have to
connect to an AF Server, or a Data Archive. The AF SDK is a little confusing when it
comes to naming, because we have kept a lot of discontinued old names of
products to preserve backwards compatibility. The Data Archive used to be called
13
© 2020 OSIsoft, LLC. All rights reserved
a PI Server, and the AF Server used to be called a PI System. OSIsoft now use the
words “PI Server” and “PI System” to describe groups of software; the PI Server
now refers to our group of server products, while PI System refers to all products
– clients, servers and development tools. For all intents and purposes:
Name in OSIsoft Name in Description
Documentation and AF SDK
Training
Data Archive PIServer A server application that stores high fidelity
time-series asset data.
AF Server PISystem A server application that indexes and
categorizes time-series, calculation, and
relational asset data.
PI Server - A collective term given to all OSIsoft non-
client server products and features. “The
Data Archive and PI AF Server, along with a
few others, make up the PI Server.”
PI System - A collective term given to all OSIsoft
products. “OSIsoft makes the PI System.”
14
© 2020 OSIsoft, LLC. All rights reserved
o AFAttribute.GetValue()
o AFAttribute.Data.UpdateValue ()
Learn More
• This webpage contains examples that demonstrate how to use the SDK.
• Take our online courses to learn more about AF SDK
o Developing Applications with PI AF SDK
▪ Discover how easy it is to develop powerful AF SDK based
applications; learn the basics of the programmatic access to
the PI System using AF SDK
o AF SDK Project Management Best Practices
▪ Get a taste of the AF SDK methodologies used by large global
companies to manage their large-scale complex PI landscapes
and get started on building a prototype application for
managing multiple remote AF databases (AF templates).
15
© 2020 OSIsoft, LLC. All rights reserved
- Lesson 3: PI SQL Framework
Learning outcomes
After completing this lesson, you will be:
• Be more familiar with PI SQL Framework.
• Able to describe PI SQL Client for RTQP and its features.
• Able to explain the purpose of PI SQL Data Access Server (PI SQL DAS).
Introduction
The PI SQL Framework is a category of PI System Access products that expose PI
asset structures and time series data as if the PI Server were a relational database.
That is, each exposes PI data (both real time and contextual) as tables available for
access via SQL queries. These technologies are typically used when integrating the
PI System with other systems that can import data in this format.
PI SQL Client for RTQP replaces the functionality of PI OLEDB Enterprise and is the
recommended tool for new development projects.
In this course we are highlighting only the recommended technology to use when
reading from the PI System using SQL technologies. If your organization is using an
older technology, see the following video explaining the history and landscape of
the PI SQL family of products, including all legacy products.
The only reason not to use RTQP are if you are not using AF or if you have an older
version of PI. If you are using AF and your system supports RTQP you should use it.
The tables below show some a comparison between the technologies.
Query Parsing Engine Pros Cons
PI SQL Data Access • Current path forward for PL SQL • Query Engine is on AF
Server (RTQP) • More performant query optimizer Server
• Denormalized/customizable • Read-only
schema • No Access to MDB or
• All endpoints decoupled from Batch data
query engine
• Simple/consistent Data Flow
• Transpose Queries
PI SQL Subsystem • Compatible with 2.x ODBC • Deprecated
• Query Engine not on client • Query Engine is on Pl
Data Archive
• Limited schema
16
© 2020 OSIsoft, LLC. All rights reserved
PI OLEDB Provider • Read/write • No access to AF Server
• Direct access to Pl Data Archive data
• Access to MDB and PI Batches • OLEDB endpoint
• Simple schema coupled to query
• Backward compatible with PI SQL engine
Subsystem queries
PI OLEDB Enterprise • Access to AF Server data including • Succeeded by RTQP
Event Frames • Read-only
• Highly Normalized • Highly Normalized
• Transpose Queries • No Access to MDB or
Pl Batches
• Complex data flow
• OLEDB endpoint
coupled to query
engine
These Developer Technologies are particularly useful when the PI System has a role
to play in Reporting or Business Intelligence (BI) scenarios, where it must interact
with other products or systems that communicate using Structured Query
Language (SQL).
In order to decide which one to use, you’ll need to read the documentation of the
software or device that you’re using to read the data and see which standard it
supports. For example, you could import data into a Microsoft SQL Server database
with either ODBC or OLEDB as it supports these two standards, but you’d need to
use JDBC to import data into an Oracle database unless you’re using an additional
wrapper.
17
© 2020 OSIsoft, LLC. All rights reserved
• Many performance improvements over OLEDB Enterprise, including streaming
of partially completed result sets.
• Time zone support.
• No AF SDK requirement on client machine.
Architecture
PI SQL Client OLEDB has been constructed to leverage PI SQL DAS (RTQP Engine) on
PI AF Server for query execution. Because PI SQL DAS (RTQP Engine) is installed on
the same server as PI AF Server, the client only requires a thin client that has no
local dependency on larger components such as a query engine and AF SDK.
PI SQL DAS (RTQP Engine) provides secure network communication through
Net.Tcp or HTTPS to the driver on the client side.
Install PI DAS (Data Access Server) for RTQP on the AF Machine through the PI
Server 2018 install kit and install PI SQL Client via the stand alone PI SQL Client
install kit on the desired client machine. This guide provides procedures for the
installation and configuration of PI SQL DAS (RTQP Engine) on Windows operating
systems. Users of this guide should be familiar with PI AF.
PI SQL Client
PI SQL Client is a set of lightweight providers that allow data access to the PI System
through a relational schema and belongs to the OSIsoft Developer Technologies
family of products. The PI SQL Data Access Server (RTQP Engine) is the server-side
component that processes incoming queries from PI SQL Client connections.
18
© 2020 OSIsoft, LLC. All rights reserved
Connections to the PI SQL Data Access Server (RTQP Engine) are made by client
software that make use of the PI SQL Client family of drivers. This includes PI SQL
Client OLEDB, PI SQL Client ODBC, and PI SQL Client JDBC.
The RTQP Engine via PI SQL Client became available in PI Server 2018 SP2 and is the
successor to PI OLEDB Enterprise. The functionality is very similar to PI OLEDB
Enterprise in that PI AF and the underlying tags can be queried using SQL
statements. The main benefits over PI OLEDB Enterprise are better performance,
simpler queries, and simplified software architecture.
PI SQL Commander
The PI SQL Client installation includes a test environment, which handles the OLE
connection process and allows the user to execute queries and perform other tasks.
This test environment is PI SQL Commander Lite.
PI SQL Commander is the user interface to assist with creating queries, transpose
functions, and views against PI AF using PI SQL Client. This user interface also
provides access to the legacy PI OLEDB Provider and PI OLEDB Enterprise providers.
PI SQL Commander Lite is an application to navigate a relational view of the PI
System using SQL Queries that are exposed by PI ODBC. This can be used to create,
edit, test, and save SQL queries of PI System data.
More information on the SQL commander is available in the Live Library.
Learn More
• Take our online courses to learn more about PI SQL Framework
o Exposing PI Data with the PI SQL Framework
▪ Learn the best way for your organization to integrate the PI
System into applications built for relational databases.
o Building PI SQL Queries for the Real-Time Query Processing Engine
▪ Create optimized PI SQL Client queries and transform existing
PI OLEDB Enterprise queries into PI SQL Client queries
• For information on Troubleshooting, User permissions, metadata and more,
have a look at this article in the Live Library.
• Older technologies exist and may still be useful in specific situations. See
this video for more information.
19
© 2020 OSIsoft, LLC. All rights reserved
- Lesson 4: PI Web API
Learning outcomes
After completing this lesson, you will:
• Be more familiar with the PI Web API interface to the PI System.
• Know how to locate and search the PI Web API reference.
• Know how to locate and install the PI Web API install kit.
• Understand how we are using GitHub at OSIsoft.
Introduction
In a world that is increasingly an “Internet of Things”, it is becoming more and
more important to integrate systems of different functions and standards with
each other. The PI Web API makes it easy to integrate the PI System with non-
Windows systems such as smartphones, UNIX servers or other network-
connected devices. It gives rich, cross-platform access to the PI System from any
application that can send and receive HTTPS. Adding a PI Web API Server to a PI
System will enable client access to the PI Server via a RESTful interface.
Under normal operation, a client makes HTTPS calls to the PI Web API Service.
The PI Web API Service gets the data needed from the PI Data Archive and AF
servers, and returns the data in the form of JSON to the requesting client.
A common task that you may need to perform when programming against the PI
System is to search for objects that match specific criteria. The PI Web API
provides 3 ways to execute search actions within the PI Web API:
1) Traditional endpoints with filters
2) Using the Search controller
3) Using Query methods that utilize the AFSearch classes in AF SDK
The AFSearch methods provide significant advantages over the other two search
types.
For example, searching via the Search controller is generally fast but requires
much more setup and configuration. Each AF database or PI Data Archive that is
going to be searched must be configured to be crawled by the PI Web API Search
Crawler, which creates index files for each server. This introduces more potential
20
© 2020 OSIsoft, LLC. All rights reserved
problems and administrative burden. For many applications, the AFSearch
endpoints are similarly performant and the more robust option.
21
© 2020 OSIsoft, LLC. All rights reserved
3. You are designing an application that requires the results of time-
weighted averages of a few different data streams. You can get the
results of a summary calculation like this with PI Web API. Which
controller would you use?
22
© 2020 OSIsoft, LLC. All rights reserved
Learn More
• PI Web API in Live Library
• Take our online courses to learn more: Using PI Web API from Beginner to
Advanced
o Learn how to retrieve and manipulate time series data, asset
information and event frames using PI Web API.
• [VIDEO] Getting cOMFortable with PI Web API
o With today’s computing power and the low cost of sensors, no data
should be out of the reach of your PI System. When dealing with
large amounts of critical data, it is important that our data ingress is
performant and reliable. This video goes over the best practices of
deploying an OMF application at the edge, using the PI Web API’s
OMF Data Ingress Services.
23
© 2020 OSIsoft, LLC. All rights reserved
- Lesson 5: PI Integrators
Learning outcomes
After completing this lesson, you will:
• Be more familiar with PI Integrators in general and have taken a deep dive
into our most popular options: PI Integrators for Business Analytics and Esri
ArcGIS.
• Have gained a high-level understanding of the PI Integrator Architecture
and Installation Process.
• Be aware of possible resource and documentation locations for further
study.
Introduction
PI Integrators provide decision-ready PI Data to external systems, offering
Information Technology/Operational Technology integration. PI Integrators are
user-configurable products that mitigate the need for extensive custom solutions.
In this lesson we will take a closer look at two of the most popular PI Integrators:
i) for Business Analytics and ii) for Esri ArcGIS.
Other PI Integrators include:
• PI Integrator for Microsoft Azure - presents PI System data, context, and
events perfectly suited for Advanced Analytics with Cortana Intelligence
and Power BI for reporting, visualization, and analytics.
• PI Integrator for SAP Hana - combines PI System data with SAP Hana so you
can combine and analyze your sensor-based, time series, data from the PI
Server with the high-performance analytics of SAP Hana.
24
© 2020 OSIsoft, LLC. All rights reserved
The PI Integrator for Business Analytics gathers AF attribute data, filters it based on
the criteria entered by the user in the Integrator's browser-based User Interface
(UI) and publishes the data to an external data store (e.g. Microsoft SQL Server,
Apache Hadoop). PI Integrator for Business Analytics is designed to help users
transform time series data from the PI System into a data set that is easily
consumed by Business Intelligence (BI) tools. PI Integrator for Business Analytics
works directly with PI AF (not the PI Data Archive) when creating the search criteria
for views. Therefore, a good AF structure is vital to using the PI Integrator.
Architecture and Components
PI Integrator for Business Analytics has three basic components. The user interacts
through the UI with each of these components:
• PI Integrator Framework - the master Windows Service for the PI Integrator
o Runs the Web UI - Self-hosted application server used to access the PI
Integrator
o Coordinates view scheduling and controls which Worker Node
publishes each view
• PI Integrator Worker Node(s) - Windows service that handles publication
jobs.
o Up to 5 worker nodes can be added to help distribute jobs (note that
each additional worker node adds RAM and CPU requirements).
• PI Integrator Sync - Windows Service that watches for changes to PI tag data
and AF objects, and for views that support this, automatically updates
supported targets with changed data. See Live Library for “How published
data gets updated” for information on which views support automatic
updates.
25
© 2020 OSIsoft, LLC. All rights reserved
Download and Installation
Have a look at this link for information on downloading PI Integrators from the
Customer Portal. There are three phases to PI Integrator installation.
o Phase 1: Prepare for installation
▪ This phase ensures that you have the appropriate access and
permissions to the components that interact with PI Integrator
for Business Analytics: PI AF server, PI Data Archive, and
Microsoft SQL Server. These prerequisites must be in place
before you run the installation kit for PI Integrator for Business
Analytics.
o Phase 2: Install PI Integrator for Business Analytics
▪ In this phase, you install PI Integrator for Business Analytics,
specifying the PI AF server and Microsoft SQL Server. New PI
Integrator databases are created on the Microsoft SQL Server
for PI Integrator for Business Analytics.
o Phase 3: Verify the installation
▪ This phase verifies that the PI Integrator for Business Analytics
services have started and are running.
For more details on the installation phases have a look at this Live Library article.
26
© 2020 OSIsoft, LLC. All rights reserved
For topics such as Licensing, Output Streams, Product Documentation, Releases
and Configuration please refer to this article.
Learn More
• Live Library links:
o PI Integrator for Business Analytics
o PI Integrator for Esri ArcGIS
• PI Integrators Tech Support page
• BI Reporting with PI Integrator for Business Analytics - online course focused
on analyzing PI System data using Power BI and PI Integrator for Business
Analytics. We will build upon your existing application knowledge with
hands-on activities to help you transform data into information.
• Videos
o Insight: PI Integrators and OSIsoft Cloud Services for time-series Data
Science Enablement - OSIsoft continues to invest in technology for
better enabling data science and advanced analytics. For most
28
© 2020 OSIsoft, LLC. All rights reserved
analytics projects, there is no magic “X marks the spot”, but there are
many possible paths to success.
o PI Integrator for Esri ArcGIS Architecture Map of Data Flow- High Level
- The PI Integrator for Esri ArcGIS is the OSIsoft product that enables
real-time geographic data visualization by connecting your PI System
with the Esri ArcGIS platform. This video explains the major pieces in
the data flow between these two systems by drawing a high-level
architecture map. Learn what feature services and layers are, the role
of the ArcGIS GeoEvent Processor in pushing real-time data to the
feature services, and how the PI Integrator for Esri ArcGIS connects the
GeoEvent Processor to the PI System data and can be used to create
the map layers.
29
© 2020 OSIsoft, LLC. All rights reserved
- Lesson 6: OCS and EDS
Learning outcomes
After completing this lesson, you will:
• Be more familiar with both OSIsoft Cloud Services and Edge Data store
• Know where to get more information to expand your understanding and
skills.
More information
30
© 2020 OSIsoft, LLC. All rights reserved
• https://www.osisoft.com/Solutions/OSIsoft-Cloud-Services/
• OSIsoft Cloud Services portal: cloud.osisoft.com
o This your gateway to learning about Cloud Services features. You will
find detailed API documentation as well as sample code to help you
interact programmatically with your data using the Cloud Services API.
o In the OCS portal you can:
▪ View OSIsoft Cloud Services API documentation
▪ Explore working code samples provided in multiple
programming languages
▪ View the OSIsoft Cloud Services service blog
• Enabling Enterprise-wide Data Science with OCS Dataviews
o In this course, you will gain hands-on experience with a new OSIsoft
software product, OSIsoft Cloud Services (OCS): analyze & visualize
data in OCS, add metadata & create Data Views in OCS, access OCS
data in a Jupyter Notebook via Python, filter & prepare data from OCS
for machine learning and more.
• OSIsoft Cloud Services (YouTube playlist)
• OCS for Developers (webinar)
31
© 2020 OSIsoft, LLC. All rights reserved
• Built-in OPC UA connectivity
• Built-in Modbus TCP connectivity
• Custom application using OSIsoft Message Format (OMF)
• Custom application using REST API
Once collected, the data is stored locally in configurable data storage within EDS,
until it can be sent to permanent storage in a PI System or in OSIsoft Cloud Services
through periodic egress. The data can also be read from local storage by custom
applications using REST APIs.
More information
• Link to GitHub page (https://osisoft.github.io/Edge-Data-Store-Docs/V1/)
which includes: design, performance and security considerations , quick
start guides and configuration options.
• Blog post: Easy as PI: Edge Data Store
• Video: What is an Edge to Cloud IIoT Solution for Remote Asset Monitoring
using Smart Sensors?
o Listen to Mikhail Koloskov from IPCOS say why they chose EDS for
their edge analytics application for Oil & Gas. OSIsoft's Chris Felts
describes the history of EDS and how it is related to the PI System.
• Video: Edge Data Store - Applications delivered at the Edge
o In this presentation, we will cover what the Edge DS is and how we
envision customers will use it at the Edge of networks. We show you
how you can create local user applications directly from data stored
in Edge DS. Finally, we will show you how to use Edge DS to extend
applications from the Edge to the Enterprise or the Cloud.
32
© 2020 OSIsoft, LLC. All rights reserved
- Next Steps and FAQ
FAQ
• Should I use the Developer Technologies to send data to another PI System?
o We offer better solutions for that:
▪ PI System Connector
▪ PI to PI Interface
▪ Differences between PI to PI and the PI System Connector
• Should I use the Developer Technologies to send data to Esri ArcGIS, SAP
Hana or Business Analytics Tools?
o We offer better solutions for that:
▪ PI Integrators
• What is the “PI OPC DA/HDA Server?”
o This is an old product that has been replaced by two new products:
▪ PI OPC DA Server
▪ PI OPC HDA Server
• Do we have a “PI OPC UA Server?”
o Not yet: Feedback item is in User Voice
• What is the PI SQL Data Access Server (PI SQL DAS)?
o A component of the PI SQL Framework. There are three editions:
▪ PI SQL DAS (RTQP): Real Time Query Processing Engine for the PI SQL Client
▪ PI SQL DAS (OLEDB): Connects ODBC/JDBC Drivers to the OLEDB Providers
▪ PI SQL DAS (PI Integrator Framework): Used by the PI Integrators
• Is the PI SQL Framework a product?
o No. The PI SQL Framework is a group of products:
▪ PI SQL Client (OLEDB, ODBC, JDBC)
▪ PI OLEDB Provider
▪ PI ODBC Driver
▪ PI JDBC Driver
Next steps
Thank you for taking this introductory module on Developer Technologies. We
recommend you continue along the “Developer” learning path by following courses
appropriate to the developer technology you have chosen for your project.
Take our online courses to learn more:
• PI AF SDK
33
© 2020 OSIsoft, LLC. All rights reserved
o Developing Applications with PI AF SDK - Discover how easy it is to
develop powerful AF SDK based applications; learn the basics of the
programmatic access to the PI System using AF SDK
o AF SDK Project Management Best Practices - Get a taste of the AF
SDK methodologies used by large global companies to manage their
large-scale complex PI landscapes and get started on building a
prototype application for managing multiple remote AF databases
(AF templates).
• PI SQL Framework
o Exposing PI Data with the PI SQL Framework - Learn the best way for
your organization to integrate the PI System into applications built
for relational databases.
o Building PI SQL Queries for the Real-Time Query Processing Engine -
Create optimized PI SQL Client queries and transform existing PI
OLEDB Enterprise queries into PI SQL Client queries
• PI Web API
o Using PI Web API from Beginner to Advance - Learn how to retrieve
and manipulate time series data, asset information and event frames
using PI Web API.
Alternatively, get familiar with basic Data Science concepts and techniques, by
going through the steps of a Data Science project example in our “Introduction to
Data Science for PI System Professionals” course.
You can find the complete list of courses for the “Developer” learning path here.
34
© 2020 OSIsoft, LLC. All rights reserved