2009-12-16 - builders café webinar series - programming with event frames (1)
DESCRIPTION
Builders Cafe WebinarTRANSCRIPT
![Page 1: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/1.jpg)
Copyright © 2009 OSIsoft, LLC
PROGRAMMING WITH EVENT FRAMES
BUILDERS' CAFÉ WEBINAR SERIES
![Page 2: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/2.jpg)
Copyright © 2009 OSIsoft, LLC
2
AGENDA
• Vision
• Architecture ( )
• Programming ( )
• Availability
• Q&A
![Page 3: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/3.jpg)
Copyright © 2009 OSIsoft, LLC
3
PRESENTERS
• Chris Coen
– Product Manager
• Chris Nelson
– Software Development Lead
• Steve Pilon
– vCampus Team Member
![Page 4: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/4.jpg)
Copyright © 2009 OSIsoft, LLC
4
VCAMPUS-EXCLUSIVE WEBINARS
• The Builders' Café Webinar Series
• Submit your ideas here:
![Page 5: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/5.jpg)
Copyright © 2009 OSIsoft, LLC
EVENT FRAMES - THE VISION
![Page 6: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/6.jpg)
Copyright © 2009 OSIsoft, LLC
6
EVENT FRAMES ADD TIME CONTEXT
time
![Page 7: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/7.jpg)
Copyright © 2009 OSIsoft, LLC
6
EVENT FRAMES ADD TIME CONTEXT
time
Normal
![Page 8: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/8.jpg)
Copyright © 2009 OSIsoft, LLC
6
EVENT FRAMES ADD TIME CONTEXT
time
Normal Abnormal
![Page 9: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/9.jpg)
Copyright © 2009 OSIsoft, LLC
6
EVENT FRAMES ADD TIME CONTEXT
time
Normal Abnormal Corrective
![Page 10: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/10.jpg)
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
![Page 11: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/11.jpg)
Copyright © 2009 OSIsoft, LLC
8
EVENT FRAMES AND BATCH
Event Frames != Batch
Event Frames > Batch
Batch Є Event Frames
![Page 12: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/12.jpg)
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
![Page 13: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/13.jpg)
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.
![Page 14: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/14.jpg)
Copyright © 2009 OSIsoft, LLC
EVENT FRAMES - THE ARCHITECTURE
![Page 15: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/15.jpg)
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
![Page 16: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/16.jpg)
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
![Page 17: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/17.jpg)
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
![Page 18: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/18.jpg)
Copyright © 2009 OSIsoft, LLC
15
DEMONSTRATION
![Page 19: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/19.jpg)
Copyright © 2009 OSIsoft, LLC
EVENT FRAMES - PROGRAMMING
![Page 20: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/20.jpg)
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
![Page 21: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/21.jpg)
Copyright © 2009 OSIsoft, LLC
18
PROGRAMMING WITH AF SDK
• Assemblies (installed in GAC – Global Assembly Cache)
– OSIsoft.AFSDK
– OSIsoft.AF.UI
![Page 22: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/22.jpg)
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
• ...
![Page 23: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/23.jpg)
Copyright © 2009 OSIsoft, LLC
19
EVENT FRAMES WITHIN AF SDK
• Object model
![Page 24: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/24.jpg)
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
![Page 25: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/25.jpg)
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
![Page 26: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/26.jpg)
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
![Page 27: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/27.jpg)
Copyright © 2009 OSIsoft, LLC
23
OSISOFT.AF.UI NAMESPACE
• Exposes several controls and dialog windows
• Help and examples
– AF User Interface Components Reference
![Page 28: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/28.jpg)
Copyright © 2009 OSIsoft, LLC
24
EVENT FRAME UI EXAMPLE
![Page 29: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/29.jpg)
Copyright © 2009 OSIsoft, LLC
24
EVENT FRAME UI EXAMPLE
• 3 out-of-the-box controls PISystemPicker
AFDatabasePicker
AFViewControl
![Page 30: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/30.jpg)
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
![Page 31: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/31.jpg)
Copyright © 2009 OSIsoft, LLC
24
EVENT FRAME UI EXAMPLE
![Page 32: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/32.jpg)
Copyright © 2009 OSIsoft, LLC
24
EVENT FRAME UI EXAMPLE
![Page 33: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/33.jpg)
Copyright © 2009 OSIsoft, LLC
24
EVENT FRAME UI EXAMPLE
![Page 34: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/34.jpg)
Copyright © 2009 OSIsoft, LLC
24
EVENT FRAME UI EXAMPLE
![Page 35: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/35.jpg)
Copyright © 2009 OSIsoft, LLC
25
PROGRAMMING DEMO
![Page 36: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/36.jpg)
Copyright © 2009 OSIsoft, LLC
26
HELP IN AF SDK PROGRAMMING REFERENCE
![Page 37: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/37.jpg)
Copyright © 2009 OSIsoft, LLC
EVENT FRAMES - AVAILABILITY
![Page 38: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/38.jpg)
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
![Page 39: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/39.jpg)
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
![Page 40: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/40.jpg)
Copyright © 2009 OSIsoft, LLC
CONCLUSION
![Page 41: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/41.jpg)
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
![Page 42: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/42.jpg)
Copyright © 2009 OSIsoft, LLC
32
VCAMPUS-EXCLUSIVE WEBINARS
• The "Builders' Café" Webinar Series
• Submit your ideas here:
![Page 43: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/43.jpg)
Copyright © 2009 OSIsoft, LLC
33
NEXT VCAMPUS WEBINARS
![Page 44: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/44.jpg)
Copyright © 2009 OSIsoft, LLC
34
HOW TO CONTACT US
vCampus Discussion Forums
http://twitter.com/OSIsoftvCampus
http://vCampus.osisoft.com > Contact Us
![Page 45: 2009-12-16 - Builders Café Webinar Series - Programming With Event Frames (1)](https://reader036.vdocuments.us/reader036/viewer/2022062515/563dba6e550346aa9aa5931c/html5/thumbnails/45.jpg)
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