PI Software Development Kit PI-SDK. Agenda The expanded class hierarchy Data access with the PI-SDK The PITimeServer library Multi-threading and the PI-SDK.

Slides:



Advertisements
Similar presentations
Yokogawa Network Solutions Presents:
Advertisements

DIGIDOC A web based tool to Manage Documents. System Overview DigiDoc is a web-based customizable, integrated solution for Business Process Management.
Dream Report: Advanced Manual Data Entry
Advanced Workgroup System. Printer Admin Utility Monitors printers over IP networks Views Sharp and non-Sharp SNMP Devices Provided Standard with Sharp.
Academic Advisor: Dr. Yuval Elovici Technical Advisor: Dr. Lidror Troyansky ADD Presentation.
OPC Alarm.NET.
1 Empowering Business in Real Time. © Copyright 2009, OSIsoft Inc. All rights Reserved. Integrating Disparate Platforms for Consistent Analysis and Batch.
Slide 1 of 9 Presenting 24x7 Scheduler The art of computer automation Press PageDown key or click to advance.
Printing Terminology. Requirements for Network Printing At least one computer to operate as the print server Sufficient RAM to process documents Sufficient.
ManageEngine ADAudit Plus A detailed walkthrough.
DevNet Unplugged 2002 “Express Your Innovations” Explore The Future PI Application Framework Richard Beeson Software Engineering Group Leader San Leandro,
Real-time HMI and SCADA software for .NET applications.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
ODBC Open DataBase Connectivity a standard database access method developed by Microsoft to access data from any application regardless of which database.
Tapit Call Accounting software for the 21st Century Copyright Trisys, Inc Trisys, Inc 215 Ridgedale Avenue Florham Park, NJ (973)
FILEMAKER 8 SERVER ADMINISTRATION Paula Beveraggi Educational Technology Services.
CSE 381 – Advanced Game Programming 3D Game Architecture.
© 2008 OSIsoft, Inc. | Company Confidential An Enterprise Collaborative Environment to Enable the Daily Operations Decision-Making Process, the Polimeri.
Copyright © 2002 OSI Software, Inc. All rights reserved. PI-NetFlow and PacketCapture Eric Tam, OSIsoft.
The PI-ProcessBook Family Customizable views of your data - Anywhere you want them.
Manual Logger & BuzzMe by James Weller and Elizabeth McNeill Manual Logger & BuzzMe By James Weller and Elizabeth McNeill.
1 Fluke DAQ Software Visual Demo Guide 2680A-APSW.
Advanced PI Calculation Engine Makes Complex PI Calculations Easy! Use of EDICTvb for Multi-Plant Advanced PI Calculations Dane OverfieldEXELE Information.
Tips from the Trenches Rebekah Atkinson Steve Nye, Kathy Kennedy.
Enterprise PI - How do I manage all of this? Robert Raesemann J Jacksonville, FL.
Copyright © 2002 OSI Software, Inc. All rights reserved Review 2002 Look-ahead.
COMP 321 Week 7. Overview HTML and HTTP Basics Dynamic Web Content ServletsMVC Tomcat in Eclipse Demonstration Lab 7-1 Introduction.
Module 7: Fundamentals of Administering Windows Server 2008.
Dream Report: Secure and Reliable Reporting Renee Sikes Applications Engineer Dream Report Brand Manager.
Network Management Tool Amy Auburger. 2 Product Overview Made by Ipswitch Affordable alternative to expensive & complicated Network Management Systems.
LiveCycle Data Services Introduction Part 2. Part 2? This is the second in our series on LiveCycle Data Services. If you missed our first presentation,
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
CITGO Corpus Christi Refinery PI Here, PI There, PI Everywhere 1 PI WEB Graphics Application Management Systems, Inc. Outline pApplication Purpose, functional.
2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and.
PI Performance Monitoring James Wong OSI Software, Inc.
All rights reserved, property and © CAD Computer GmbH & Co.KG 2009 Cover page.
OSI Development Plans Mark Hughes. ProcessBookDataLink PI-APIPI-SDK Automation OLE Objects ActiveX Controls COM Add-ins ODBC Datasets PINetMgr ArchiveBase.
PI-ProcessBook Developer
All rights reserved, property and © CAD Computer GmbH & Co.KG 2009 Cover page.
National Center for Supercomputing Applications NCSA OPIE Presentation November 2000.
Application Framework Richard Beeson Ray Verhoeff.
Northern Mockingbird. Copyright © 2002 OSI Software, Inc. All rights reserved. PI OLE DB COM Connector Making Relational Databases Look Like PI Benny.
1998 PI System Users’ Conference PI 3.2 New Features Enhancements Product Support Plans for the next release.
SYSTEMSDESIGNANALYSIS 1 OO: Chapter 9 Visual Basic: Building Components Jerry Post Copyright © 1999.
PI Data Archive Server COM Points Richard Beeson.
Hands-On Microsoft Windows Server Implementing Microsoft Internet Information Services Microsoft Internet Information Services (IIS) –Software included.
1998 PI System Users’ Conference PI-ProcessBook Brian Bostwick Omicron Consulting Mark Hughes OSI Software, Inc.
Analysis Framework PI AF 2.0 Foundation Project
DDM Monitoring David Cameron Pedro Salgado Ricardo Rocha.
PI Gateway to SAP R/3 Ron Kolz, Gretchen M. Schwenzer, Ph.D OSI Software, Inc.
Copyright © 2002 OSI Software, Inc. All rights reserved. PI Application Framework Richard Beeson March 2002.
EPICS Release 3.15 Bob Dalesio May 19, Features for 3.15 Support for large arrays - done for rsrv in 3.14 Channel access priorities - planned to.
4BP1 Electronic & Computer Engineering Paul Gildea th Year Final Project Presentation.
Windows monitoring Unit objectives: Monitor the operating system Monitor system performance Backup and restore operating system files and data.
Monitoring Troubleshooting TCP/IP Chapter 3. Objectives for this Chapter Troubleshoot TCP/IP addressing Diagnose and resolve issues related to incorrect.
1998 PI System Users’ Conference Genealogy Toolkit & Solutions ‘The Begats’ By, Jack Aude OSI Shri Chaudhary Omicron Consulting.
Open Solutions for a Changing World™ Copyright 2005, Data Access Worldwide June 6-9, 2005 Key Biscayne, Florida 1 Application Deployment Stephen W. Meeley.
Chapter 5 Introduction To Form Builder. Lesson A Objectives  Display Forms Builder forms in a Web browser  Use a data block form to view, insert, update,
REPORTING SOFTWARE for BUILDING & INDUSTRIAL AUTOMATION.
Global ADC Job Monitoring Laura Sargsyan (YerPhI).
1 Channel Access Concepts – IHEP EPICS Training – K.F – Aug EPICS Channel Access Concepts Kazuro Furukawa, KEK (Bob Dalesio, LANL)
FlowLevel Client, server & elements monitoring and controlling system Message Include End Dial Start.
WebScan: Implementing QueryServer 2.0 Karl Geiger, Amgen Inc. BRS NA UG August 1999.
Excel Add-ins New Features and Uses.
Troubleshooting Laserfiche Systems
 Project Team: Suzana Vaserman David Fleish Moran Zafir Tzvika Stein  Academic adviser: Dr. Mayer Goldberg  Technical adviser: Mr. Guy Wiener.
