Wonderware Trend - Pen comments

bobbuilder

Member
Join Date
Dec 2006
Location
Ontario
Posts
5
Is there a way to get the tag comments of the pens to display on a trend page? Not sure how to explain this but basically I would need something like HTGetPenName but instead of the name I need the comment (like "HTGetPenComment" or "TrendName.PenX.Comment")

I can do it when I first call up a trend w/ a script but all the trends' pens can be changed on the fly so I need something for whatever pen is being displayed...
 
I did this by creating analog indirect tags for each of the pens, say indirect1,2,3. Then having a window script execute every 1000msec that assigns a tag to the indirect.

indirect1.name = htgetpenname(histdata, updatecount,1);
indirect2.name = htgetpenname(histdata, updatecount,2);
indirect3.name = htgetpenname(histdata, updatecount,3);
indirect4.name = htgetpenname(histdata, updatecount,4);
indirect5.name = htgetpenname(histdata, updatecount,5);
indirect6.name = htgetpenname(histdata, updatecount,6);
indirect7.name = htgetpenname(histdata, updatecount,7);
indirect8.name = htgetpenname(histdata, updatecount,8);

then on the window display as a string indirect1.comment and this will contain the comment.

If there's a better way I'd love to know. Drawback to this approach is the tag you want to indirect must be the same type as the indirect, real to real, integer to integer, etc.

-Will
 

Similar Topics

Is there any way to display a something other than the tag name for the pen label? For example, my tag is "IP087_Level" and I want to display...
Replies
1
Views
1,153
i have Trend That every time that i switching pen i want to know which Tag i see so i want to get The Pen Name how can i get it? i have the hist...
Replies
3
Views
3,996
Hello, I have a computer that has a older version of Wonderware InTouch. The data is working but the Real Time Trend doesn't seem to be working...
Replies
7
Views
2,362
Hello, I am working on a SCADA system using Wonderware Intouch 2014 R2 and have a small glitch with the historical trend feature. Every time I...
Replies
5
Views
2,838
Hi, I've got I think a simple problem but I can't find the solution. In Wonderware Trend my server is disabled/not active but I can log in to it...
Replies
0
Views
1,268
Back
Top Bottom