Skip navigation
All Places > PI Developers Club > Blog > 2009 > August > 28

Associating times with paths

Posted by smohr Employee Aug 28, 2009

This is covered in the CTP documentation, but I want to explore the issue a little here.  The way the WS matches times with paths works like this.  If a time has the name of a path in its datasource property, that time is applied to the path.  If not, the first time in the array is used for a path.


So, if you are doing a trend with three tags, you send the WS three paths and one time range. Got a single value and a trend in your app?  Give use all the paths, then give us the time range of the trend, followed by the single value time instant with the single value path as the value of its datasource property. 


We never, ever, march through the context array trying to match paths and tags one-for-one in order.  This might seem a little counter-intuitive, but it works pretty well and keeps the context array short -- an important consideration for data volume on the wire.  Bear in mind there are a few other wrinkles.  Ranges and instants are just the first context types, and we plan on "casting" contexts.  There are also some provisions in the context realm for intermediate structures to provide for M:M associations between paths and contexts, but that seemed like overkill on the first release.


What do you say?  Can you think of use cases that are hard to satisfy with the rules we have in the CTP?

In my last post, I pre-announced the availability of PI JDBC Driver 1.0 on vCampus this week. I'm pleased to say the software is now available in the Download Center and documentation can be found in the Library. I also pre-announced that I'd be writing more often, so I guess I'm 2 for 2. ;-)


So what are the use cases for PI JDBC Driver?
1) Developing custom Java applications that access PI data
2) Accessing PI data from non-Windows operating systems
3) Using 3rd party Java tools that support JDBC out-of-the-box


For you Java folks out there, check out the PI JDBC Driver manual and system requirements then give this new data access product a try. If you have any questions or run into any issues, feel free to contact our outstanding Technical Support. We also created a new Discussion Hall forum dedicated to PI JDBC Development.


Oh, and if you find this to be a valuable product, leave us a note somewhere here on vCampus - we never get tired of hearing your success stories. Now I'm off to grab my morning cup of Java...

Filter Blog

By date: By tag: