Quantcast
Channel: OSIsoft Users Community
Viewing all 1120 articles
Browse latest View live

PI - AF Database

$
0
0

Hi,

 

I created a new database in the AF server using PSE when I migrate the AF model from onve environemnt to another environment. Before creating a new database, rename the existing AF database. Now that I would like to hide those renamed AF databases..

 

Where does a newly created AF database literally get stored...?


How to Archive a PE Calc Result at a Specific Time of Day

$
0
0

I want to archive the result of a PE calc at midnight, or once an hour ON THE HOUR. How do I do that?

 

SendKeys "{ENTER}"

$
0
0

Hello:

 

Im trying to run a macro in an Excel WorkBook from PI Processbock and SendKeys "{ENTER}" do not run the macro( CommandButton):

Example:

 

Set XLApp = CreateObject("Excel.Application")
XLApp.Visible = True
 
XLApp.RegisterXLL ("C:\Program Files\PIPC\Excel\pipc32.xll")
Set XLWkbk = XLApp.Workbooks.Open(XlsArch)
Dim xlWS As Excel.Worksheet
 
Dim obj As OLEObject
    For Each xlWS In XLWkbk.Worksheets
        If xlWS.Name = "REPORTE LR1" Then 
            xlWS.Activate
            On Error GoTo L00
             xlWS.OLEObjects("Get_Values").Object.Activate' Activate the commandButton
             SendKeys "{ENTER}", True' This Should make rund the macro in commandButton, but nothing happens
            ActiveWorkbook.Saved = True
       End If
    Next xlWS
 
XLWkbk.Worksheets(1).Calculate
 
 

L00:

 

XLWkbk.Close False
XLApp.Quit
 
Set XLWkbk = Nothing
Set XLApp = Nothing
 
 
Any Idea?
 
Thanks in advace.
 

Abacus SDK

$
0
0

Hi there,

is the workflow of creating abacus analyses covered in an sdk? which one?

is there documentation or sample projects available?

Cheers, and kind regards,

Gregor

Opening PI trends when clicking value

$
0
0

Hi guys,

 

Is there any way where if you click a value in a PI schematics, a trending for that particular PI tag or PI calculation will pop up.

 

I have attached a snip of an example of the value/part of the PI schematics.

 

 

Attached Images

  • Capture1.JPG

Checking how or which program responsible for substituting specific tags.

$
0
0

Hello, I am new to PI. 

I have a pe tag that constantly have substituted values. However, the same case wasnt applied to the new tag which have exctly same attribute values. Is there any way i can check who/which person or program who is responsble for this substitute tag values? 

I'm stuck - Datalink Digital Point Summary Calculations

$
0
0

I have a digital tag with 2 states, OFF/ON (ordinal values 0/1 respectively).  I would like to create an Excel/Datalink report to show the daily total for this point.  I cannot figure out how to instruct Datalink to process the ordinal values of my point.  Any advice?

 

I'm using Excel 2007 and Datalink 4.1.1

PI Processbook

$
0
0

Hi guys,

I'm a new PI user, and i need your advice.
 

I would like to change some TEXT based on the value, below is the example formula in excel, but I can’t do it in PI processbook.

 

=IF(A=33,"Possible Compressor Damage - Data Possible Suspect",IF(A=32,"Probable Compressor Damage",IF(A=31,"Definite Compressor Damage",IF(A5=23,"Compressor Probable OK - Data Possibly Suspect",IF(A=22,"Compressor Definitely OK",IF(A=21,"Possible Compressor Damage",IF(A=13,"Compressor Probably OK - Data Definitely Suspect",IF(A=12,"Compressor Probably OK - Data May Be Suspect",IF(A=11,"Possible Compressor Damage - Data Probably Suspect")))))))))

 

Thank you

Ediansyah


Scan Class Change NOT Available

$
0
0

Hi all, I searched but could not find anything specific to this issue.

 

Inside my server/Pi ICU, I've both changed and added a scan class for a specific. After restarting the server AND my SMT instance, the changes I made aren't reflected in my SMTools. On the server ICU, they were saved and look correct, but I cannot see the change when trying to reconfigure tags/PEs for the newly adjusted scan class.

 

Neither the NEW(added) scan class nor the edited class are seen in SMTools.

 

 

Installation of PI Manual Logger 2014 fails. Setup return code 1603. InstallThread Error 1603.

$
0
0

When i try to install PI Manual logger 2014  with windows service feature enable, pi manual Logger fails.  Concretly, as you can see in the image attached , creating and starting windows service.

 

If i install PIML disabling windows service (default option) then installation procedure finish properly.

 

i have attached installation log PIMLPCMaster.log. in the last lines you can see error code 1603

 

 

Have you ever find with this error?

 

Thanks in advanced.

Attached Images

  • PI Manual Logger Windows Service.png

Units in Datasets

$
0
0

When I create a Pi calculation using datasets I lose the units of the original 'TAG'. Is there a way to set a unit for a data set?

So when I create a trend or insert a value with the "Show Units" option enabled the unitis will appear.

Possible ways to take the slope over a given month only in segments where slope/derivative are negative

$
0
0

I have a tag that pulls tank level (measured in "feet").  Each foot is equivalent to 9,400 gallons, so over a given day, week, month, etc. I can measure the # of gallons of material pulled from the tank.  Over a month we had several trucks to this tank, so simply taking End Inventory-Start Inventory will not give total volume consumed.
 
If there was a way to measure the portions of the curve/trend that are negative I could measure the ft/min or gal/min and multiply by the time period to get the total volume consumed.  Does anyone know of a possible Performance Equation setup to measure the negative portions of the a curve's slope?

 

 

(see attached screenshot of this trend)
 
2014-10-06 15_09_15-PI ProcessBook - Trend Display_.png

Regression line in Pi Trend

$
0
0

Dear All,

 

I am aware of the Regression line that is useable within the XY Plot feature however I am showing all my graphs using the Trend feature at present. Does anybody know of a way to continue using the trend feature and using it to show your tag line and a regression/line of best fit at the same time. If perhaps this is asking too much what would you suggest? 

 

Thank you in advance.

Ben

PI ProcessBook: How to aply filter to trended values with VBA?

$
0
0

Hello!

 

In our system existing tags have values which better to "clean-out" from trend window.

 

I use this simple code to add tags to trend window:

Tr3.AddTrace sServer & sTag

 

How I can filter values using VBA code?

 

For example:

- filter for Green line should be  >14.503 and less 3500;

- filter for Blue lines filter should be >10 and less 100.

 

FilterVals.jpg

 

Regards,

Maxim

Use PI event frames for failure prediction?

$
0
0

Hello everyone!

I need some real life examples from the Oil/Gas industry where PI tools / event frames have been used to predict pump failures? The whole process, possible examples, presentations?

Appreciate the help!

Nebojsa 


Trends presentation quality

$
0
0

Hello,

 

Here you can see two snapshots from PI ProcessBook and our old SCADA. Both pictures have similar size on screen.

You can see "washed out" pixels around numbers, tag names and trend lines.

Is it possible to improve a picture quality from PI ProcessBook  in this situation?

 

Pres_01.jpg

 

Pres_02.jpg

 

Regards,

Maxim

PI coresight in iphone - what do I need?

$
0
0

Hi All,

 

Have just downloaded the PI coresight app for an iphone, but have no idea what else I need to setup to get things working? Do I need coresight installed on the PI server, do I need a web page host server, etc, etc?

 

Starting from scratch, as the app looked like a nice tool to use.

 

Thanks

 

Col

getting a certain value in timeframe PE

$
0
0

Is there a quick an easy way to pull the nth  highest value during a specified time frame without having to use PI AF?  We have a tag that is writing data every second and we'd like to pull the 45th highest value rom the last 60 seconds. 

Query web data into PI tag

$
0
0

I am trying to figure out the best way to historize data from a table on a website. The usgs puts publishes river flows into a table format that can be queried in various different programming languages. The instantaneous values are posted on their website every 15 minutes, I would like to take their data and historize it in a PI tag.

 

Thanks in advance.

Trevor

Getting C# To Return HTML Tags and PI Data As HTML Code

$
0
0

Hello Fellow PI Users:

 

I want to extract time stamps and values from a PI Tag and display it in an ASP.net web page. Utilizing PISDK here is what I have worked out so far:

 

Target page contains:

        <table>
            <%:theResultsList("SINUSOID") %> //# I want table rows of 'SINUSOID' data to load here.
        </table>

The code behind page contains this function:

        public string theResultsList(string theTagName)
        {
            var _pisdk = new PISDK.PISDK();
            PISDK.Server piServer = _pisdk.Servers["PIServerNameHere"];
            piServer.Open();
            PISDK.PIPoint mypoint = piServer.PIPoints[theTagName];
            string theEnvelopePlease = "";
            string startTime;
            string endTime;
            PISDK.PIValues myResultsList;

            startTime = "*-1.5h";
            endTime = "*";

            myResultsList = mypoint.Data.RecordedValues(startTime, endTime, BoundaryTypeConstants.btAuto);
            foreach (PISDK.PIValue myCurrentValue in myResultsList)
            {
                theEnvelopePlease = theEnvelopePlease + "<tr><td>" + myCurrentValue.TimeStamp.LocalDate.ToString() + "</td><td>" + myCurrentValue.Value.ToString() + "</td></tr>";
            }
            piServer.Close();
            return theEnvelopePlease;
        }

The trouble is the response back looks just like this in the browser:
<tr><td>10/8/2014 12:41:44 PM</td><td>65.85915</td></tr><tr><td>10/8/2014 1:33:17 PM</td><td>86.35349</td></tr><tr><td>10/8/2014 2:08:47 PM</td><td>95.08834</td></tr><tr><td>10/8/2014 2:11:44 PM</td><td>95.08834</td></tr>
 

When I go to view source, it looks like this:

        <table>
            <tr><td>10/8/2014 12:41:44 PM</td><td>65.85915</td></tr><tr><td>10/8/2014 1:33:17 PM</td><td>86.35349</td></tr><tr><td>10/8/2014 2:08:47 PM</td><td>95.08834</td></tr><tr><td>10/8/2014 2:11:44 PM</td><td>95.08834</td></tr>
        </table>

I want it to look like this:

10/8/2014 12:41:44 PM    65.85915
10/8/2014 1:33:17 PM    86.35349
10/8/2014 2:08:47 PM    95.08834
10/8/2014 2:11:44 PM    95.08834


To get it to look like this the function needs to return the results as HTML code containing PI Data. My Question is how do I tell C# to explicitly treat the returned string data as html code? Or is there a better way to get this working by using a DataGridView or some other ASP.net tool? Advise on how to fix this or try something else is appreciated.

Viewing all 1120 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>