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

Creating a realtime dash board Options · View
uttamb
#1 Posted : Wednesday, January 21, 2009 1:07:56 AM
Rank: Newbie
Groups: Member

Joined: 1/15/2009
Posts: 9
Location: canada
I am new to PI system and new to VB code. But love to explore new concept. When I came across the system in the plant ..thought of creating model.. Few questions one buy one...

1) I have a tag which gives real time cum reading ..but like to have last 15mins..30mins flow ..How to start?

2) Wish to create a table and link it to a auto refresh web site...Is it possible?

Can any body help me..Thanks Brick wall
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 : Wednesday, January 21, 2009 7:52:31 PM
Rank: Administration

Groups: Administration

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

How are you accessing your PI data? PI-Datalink, PI-SDK..?

What table do you want to create, SQL/Oracle database table? Auto refreshing web site, sounds like you want something along the lines of RtWebParts. If you have access, worth downloading it and having a play - or even subscribing to vCampus so you can download it as part of your subscription.

If you can elaborate a bit more on what you want to achieve we can help you out.
Principal Consultant
Real-Time Data Management @ Wipro Technologies
uttamb
#3 Posted : Wednesday, January 21, 2009 10:35:14 PM
Rank: Newbie
Groups: Member

Joined: 1/15/2009
Posts: 9
Location: canada
We are using PI-SDK version 1.3.3.
Presently nothing has been build up yet. Only we have an excel sheet which has partically all the tags which is being refreshed every hour to get the total consumption . I want the same stuff to be linked to the Process Book so that the data can be refreshed by itself .And would give comsumption at different time interval ..which would easy for us to monitor .Also shall give the difference from the predicted value.

I HOPE i am able to give some idea.
Lastly thanks RJK for the forum..

Brick wall
uttamb
#4 Posted : Saturday, January 24, 2009 2:00:58 AM
Rank: Newbie
Groups: Member

Joined: 1/15/2009
Posts: 9
Location: canada
Can any body help me in creating a Data Sets.. ..may be I am missing some kind of basic.
After following all the steps..when I am clicking 'Show Use'....."No Data Set in Use" message is comming.

Everything is new ...but learning..thanks to RJK for the forum.

Brick wall
RJK Solutions
#5 Posted : Wednesday, February 04, 2009 3:53:25 PM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 617
Location: Cheshire, United Kingdom.
Hey uttamb, apologies for the delay.

What are you creating datasets in? I am assuming ProcessBook...?
Can you explain what tools you are using so I can help you out more accurately.
Principal Consultant
Real-Time Data Management @ Wipro Technologies
uttamb
#6 Posted : Thursday, February 05, 2009 10:35:53 PM
Rank: Newbie
Groups: Member

Joined: 1/15/2009
Posts: 9
Location: canada
I am working in PROCESS BOOK. I could understand the Data Sets concept.
Now I have drawn a table with hour. Have inserted the hourly gas consumption tag. Data for the past ours is fine. But when I put the future hours the calc error comes. Is there any way where I can make the table and the hourly consumption shall be updated byitself .future hours column shall be blank


Once again thanks RJK for the forum

Brick wall
RJK Solutions
#7 Posted : Friday, February 06, 2009 9:55:09 AM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 617
Location: Cheshire, United Kingdom.
PI does not hold future data (yet - I believe this is on its way in a future release - no pun intended) so calculations will fail for future data.

To "blank" your calculations you could MultiState your symbols so any undesired result ("Color for Bad Data") is set to No Color. This way bad calculations are not shown on your display, once they calculate a good value they will magically reappear.

Hope this helps.
Principal Consultant
Real-Time Data Management @ Wipro Technologies
uttamb
#8 Posted : Saturday, February 07, 2009 1:36:23 AM
Rank: Newbie
Groups: Member

Joined: 1/15/2009
Posts: 9
Location: canada
Cool... it worked.

Thanks

Brick wall
uttamb
#9 Posted : Sunday, February 08, 2009 9:21:40 AM
Rank: Newbie
Groups: Member

Joined: 1/15/2009
Posts: 9
Location: canada
In my PI Process Book , I want show trends of data imported from a website. Data can be exported to an excel spreadsheet .
My Question: If it is possible! Do I need to give tag name in the spreadsheet or when stored in the PI server archive.

Thanks

Brick wall
RJK Solutions
#10 Posted : Monday, February 09, 2009 9:35:29 AM
Rank: Administration

Groups: Administration

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

You can use an ODBC dataset in ProcessBook to obtain data other than PI. It is worth reading up on ODBC datasets in the PI-ProcessBook help file, it gives some examples in there too.

You can either get the data updated into PI or use an ODBC dataset to access the data from the same data store as your website (assuming website data is stored in SQL/Oracle/MySQL...). You just need to ensure columns are returned as Tag, Value, Time, Status.

Principal Consultant
Real-Time Data Management @ Wipro Technologies
uttamb
#11 Posted : Tuesday, February 10, 2009 10:50:22 PM
Rank: Newbie
Groups: Member

Joined: 1/15/2009
Posts: 9
Location: canada
Once again thanks...I tried to linked data from excel file through ODBC and it worked. Thanks ....

Earlier ..I was trying for future data value.. where RJK had mentioned to apply the Multi State to 'color off ' the bad data's.

When i used next time , the calc fail ..didnot appear ...instead 'count' came in the column ..3600 ..I couldnot understand how calc fail appeared last time.. Can it be explained ..please..

Thanks again

uttambBrick wall
uttamb
#12 Posted : Sunday, June 07, 2009 11:51:11 AM
Rank: Newbie
Groups: Member

Joined: 1/15/2009
Posts: 9
Location: canada
Good Morning RJK,

Thanks for the help. I have been working on the system . Manangement was very impressed with my Real Time Dash Board. Thought of going internet based. Presently we are having PI with SharePoint.
My question...I was trying to insert audio alarm to a tag value. I am not so much good at VB code. Is there any other way?
I would appreciate if any one can share their experience

Thanks

Uttamb
Brick wall
RJK Solutions
#13 Posted : Sunday, June 07, 2009 10:42:31 PM
Rank: Administration

Groups: Administration

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

Well one way I have done this in the past is to use Windows API.
Simple PlaySound function:
Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) As Long

Then use a ProcessBook event (or some kind of timer) to check the state of the values you want a sound to play for. So imagine a few digital PI tags being displayed as a Value ProcessBook symbol on a display, loop round each symbol and check the current state - if it is in "alarm" play a sound. Then you make it a bit more clever and only play a sound on a change in alarm state, e.g. when a value goes into alarm.

Rhys.

By the way, glad your management liked your dashboard! Good we could help in some way...remember to spread the word on what a useful PI forum this is ;-)
Principal Consultant
Real-Time Data Management @ Wipro Technologies
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.