Firewalls Definition: Device that interconnects two or more networks and manages the network traffic between those interfaces. Maybe used to: Protect a.
Building Regression Tests With PeopleSoft Test Framework
Environment Manager Troubleshooting and Debugging
Cover page.
Presentation transcript:

PI Software Development Kit PI-SDK

Agenda The expanded class hierarchy Data access with the PI-SDK The PITimeServer library Multi-threading and the PI-SDK OSI and the PI-SDK Troubleshooting tips Coming attractions Questions

Class Hierarchy PI-SDK 1.0 The current release PI-SDK 1.1 PI-Batch and the Module Database PI-SDK 2.0 Data Access

PI-SDK 1.0

PI-SDK 1.1

PI-SDK 2.0

Data Access with the PI-SDK PIData and ListData The access paths Value Format What do values look like now? PIValues capabilities What can I do with the values? Writing Values

PIData

Data.RecordedValues() Start time and end time as Variant Boundary type Filter expression Show filtered Asynchronous Returns a PIValues collection

What’s in a PIValue?

PIValues – More than a datatype

Writing values to PI UpdateValue and UpdateValues RemoveValues

Demo Retrieving PIValues

Advanced Topics Event pipes Using asynchronous calls

Problem: Alarm Application Your app must catch every event But you can’t listen all the time Polling may miss an event Oop s

The EventPipe Object Get from a PIPoint or a PointList Collects value changes Count property Take, Peek methods First In, First Out (FIFO). OnNewValue event Can be throttled to avoid event overload

Problem: Long Queries Long blocking calls inhibit user response and slow down your application But breaking the query into small chunks may reduce efficiency Server does redundant work More network calls

PIAsynchStatus Object Lets you monitor the status of a query Sends an event when done Provides for progress bar Many calls can be asynchronous PIPoint.Data archive retrieval PointList.Data archive retrieval PIValues.RecordSet Server. GetPoints, GetPointsSQL PISDK.GetPoints MessageLog.List

Using PIAsynchStatus Dim WithEvents asy As PIAsynchStatus Set asy = New PIAsynchStatus Dim pv As PIValues Set pv = MyPoint.Data.RecordedValues (“*-1h”, “*”,,,, asy) Rem pv.Count should be zero... Private Sub a_OnStatusChange If asy.Status = csCompleted Then...

