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

2 Pages <12
Drawing lines on a trend Options · View
Michael
#21 Posted : Thursday, January 14, 2010 8:52:43 PM
Rank: Advanced Member
Groups: Member

Joined: 12/3/2009
Posts: 49
Location: Germany/Pennsylvania
Ok, we're back at the starting point. As I wrote earlier, I found no simple solution.

The Exceltrend is more or less the same COM object as in ProcBook.
There are some ways to solve this:
-You use excel charts for trending (there is more functionality, but then you will lose all benefits of the PITrend )
-You develop your own Trend object (.NET of course).
-You extend the functionality of the existing COM trend object.

or you use the method you describe in the 1st post (set up a trace for this vertical line, this time as excel data)
kapilrakh
#22 Posted : Thursday, January 14, 2010 10:15:14 PM
Rank: Advanced Member

Groups: Member

Joined: 9/3/2009
Posts: 32
Location: Massachusetts, USA
I guess I won't be doing it using the Excel Chart for obvious reasons of not loosing PI Trend functionalities.
I have sent an email to the OSISoft techsupport. Hopefully they will reply soon.
Thanks for your inputs Mike.
I will post it here once I get an email from OSI.
RJK Solutions
#23 Posted : Thursday, January 14, 2010 10:37:00 PM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 309
Location: Cheshire, United Kingdom.
kapilrakh wrote:
@RJK

The trend is already there on the excel sheet. It would be great to manipulate an existing trend instead of inserting a new one everytime.

When you add a trend and a trace , we basically have 4 objects on the sheet. Those are,

ExcelTrendWizard1_Sheet1
PITrend1_Sheet1
PIExcelData1_Sheet1
PIArchiveData1_Sheet1

Using these existing objects solving this problem would be an ideal solution.


All you need to do is change a couple of lines in the example code I posted.
Rather than adding the object, set the variable to the OleObject that represts the Trend and the ExcelData container. Then on the trend, clear any existing datasourceenvironments, configure your ExcelData using AddQuerySpecs method then add the ExcelData as a DataSoruceEnvironment for the Trend.

Should find a few minutes spare in the morning to post the code for what I mean.



OSISoft PI System Specialists
PI Consultancy on PI Systems, Analysis Framework, PI custom developments and all things PI.


RJK Solutions
#24 Posted : Thursday, January 14, 2010 11:08:43 PM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 309
Location: Cheshire, United Kingdom.
Kapil, let's not forget about vCampus too if you want some OSI input in to what you are doing.


OSISoft PI System Specialists
PI Consultancy on PI Systems, Analysis Framework, PI custom developments and all things PI.


Michael
#25 Posted : Thursday, January 14, 2010 11:32:34 PM
Rank: Advanced Member
Groups: Member

Joined: 12/3/2009
Posts: 49
Location: Germany/Pennsylvania
Good idea, Rhys
Users browsing this topic
Guest
2 Pages <12
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.