|
|
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
|
|
|
|
|
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.
|
|
|
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
|
|
|
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
|
|
|
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.
|
|
|
|
Guest
|