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

how to auto update pi value in excel ! Options · View
chautran123
#1 Posted : Tuesday, May 25, 2010 10:58:05 AM
Rank: Newbie
Groups: Member

Joined: 5/19/2010
Posts: 8
Location: hanoi
i don't know how to auto update pi value in excel. but not use method Ontime of excel.can you help me .
thank!
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.
RJK Solutions
#2 Posted : Tuesday, May 25, 2010 12:43:16 PM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 612
Location: Cheshire, United Kingdom.
What version of PI Datalink are you using? Version 4.x has an auto updating timer built in to the datalink add in - is it an option for you to upgrade?
Principal Consultant
Real-Time Data Management @ Wipro Technologies
chautran123
#3 Posted : Tuesday, May 25, 2010 12:49:27 PM
Rank: Newbie
Groups: Member

Joined: 5/19/2010
Posts: 8
Location: hanoi
oh my version version of my PI Datalink i use is 2.1 . Smile . so have any way for me to do that with my PI Datalink ?
RJK Solutions
#4 Posted : Tuesday, May 25, 2010 12:54:36 PM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 612
Location: Cheshire, United Kingdom.
Version 2.1, I will need to blow the dust off my manuals for that version BigGrin
What version of Excel are you working with?
Principal Consultant
Real-Time Data Management @ Wipro Technologies
najjarja
#5 Posted : Monday, June 14, 2010 6:27:11 PM
Rank: Member
Groups: Member

Joined: 7/16/2009
Posts: 12
Location: saudi arabia
With the help of a friend who is a programmer, we were able to develop an excel sheet that refreshes pi tags automatically.

See the attached excel file for details.

http://hotfile.com/dl/48...5/Plant_Overview_Final_(2).xlsm.html
dubmark74
#6 Posted : Monday, June 28, 2010 12:05:56 PM
Rank: Newbie
Groups: Member

Joined: 6/23/2010
Posts: 8
I'm also having trouble getting PI data tp update in excel. I have datalink version 4.1.1 and excel 2007. I've set the datalink to update every 10 seconds and i also have a macro running application.calculatefull, but the PI data just shows 'Resize to Show All Values' and when i right-click and select 'recalculate function' it updates. I saw menion of a VB function 'dlresize' in another post. Can some give an example of how this is sued within a macro.

Thanks. Mark.
dubmark74
#7 Posted : Monday, June 28, 2010 2:49:00 PM
Rank: Newbie
Groups: Member

Joined: 6/23/2010
Posts: 8
managed to get this working, for info:

Insert a VBA reference to PIDLDialogs.xla

Private AutoUpdate()

Sheet1.Range("C8BigGrin8").Call dlresize

End Sub
RJK Solutions
#8 Posted : Monday, June 28, 2010 9:43:16 PM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 612
Location: Cheshire, United Kingdom.
Glad you got it working, I would have suggested something along the same lines.

The dlresize method is not well documented by OSI but works perfectly and I was suggested it by OSI TechSupport back in the days when v3 was first released so it looks like it is staying put for now.
Principal Consultant
Real-Time Data Management @ Wipro Technologies
zit1343
#9 Posted : Tuesday, July 05, 2011 3:20:13 PM
Rank: Newbie
Groups: Member

Joined: 7/1/2011
Posts: 5
Location: USA
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.