Date post: | 12-Dec-2015 |
Category: |
Documents |
Upload: | lucas-abrahao |
View: | 217 times |
Download: | 2 times |
Copyright © 2009 OSIsoft, LLC
PROGRAMMING WITH EVENT FRAMES
BUILDERS' CAFÉ WEBINAR SERIES
Copyright © 2009 OSIsoft, LLC
2
AGENDA
• Vision
• Architecture ( )
• Programming ( )
• Availability
• Q&A
Copyright © 2009 OSIsoft, LLC
3
PRESENTERS
• Chris Coen
– Product Manager
• Chris Nelson
– Software Development Lead
• Steve Pilon
– vCampus Team Member
Copyright © 2009 OSIsoft, LLC
4
VCAMPUS-EXCLUSIVE WEBINARS
• The Builders' Café Webinar Series
• Submit your ideas here:
Copyright © 2009 OSIsoft, LLC
EVENT FRAMES - THE VISION
Copyright © 2009 OSIsoft, LLC
6
EVENT FRAMES ADD TIME CONTEXT
time
Copyright © 2009 OSIsoft, LLC
6
EVENT FRAMES ADD TIME CONTEXT
time
Normal
Copyright © 2009 OSIsoft, LLC
6
EVENT FRAMES ADD TIME CONTEXT
time
Normal Abnormal
Copyright © 2009 OSIsoft, LLC
6
EVENT FRAMES ADD TIME CONTEXT
time
Normal Abnormal Corrective
Copyright © 2009 OSIsoft, LLC
7
EVENT FRAME DEFINITION
• Your terms Any event in your process:
– downtime event
– incident event
– material transfer event
– equipment maintenance event
– batch processing step
– specific investigation
– six-sigma project
– electrical power outage
– safety incident
Any time range or repeatable set of time ranges:
– shifts
– day
– week
– month
– year to date
– etc.
• Our terms A time series data type defined by two times and optionally accompanied by supporting data
Copyright © 2009 OSIsoft, LLC
8
EVENT FRAMES AND BATCH
Event Frames != Batch
Event Frames > Batch
Batch Є Event Frames
Copyright © 2009 OSIsoft, LLC
9
USE SCENARIOS
• Repeatable Time Periods
• Downtime/Incident/Accident
• Discrete Manufacturing
• Equipment Startup and Shutdown
• Paper/Roll Manufacturing
• Semi-continuous Manufacturing
• Material Tracking
• Batch Processing
• OSIsoft Internal Applications
Copyright © 2009 OSIsoft, LLC
10
PRIMARY REQUIREMENTS
• Provide an extensible data structure that could model many more use cases in addition to S88 and S95 –
ensure industry agnostic functionality
• Provide additional indexing other than time
• Increase overall system performance
• Increase support for PI System aspects; scalable, available, reliable, extensible, secure, and
interoperable.
Copyright © 2009 OSIsoft, LLC
EVENT FRAMES - THE ARCHITECTURE
Copyright © 2009 OSIsoft, LLC
12
EVENT FRAMES ENHANCE AF
• Integrate Event Frame data types into a base object and common infrastructure
– Batch Database Objects, Transfer Records, AF Transfers, AF Cases, Notification History, etc.
• Leverage AF infrastructure and concepts
– Use and extend AF Element Templates
– Model and store supporting data as AF Attributes
– Event Frames can refer to other AF Objects
– Relate Event Frames through Reference Types
Copyright © 2009 OSIsoft, LLC
13
EVENT FRAMES ENHANCE AF
PI System Explorer
PI AF Server
Service
Operations
AF SDK
Stored Procedures Functions Triggers Tables
SQL Server
UI Controls
New Physical Schema
Enhanced Indexing
Vertical data partitioning
Additional RPCs
Bulk Operations
Buffered Operations (Release 2)
Flexible, extensible object structures
Enhanced Search functionality
Editing
Searching
Browsing
Re-usable controls
Copyright © 2009 OSIsoft, LLC
14
EVENT FRAMES BASICS DURING DEMO
• Event Frame Templates
• Event Frame Data Type
– What’s fixed and what’s extensible
– How related to Elements
• Relating Event Frames to each other
Copyright © 2009 OSIsoft, LLC
15
DEMONSTRATION
Copyright © 2009 OSIsoft, LLC
EVENT FRAMES - PROGRAMMING
Copyright © 2009 OSIsoft, LLC
17
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)
– Event Frames
• Notifications SDK (a.k.a. AN SDK) – Notification Instances
Copyright © 2009 OSIsoft, LLC
18
PROGRAMMING WITH AF SDK
• Assemblies (installed in GAC – Global Assembly Cache)
– OSIsoft.AFSDK
– OSIsoft.AF.UI
Copyright © 2009 OSIsoft, LLC
18
PROGRAMMING WITH AF SDK
• Assemblies (installed in GAC – Global Assembly Cache)
– OSIsoft.AFSDK
– OSIsoft.AF.UI
• Help Files (vCampus Library)
– AF Programming Reference
– AF User Interface Components Reference
• Manage/Find Event Frames – Event Frames, Attributes
• Manage Library – Templates, Tables
• Invoke Common Dialog Windows
• ...
Copyright © 2009 OSIsoft, LLC
19
EVENT FRAMES WITHIN AF SDK
• Object model
Copyright © 2009 OSIsoft, LLC
20
EVENT FRAME TEMPLATES
• Identical to AF Element Templates, with an instance type of Event Frame
1. Create the Element Template object
2. Set the instance type
• Add Attribute Templates to an Event Frame Template
exactly like AF Element Templates
Copyright © 2009 OSIsoft, LLC
21
EVENT FRAMES RELATIONSHIPS
• Event Frames can relate to other Event Frames through AFReferenceTypes
1. Create the Child Event Frame Template
2. Create an AFReferenceType
3. Set the Allowed Element Template Properties
Copyright © 2009 OSIsoft, LLC
22
EVENT FRAME DATA TYPE
• Create the Event Frame from the Template and then set the value of the Attributes
1. Create the Event Frame instance
2. Set the Start and End Times
3. Set the value of the Attributes
Copyright © 2009 OSIsoft, LLC
23
OSISOFT.AF.UI NAMESPACE
• Exposes several controls and dialog windows
• Help and examples
– AF User Interface Components Reference
Copyright © 2009 OSIsoft, LLC
24
EVENT FRAME UI EXAMPLE
Copyright © 2009 OSIsoft, LLC
24
EVENT FRAME UI EXAMPLE
• 3 out-of-the-box controls PISystemPicker
AFDatabasePicker
AFViewControl
Copyright © 2009 OSIsoft, LLC
24
EVENT FRAME UI EXAMPLE
• 3 out-of-the-box controls
• Button w/ 5 lines of code
PISystemPicker
AFDatabasePicker
AFViewControl
Button
Copyright © 2009 OSIsoft, LLC
24
EVENT FRAME UI EXAMPLE
Copyright © 2009 OSIsoft, LLC
24
EVENT FRAME UI EXAMPLE
Copyright © 2009 OSIsoft, LLC
24
EVENT FRAME UI EXAMPLE
Copyright © 2009 OSIsoft, LLC
24
EVENT FRAME UI EXAMPLE
Copyright © 2009 OSIsoft, LLC
25
PROGRAMMING DEMO
Copyright © 2009 OSIsoft, LLC
26
HELP IN AF SDK PROGRAMMING REFERENCE
Copyright © 2009 OSIsoft, LLC
EVENT FRAMES - AVAILABILITY
Copyright © 2009 OSIsoft, LLC
28
COMMUNITY TECHNOLOGY PREVIEW (CTP)
• CTP now available – Available via Event Frames blog
– Delivered within AF 2.1 bits
• Feature complete in AF 2.1 – SDK (within AF SDK)
– Database
– Full suite of automated regression tests
• Please note that: – We will not guarantee application compatibility with this
version
– Performance work is currently in progress
– HA through SQL mirroring or clustering only
Copyright © 2009 OSIsoft, LLC
29
EVENT FRAMES CTP
• Exclusive to OSIsoft vCampus
• Feedback and questions on the discussion forum
– Discussion Hall > Event Frames Development
• Examples, thoughts and announcements on the blog
– http://vCampus.osisoft.com/blogs/EventFrames
RSS Feeds
Copyright © 2009 OSIsoft, LLC
CONCLUSION
Copyright © 2009 OSIsoft, LLC
31
Q & A
Users on Conference Call: Please do not put the call on hold as we would probably hear music! Users on Internet Audio: Type your questions in LiveMeeting
Copyright © 2009 OSIsoft, LLC
32
VCAMPUS-EXCLUSIVE WEBINARS
• The "Builders' Café" Webinar Series
• Submit your ideas here:
Copyright © 2009 OSIsoft, LLC
33
NEXT VCAMPUS WEBINARS
Copyright © 2009 OSIsoft, LLC
34
HOW TO CONTACT US
vCampus Discussion Forums
http://twitter.com/OSIsoftvCampus
http://vCampus.osisoft.com > Contact Us
Copyright © 2009 OSIsoft, LLC
35
Q & A
Users on Conference Call: Please do not put the call on hold as we would probably hear music! Users on Internet Audio: Type your questions in LiveMeeting