YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

Using ODBC for Process Book Trend Options · View
dubmark74
#1 Posted : Thursday, August 18, 2011 10:30:54 AM
Rank: Member
Groups: Member

Joined: 6/23/2010
Posts: 14
Hello, i'm using ODBC in process book to access data in a SQl database. I can access the data fine, the problem is when i try to draw a trend of the data, it simply takes the latest value and uses that across the time range so i have a straight line. The question is how do i pick up data from previous time period and trend that. Hope you can understand this. Thanks.
Sponsor  
 

OSIsoft vCampus is a subscription-based, online offering that consists of providing everything people need to develop applications on the PI System.
We invite you to take a "tour" of the OSIsoft Virtual Campus - also feel free to consult the FAQ  or contact OSIsoft vCampus for more details.
caffreys_col
#2 Posted : Monday, September 12, 2011 3:48:48 PM
Rank: Advanced Member
Groups: Member

Joined: 4/6/2011
Posts: 40
Location: Grimsby UK
I have done something similar to what you are trying (getting data from Excel into a Processbook trend). I had to create a dataset and then fill the dataset with values based on an SQL query. You also need to make sure the you have a DSN connection to your database otherwise you won't get any data, but it sounds as if you have already done this.

I can send you my Processbook display with the VB code behind it, and that should help you out a bit. Just email me if you want it. You can probably remove some of the code thats there as it might not be applicable for you but the basics of getting the data displayed is there.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.