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

2 Pages <12
How to create an eventpipe for a PI tag (VB.Net) Options · View
Michael
#21 Posted : Wednesday, March 10, 2010 4:44:11 PM
Rank: Advanced Member
Groups: Member

Joined: 12/3/2009
Posts: 71
Location: Germany/Pennsylvania
Hi Lee,

you are still facing this weird problem?

Michael
Zahid
#22 Posted : Sunday, July 25, 2010 10:25:00 AM
Rank: Newbie
Groups: Member

Joined: 7/25/2010
Posts: 1
Location: Saudi Arabia
I tried to use Eventpipe code to get values for more then one tag

Dim pt() As String = {"cdt158", "Sinusoid"}
....
If myPoint Is Nothing Then myPoint = myPIServer.PIPoints(pt(pt.Count - 1))

The event is raised only for the last tag (sinusoid), the first one is ignored.
sativah
#23 Posted : Tuesday, August 17, 2010 5:34:21 PM
Rank: Newbie
Groups: Member

Joined: 8/17/2010
Posts: 7
Location: mississippi
I have used the event pipe to track the value of a particular tag in a form based vb.net application. When the value of this tag changes quickly and multiple values are sent to the app the application bogs down and becomes non-responsive. Is there some sort of cleanup that I should be doing with the event pipe? The pc memory is not affected and no other applications running on the pc seem to be affected either.

Thanks in advance! Smile
ledward
#24 Posted : Tuesday, August 17, 2010 6:16:29 PM
Rank: Member
Groups: Member

Joined: 3/1/2010
Posts: 15
Michael wrote:
Hi Lee,

you are still facing this weird problem?

Michael


Yea, I am having this problem, but what I did was just polled for the value every 30 seconds to get what I needed. I know it's not the best way to do it, but it was what needed to be done in the time frame I had.

ledward
#25 Posted : Tuesday, August 17, 2010 6:17:07 PM
Rank: Member
Groups: Member

Joined: 3/1/2010
Posts: 15
sativah wrote:
I have used the event pipe to track the value of a particular tag in a form based vb.net application. When the value of this tag changes quickly and multiple values are sent to the app the application bogs down and becomes non-responsive. Is there some sort of cleanup that I should be doing with the event pipe? The pc memory is not affected and no other applications running on the pc seem to be affected either.

Thanks in advance! Smile


Are you using a delegate to change the value on the form?
sativah
#26 Posted : Tuesday, August 17, 2010 6:45:35 PM
Rank: Newbie
Groups: Member

Joined: 8/17/2010
Posts: 7
Location: mississippi
I am using a delegate.
ledward
#27 Posted : Tuesday, August 17, 2010 6:49:40 PM
Rank: Member
Groups: Member

Joined: 3/1/2010
Posts: 15
sativah wrote:
I am using a delegate.

can you post the code that is giving you the trouble?? Without seeing it, it's tough. Thanks eh? Smile
sativah
#28 Posted : Wednesday, August 18, 2010 8:38:24 PM
Rank: Newbie
Groups: Member

Joined: 8/17/2010
Posts: 7
Location: mississippi
Well I went to get the code and decided to do some rearranging while I was there. Seems the problem was just in the way I had the code configured. I am going to do some heavy testing and verify this really did fix it but so far so good. Thank you for the quick response! ThumbsUp
Markowic
#29 Posted : Monday, June 06, 2011 6:52:20 PM
Rank: Member
Groups: Member

Joined: 4/28/2011
Posts: 10
Location: Brasil
Hello there,

Im trying to creat this eventpipe using the Visual Studio 2008. When I start to run the code it stucks on the line "AddHandler myEvents.OnNewValue, myValHandler" saying I need to use the command new. Does some one know how to make it become operational with VS2008?

Thanks,
satisfire
#30 Posted : Thursday, August 25, 2011 9:38:33 AM
Rank: Newbie
Groups: Member

Joined: 8/24/2011
Posts: 2
Location: Thailand
I use this algorithm to run as window service then the trouble I got is memory leak.
Somebody know how to fix this issue?
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.