Time in the SDK Classic problems: summer time, time zones, clock drift The solution: PITimeServer

Time—The Problems Summer time (DST) What are the rules for this location? What were the rules last year? We must track historic changes Does my computer follow the rules? It probably doesn’t even know them. Even if it does (NT), it may not follow them.

Time—The Problems Time zones Servers can be in various time zones Clients can be in a different time zone from any server Queries must be interpreted in the time zone of the server

Time—The Problems Clock drift Even in the same time zone, the client clock may not be exactly the same as the server clock Real-time data inputs to a server should be timestamped with the server clock, i.e. adjusted for clock drift Historical inputs should not be adjusted for clock drift

Time—The Problems Time intervals (days, months, shifts) Is 1 day = 24 hours ? Not always, if you observe summer time On March 30, what does this mean? “* - 1 month” Can I define my plant shift schedule?

Time—The Solutions PITimeServer Independent COM server DLL Does not require PISDK.DLL for support Defines these objects: PITime, PITimeFormat, DynamicTime PITimeZoneInfos, PITimeZoneInfo DeviceTimeZones TimeIntervals, ITimeInterval

PITimeZoneInfo object Encapsulates time zone information Offset from UTC Summer/winter time change rules Historical changes in rules Every device is assigned one Server, client, instrument PITimeZoneInfos collection All known time zones on this client User can add or remove zones

Time Objects: PITime Lightweight, server-independent Translates wallclock to UTC using client-node time zone information Operations: UTCSeconds property UTCFileTime property LocalDate property SetToCurrent method

Time Objects: PITimeFormat Superset of PITime Knows its time zone TimeZoneInfo property Parses time strings Microsoft format (localized) or PI format Formats output strings Works with time intervals “subtract 3 weeks”

Time Objects: DynamicTime Superset of PITimeFormat Represents a moving time, such as “ * ” or “ * hours ” Property values change constantly Referenced to a known clock source Server clock Client clock Device clock, user-defined

ITimeInterval Object Represents a kind of interval Name, ShortName:month, mo MemberLo, MemberHi: 1, 12 Member(Short)Name: January, Jan, … Operations: given a time— What month is it? When did that month start? Add or Subtract n months How many months between two times?

TimeIntervals Collection Contains all intervals known on the client Interval servers Installed via registry entry Standard: year, month, day, week, weekday, yearday, hour, minute, second User-defined: whatever you want Shift, Plant day Fiscal year/month/week/quarter

Threading Release 1 was apartment-threaded Release 2 will be free-threaded Apartment-neutral Uses the Free-Threaded Marshaler (FTM)

If It Ain’t Broke… Apartment-threading works correctly But performance is unacceptable

Why Should I Care? Multi-threaded design is natural for many applications Interfaces—thread per scan class Displays—thread per graphic Today, this mostly affects C++ developers VB7 will support free-threading

OSI and the PI-SDK Redesigns of existing products New products in development Existing products

Redesigns for the PI-SDK PI-ProcessBook PI-DataLink Sigmafine PI-BatchView PI-Profiles

New Applications PI-PointBuilder PI-AlarmView Real-time SQC Point Manager PI-AutoPointSynch These are demonstrated Tuesday afternoon.

Controls and Libraries PI-BatchView 3.0 Module Database Controls Tag search

New Interfaces PI-Perfmon OPC ICCP

Existing Products Embedded PI systems Point creation User/Group management Batch Event File Interface Integration with batch systems UNIINT Flexible attribute retrieval PIlog32.dll and sdkreg.dll

Troubleshooting Tips After the setup Read the setuppisdk.log Run AboutPI-SDK The new apisnap

AboutPI-SDK Version Info Timeout Info Hidden Connect Button

Connecting Manage your Servers Here

Server Management

Communication Layers What’s a pinetmgr and do I need one? What’s a redirector and how is it configured? ~\pipc\dat\pisubsys.cfg

Pisubsys.cfg Redirected Generic_local hostname:portnumber For example: Generic_local bilbo:5450 Local pinetmgr Generic_local \\.\pipe\rendevouz file path For example: Generic_local \\.\pipe\e:\PI\dat\piv3.rdz

What if? Remember AboutPI-SDK = apisnap Can’t run AboutPI-SDK Check error message Check setup

What if? Can’t connect Is server running? Client side Ping, apisnap, ProcessBook Server side Check services.(Net start, or services applet) Does piconfig work? Does pisnap work? Is the local pinetmgr service running? Try using a redirector

What if? Err.Description Often includes server specific errors Intermittent errors If it used to work, suspect the server PI-SDK web page Reported Problems

Coding Problems Try the examples in the help file Try the sample applications on the web Isolate the problem Send small examples that demonstrate the problem to tech support.

Coming Attractions PI-SDK 1.1 ModuleDatabase/ PIBatch PI-SDK 2.0 Data Any beyond

PI-SDK Questions?