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

Control animation PI with VB variable Options · View
negado
#1 Posted : Thursday, July 14, 2011 2:37:08 PM
Rank: Newbie
Groups: Member

Joined: 7/13/2011
Posts: 8
hello my name is Marco I'm working with SDK for VB pi I need an interface to communicate with VB pi. animations are usually controlled with a PI tag but now I need to control the animations with a VB variable.

example

temp As Double



Dim MyTag as PISDK.PIPoint
Set MyTag = PIServer.PIPoints("TAGNAME")
temp = MyTag.Data.Snapshot.Value
temp = temp/1000



now with "temp" Control animation PI

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.
RJK Solutions
#2 Posted : Tuesday, July 19, 2011 9:01:34 AM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 617
Location: Cheshire, United Kingdom.
Hi negado,

Welcome to the forum.
For completeness I wanted to clarify what you are working with. Are you working with the PI SDK within the VBA environment of PI ProcessBook? If so, when you refer to animations what do you mean? If you could expand on this a little bit more I might understand what it is you are trying to do.
Principal Consultant
Real-Time Data Management @ Wipro Technologies
negado
#3 Posted : Tuesday, July 19, 2011 3:03:07 PM
Rank: Newbie
Groups: Member

Joined: 7/13/2011
Posts: 8
for example when drawing a rectangle usually associate its visibility status of a boolean tag "PI" then run the ProcessBook this rectangle appears or disappears according to state-of tag, I want to do the same but instead of using a tag of "PI "using a variable from VB. I wonder if multistate area can occupy a VB variable instead of a tag of "PI".
I use PI SDK and Work with VBA Within the environment of PI ProcessBook
mauth
#4 Posted : Tuesday, July 19, 2011 9:24:06 PM
Rank: Member
Groups: Member

Joined: 5/24/2009
Posts: 11
Location: Wisconsin, USA
Hi negado,

You could create a Data Set calculation, then select PI Calculation rather than PI Tag when setting up your multi-state.
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.