tour of the af and pi notifications … afsdk programming/2 af y...title slide 1 author steve pilon...

37
Copyright © 2009 OSIsoft, Inc. T OUR OF THE AF AND PI N OTIFICATIONS D EVELOPER T OOLS T HE BUILDERS' C AFÉ WEBINAR S ERIES

Upload: others

Post on 29-Feb-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

TOUR OF THE

AF AND PI NOTIFICATIONS

DEVELOPER TOOLS

THE BUILDERS' CAFÉ WEBINAR SERIES

Page 2: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

2

AGENDA

• Overview

– PI AF

– PI Notifications

– The OSIsoft SDKs

• PI AF Developer Tools

• PI Notifications Developer Tools

• Q&A

Page 3: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

3

PRESENTERS

• Steve Pilon, vCampus Team Member

• Laurent Garrigues, Product Manager at OSIsoft

• Chris Manhard, Lead Developer for PI AF

• Beth McNeill, Lead Developer for PI Notifications

Page 4: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

4

VCAMPUS-EXCLUSIVE WEBINARS

• The Builders' Café Webinar Series

• Submit your ideas here:

Page 5: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

5

VCAMPUS-EXCLUSIVE TOOLS

• AF Developer Tools

• PI Notifications Developer Tools

* Will be integrated in the next DVD image

Page 6: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

OVERVIEW

Page 7: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

7

PI ACE

RtReports

PI AnalyticsProcessBook

DataLink

RtPortal iViews

ActiveView

RtReports Clients

Real-Time Interfaces

PI AF

PI Archive

PI NotificationsData Access

The Server The Analytics The Visuals

MCN HealthMonitor

BatchView

Smart Clients

Thin ClientsSigmafine

RtWebParts

THE PI SYSTEM

Page 8: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

8

AF

• Additional layer on top of PI

• Significantly changes how to view and use PI:

– Tag-centric Asset-centric

– Flat Hierarchical

– Unstructured Organized

– Server-centric Enterprise-wide

Page 9: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

9

IS AF JUST "A MORE ORGANIZED PI"?

No

• Allows for better and even broader data aggregation:– PI Points and Data (obviously!)

– Relational databases

– Web services

– Custom data sources

– UoMs

– Relationships and modeling

• Base building block for visualization, analysis, notification and other engines

Page 10: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

10

PI NOTIFICATIONS

• Real-time notifications management system

– Based on AF

• Features:

– Acknowledgement

– Escalation

– Customizable content

– Custom delivery mechanisms

Page 11: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

11

THE OSISOFT SDKS

• PI SDK– PI Points (Attributes & Data)

– PI Server Message Log

– Various PI Databases (Users & Groups, etc.)

• AF SDK– AF Databases, Elements, Attributes

– AF Analysis Rules (ARs) and Data References (DRs)

– AF Connectivity Models and Cases

– Notification Configuration (including Delivery Channel)

• Notifications SDK (a.k.a. AN SDK)– Notification Instances

Page 12: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

12

PROGRAMMING WITH AF SDK

• Main AF SDK assembly = OSIsoft.AFSDK.dll

• What would a programmer want to code?

– Manage/Find Assets

• Database, Elements, Attributes

– Manage Library

• Templates, Tables

• What for?

– AF Deployment

– AF Synchronization with EAM systems

– Custom end-user interface

Page 13: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

13

PROGRAMMING WITH AF SDK

• Object model

• Sandbox/Check-in Mechanism on objects

– .CheckIn(), .CheckOut(), .UndoCheckOut()

– .CheckOutInfo

To other namespaces: AF. UnitsOfMeasure, AF.Analysis, AF.Modeling, etc.

Page 14: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

14

PROGRAMMING WITH AF FOR NOTIFICATIONS

• AF.Notification = Namespace in AF SDK

• What would a programmer want to code?

– Manage Notifications (from a configuration standpoint)

– Create Custom Delivery Channels

– Manage Contacts

• What for?

– Bulk creation/management of notifications

– Develop a thin client configuration tool

– Expand support for delivering notifications

– Easier management of contact list

Page 15: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

15

PROGRAMMING WITH AF.NOTIFICATION

• Object Model

• Don't forget the Sandbox/Check-in mechanism!

Page 16: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

16

PROGRAMMING WITH AN SDK

• Main AN SDK assembly = OSIsoft.PIAnalytics.SDK.dll

• What would a programmer want to code?

– Manipulate Notification Instances

• Acknowledgement, Comments, Triggering, etc.

• What for?

– Notification roll-ups and aggregation

– Custom visualization of notifications and their history

Page 17: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

17

PROGRAMMING WITH AN SDK

Page 18: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

AF DEVELOPER TOOLS

Page 19: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

19

AF SDK DEVELOPER TOOLS

• AF SDK Programming Reference

– \PIPC\Help\AFSDK.CHM

• VB.NET and C# Sample Code

– In the Programming Reference (for now)

• Improved Microsoft Visual Studio experience

– More exhaustive IntelliSense

– More detailed Object Browser

Page 20: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

20

IMPROVED VISUAL STUDIO EXPERIENCE

• IntelliSense without the developer tools:

• IntelliSense with the developer tools:

Page 21: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

21

IMPROVED VISUAL STUDIO EXPERIENCE

• Object Browser without the developer tools:

• Object Browser with the developer tools:

Page 22: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

22

AF SDK PROGRAMMING REFERENCE

• Examples, Hierarchies, Namespace/Class Reference

Page 23: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

23

AF SDK SAMPLES

• In the AF SDK Programming Reference

• VB.NET and C# examples

• Examples for major components/objects in AF SDK• Attributes

• Elements

• Search Methods

• More…

Page 24: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

24

CONNECT

Page 25: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

25

CREATE A TEMPLATE AND A DERIVED ELEMENT

Page 26: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

26

CREATE ELEMENT ATTRIBUTES

Page 27: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

27

FIND ELEMENTS

Page 28: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

PI NOTIFICATIONS DEVELOPER

TOOLS

Page 29: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

29

AN SDK DEVELOPER TOOLS

• AN SDK Programming Reference

– \PIPC\Help\ANSDK.CHM

• VB.NET and C# Sample Code

– 4 Projects in \PIPC\Analytics\Samples

• Improved Microsoft Visual Studio experience

– More exhaustive IntelliSense

– More detailed Object Browser

Page 30: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

30

• VB.NET and C# examples for Visual Studio .NET 2005

– Create Notification Rule

– Element-Based Notifications

– List Notifications Instance Count

– XML Custom Delivery Channel

• Very exhaustive examples

PI NOTIFICATIONS SAMPLES

Page 31: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

31

CREATE NOTIFICATION RULE

• Using AF SDK's Notification namespace

Page 32: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

32

CUSTOM DELIVERY CHANNEL: XML

• Using AF SDK's Notification namespace

Page 33: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

33

MANIPULATING NOTIFICATION INSTANCES

• Using AN SDK

Page 34: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

AND THERE'S MORE

Page 35: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

35

CREATING AF 2.0 DATA REFERENCES

• New White Paper, only on the vCampus Library

– 3 code samples

Page 36: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

Q & A

Page 37: TOUR OF THE AF AND PI NOTIFICATIONS … AFSDK Programming/2 AF y...Title Slide 1 Author Steve Pilon Created Date 7/13/2009 6:00:52 PM

Copyright © 2009 OSIsoft, Inc.

37

HOW TO CONTACT US

For further questions:

http://vCampus.osisoft.com > Contact Us

[email protected]