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

Dealing with large String values in Processbook Options · View
MacaroniPI
#1 Posted : Wednesday, October 05, 2011 10:49:53 AM
Rank: Advanced Member
Groups: Member

Joined: 7/16/2008
Posts: 35
Location: UK
Wondering if anyone has any experience of handling large string values in Processbook? Have some messages that plant operators would like to send to the office staff but they are writing short stories. I have had to strip out all the line feeds, I am guessing theres no way of supporting this in String tags....the users are then forced to reduce the text so small its almost unreadable.

Does anyone have any ideas (or preferably has some experience of working with this in past!) I am wondering if I can use some VB instead to read the value and then split the string in multilines and update a text box with this instead...I can probably do this but don't know how to keep it updating live. Another idea would be for a scrolling marquee...thats maybe wishful thinking! interested to hear if anyone has dealt with a similar situation and would appreciate any ideas! Thanks.
Who ate all the PIs?
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.
caffreys_col
#2 Posted : Wednesday, October 05, 2011 11:24:41 AM
Rank: Advanced Member
Groups: Member

Joined: 4/6/2011
Posts: 40
Location: Grimsby UK
Ok just to clarify, Plant ops are sending messages to office staff via Processbook... Why??? Don't they have email on a PC near them (network acces an issue??), or a phone? If you are stuck with messages in Processbook then I can think of a couple of ways of doing this.

1. Use annotations. Create some dummy tags (Text1, text2, etc) and set them up as Lab entry (manual tags, Pointsource L). Create a text box in your processbook display with a command button next to it. When the operator wants to send a message, they fill in the text box, then click on the command button. Behind the command button is VBA code which writes the text in the textbox to an annotation on tag Text1. The office worker can then view the annotation in a different processbook display (this Processbook would need some VBA code to retrieve the annotation text and display it on screen). Not the easiest thing to set up but it should work.

2. Create an SQL database. Create a processbook display as per suggestion 1, but instead of writing to an annotation, the VB code will write to a database entry. The office worker would then have the database open (with a nice front form) showing the latest set of entries. You would need to setup a DSN entry on the plant ops PC to create the link between Processbook and the SQL database.

3. Buy some plant logbook software (Opralog for example). Not the cheapest option but it would allow the operator to log more than messages to the office staff.

Thats about all I can come up with. Sorry it's not a nice set of easy solutions, but the easiest ones are to give the plant op email, or a phone!
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.