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

Tag Average excluding zero / minimum value

$
0
0

Hi All,

 

I am new in OSI PI. I need one help regarding to Average calculation.

 

I have a tag from which I can get the value every 5 min interval. I need to take average of all values having value > 0.5 from midnight to midnight.

 

Example :

 

00:05  = 0.33

00:10  = 0.25

00:15  = 10.00

00:20  =  0.25

00:25  =  8.00

00:30 =  0.10

 

I want to exclude value less than 0.5. So, I have only two values remining 10.00 and 8.00.

I need final output 9 that is average of 10 + 8 = 18

18/2 = 9.

 

 

Thanks,

Amit


Excel 2013 has stopped working!..please help me!!!!

$
0
0

Hi,

 

I just have already installed PI DataLink 2014 in my computer and my Excel 2013 started to stopped  working!.. when I lunch Excel in shows the following message "Microsoft Excel has stopped working",  why can this be happening???, I don't know how to fix this problem, please help me!!!!

 

Thanks in advance!

 

Alex

Is it possible to write the data in PI database using PI JDBC

$
0
0

Hi,

 

Please help.Is it possible to write the data in PI database using PI JDBC?.I am able to read the data by using PI jdbc.But I don't know how to push the data in PI database.

 

Please share some sample example to this approach.

 

Thanks,

Vignesh

How to query PI AF data using Linked server

$
0
0

Hello Everyone,

 

I am looking for options to query PI AF data using Linked server . Please find below AF deployment and scenario which is giving connectivity issues.

 

PI AF Deployment

 

1) AF Application Server - Server C

2) AF SQL Server - Server B

3) Linked Server - Server B

4) Application Server - Server A

 

Here, When Application Server A tries to get metadata from AF Application Server ( C) through Linked Server (B) it result in Double hop connection.

 

To avoid, Double hop issue, we tried to setup Constraind Delegation which allows Linked server to connet to AF Application server. Still we are getting the connetion error.

 

Application Server uses Service account to connect to the Linked server and Service account is having read only access to AF Database.

 

Can someone guide here to setup Kerberos for sucessful connection? Thanks in advance.

 

 

 

 

picomp vs picomp2

$
0
0

Greetings,

 

We are querying data from OSI Pi and noticed that on the table picomp2 the numeric data turns to exponential where as on picomp it does not.

 

IE:

 

picomp2

2014-09-16 10:20:58.0360100 1.061605E+7
2014-09-16 10:20:28.0410000 1.0613921E+7
2014-09-16 10:19:58.0320100 1.0612333E+7
 
picomp
2014-09-16 10:20:58.0360100 10616050
2014-09-16 10:20:28.0410000 10613921
2014-09-16 10:19:58.0320100 10612333

 

Is there a setting on picomp2 to NOT have the number go to exponential form?

 

Thanks,

Sean

Cumulative Values and Reset @ 1st of month

$
0
0

HI Everyone,

 

I am quiet new to PI i have one request from user to create cumulative values and it should reset at 1st of every month,

how can we get cumulative values and it should reset at 1st of every-month

 

Tag1=Tag2+Tag3

 

the above one is my existing formula,  now this is getting normal value, am expecting this formula should get cumulative vlaues and it should reset @1st for month

 

Awaiting for response

Thanks in Advance

 

--

Regards

Ashwin

editing tags with VBA

$
0
0

Hello,

 

I'm currently tring to edit the Descriptor on autmotaically created Tags.

These Tags are created on Random occasions with the PI UFL Interface.

 

To edit the default descriptor I try to create a vba Script that reads the descriptor from an Excel file and edits the Tags via the PI SMT AddIn.

 

Currently I can't find a way to call the SMT AddIn functions directly in vba.

 

Regards

Felix

Pi Totalizer help with finding final result

$
0
0

Hi All,

 

I have a few totalizers setup totalizing flow rates.  They seems to be working fine, accumulating when they should be.  (I have filter expression enabled).  I have "Write Final results" set to when expression equals 0. ('CARB.IST1.XFERON'<>"Inactive"), which seems to be working...

 

Now I am looking for the final results to display them in Excel using Rockwell's Vantage point plugin, I would like to know how to only show final results in excel and not interim results, which is what I am getting when I use the excel wizard to pull data.  The final results could be written at any time, and I have no way of knowing when that would take place, so I cannot specify an exact time to show the values only at that time.  Is there a flag to differentiate between interim and final results?

 

Any help would be appreciated.

 

Thanks,

 

EDD


Pi Server Time

$
0
0

Hi there,

How do I sync the Pi server time with another system such as ABB DCS

 

Thanks

Chris

RDBMS Interface Allowed SQL

$
0
0

I have set up an Interface to retrieve data from an SQL server and using Input Points via Tag Distribution backfilling using Input Recovery to write to PI. 

 

I am collecting from 2 tables and would like to retrieve the points in 1 SQL call using UNION ALL.  The manual doesn't really say what you cannot do with SQL other than saying SELECT, UPDATE, INSERT, DELETE are the only valid SQL statements. 

 

If i split my SQL into 2 files and use 2 Distributor Tags to carry the SQL it works fine but that seems a little cumbersome when i could retrieve the data in 1 SQL call.

 

When i try and UNION ALL, the interface complains and i get the ODBC error 07009 Invalid Descriptor Index error. 

 

Can the interface handle a UNION ALL, or am i doing something wrong in my statement?

 

select Sample_Date as PI_TIMESTAMP, REPLACE(CAST(UPPER('TESTGL_'+Equipment_Name+'_'+Variables) as VARCHAR(80)), ' ', '_') as PI_TAGNAME, CAST(UPPER(OutputValues_PI) as VARCHAR(80)) as PI_VALUE

from PetexDP.dbo.v_custom_apache_VanGoghGL_BK_ALLOC_Results_For_PI

where OutputValues_PI is not null

and [Input / Output] = 'Output'

and row_read = 0

and Sample_Date > ?

and Sample_Date < dateadd(minute, +10, getdate()) /* PI won't accept anything more than 10 minutes in the future */

UNION ALL

select Sample_Date as PI_TIMESTAMP, REPLACE(CAST(UPPER('TESTPROD_'+Equipment_Name+'_'+Variables) as VARCHAR(80)), ' ', '_') as PI_TAGNAME, CAST(UPPER(OutputValues_PI) as VARCHAR(80)) as PI_VALUE

from PetexDP.dbo.v_custom_apache_PROD_BK_ALLOC_Results_For_PI

where OutputValues_PI is not null

and [Input / Output] = 'Output'

and row_read = 0

and Sample_Date > ?

and Sample_Date < dateadd(minute, +10, getdate())

order by PI_TIMESTAMP ASC;

P1=TS

 

Error: Value at This Time Already Exists

$
0
0

Hello.

I have many error messages on PI log messages such us:

 

9/18/2014 3:56:54.36601 PM, , Error, PIarcmgr::addevent failed, mode: 0 ptid: 70067 recid: 248405 status: [-109] Value at This Time Already Exists event time: 8-Sep-14 13:06:14.80200 Value: DS_0_313, piarchss, , piarcmgr, , , , , , , , ,
9/18/2014 3:56:54.36601 PM, , Error, PIarcmgr::addevent failed, mode: 0 ptid: 70062 recid: 248407 status: [-109] Value at This Time Already Exists event time: 8-Sep-14 13:06:14.80200 Value: DS_0_313, piarchss, , piarcmgr, , , , , , , , ,
or
9/18/2014 3:14:57.375 PM, , Error, PIarcmgr::addevent failed, mode: 0 ptid: 90839 recid: 0 status: [-109] Value at This Time Already Exists event time: 18-Sep-14 15:14:23 Value: 98.938, piarchss, , piarcmgr, , , , , , , , ,
9/18/2014 3:14:47.36 PM, , Error, PIarcmgr::addevent failed, mode: 0 ptid: 82395 recid: 0 status: [-109] Value at This Time Already Exists event time: 18-Sep-14 15:14:13 Value: 2.1051, piarchss, , piarcmgr, , , , , , , , ,
 

 
what is the cause of these errors? What do these errors do not occur?
This is points from OPC interfaces, different interfaces.

 

Error: Value at This Time Already Exists

$
0
0

Hello.

I have many error messages on PI log messages such us:

 

9/18/2014 3:56:54.36601 PM, , Error, PIarcmgr::addevent failed, mode: 0 ptid: 70067 recid: 248405 status: [-109] Value at This Time Already Exists event time: 8-Sep-14 13:06:14.80200 Value: DS_0_313, piarchss, , piarcmgr, , , , , , , , ,
9/18/2014 3:56:54.36601 PM, , Error, PIarcmgr::addevent failed, mode: 0 ptid: 70062 recid: 248407 status: [-109] Value at This Time Already Exists event time: 8-Sep-14 13:06:14.80200 Value: DS_0_313, piarchss, , piarcmgr, , , , , , , , ,
or
9/18/2014 3:14:57.375 PM, , Error, PIarcmgr::addevent failed, mode: 0 ptid: 90839 recid: 0 status: [-109] Value at This Time Already Exists event time: 18-Sep-14 15:14:23 Value: 98.938, piarchss, , piarcmgr, , , , , , , , ,
9/18/2014 3:14:47.36 PM, , Error, PIarcmgr::addevent failed, mode: 0 ptid: 82395 recid: 0 status: [-109] Value at This Time Already Exists event time: 18-Sep-14 15:14:13 Value: 2.1051, piarchss, , piarcmgr, , , , , , , , ,
 

 
what is the cause of these errors? What do these errors do not occur?
This is points from OPC interfaces, different interfaces.

 

Watch out !! - Excel 2010 Retrieving PI dates in 2018 (future)!!!

$
0
0

Hi,

I would like to advise PI Datalink users about Excel 2010 dangerous option that makes PIDatalink values appear with wrong dates (advanced 4 years)....

 

Microsoft Excel 2010 allows users to change to 1904 date system (difference between 1900 and 904 date system) using the Excel Advanced Options. In the File menu –> Select Options link. This would display the Excel Options window. Navigate to Advanced and scroll down to the When Calculating this Workbook section.

 

image_thumb.png

 

Do not mark this option!!!

 

Thanks.

PI Tag Attribute into an AF Element Attribute

$
0
0

Hello,

 

Does anyone know if I can get the 'creationdate' (PI Tag Attribute) into an AF Element Attribute?  Ideally, in template form, I would have something like this in the AF Attribute Settings:

\\%Server%\%TagName\creationdate

and I would see the creationdate as the value

 

Thank you for your help.

 

Combining a calculation & totalization

$
0
0

Hello,

 

Wondering if someone has some knowledge on how to achieve this.

 

I'm trying to totalize the mass of a component to pass through a unit in a given day. I have a tag with volumetric flow (let's call it Tag-1), and a tag with concentration (Tag-2). To totalize daily mass flow, I need to multiply the two tags together and then totalize the product daily.

 

I'm aware that each of the two operations alone are very achievable, but I'm having trouble combining the two.

 

I only have access to ProcessBook. I also know this would be easy in Excel, but I'd rather (if possible) have a Process Book Display alone to represent this total.

 

Any help would be hugely appreciated.

 

Cheers!


PI Manual Logger Installation: Windows Service isn't present on my windows services

$
0
0

Hi,

 

I've just installed PI Manual Logger 2014 and the ML windows service isn't present on my windows services.

 

I've read that "PI Manual Logger Windows Services" is used to synchronize PimlWindows Database with PI Server.

 

Please, I've reviewed the "PI-Manual-Logger-2014-User-Guide.pdf" and I haven't found any method to create this services.

 

This is the windows services shown on PI ML documentation:

ml%20services.png

 

Can anyone help me?

 

Thank you in advance!

PI Manual Logger: Support for Future Data

$
0
0

Hi, 

 

According to the following feature of PI Manual Logger 2014 announced on PI Manual Logger datasheet (DS_PI Manual Logger_LT_EN.pdf): 

  • Support for Future Data: With PI ML, future data collected as part of normal data entry is automatically queued for sending to the PI System.

I'm trying to synchronize ML database with a PI server to send automatically future values of a tag.

 

I've saved future values on ML but I've to synchronize manually using this tool:

 

PI SYSTEM > PI Manual Logger > PIML Configuration Tool > Database > Sync PIML Data with PI

 

synch.png

 

I need to configure PI ML to send automatically these data instantly when the time match with the timestamp of the future data saved on ML 

 

I think that "PI Manual Logger Windows Services" should synchronize automatically saved values on ML with PI.

 

ml%20services.png

 

Anyone can help me?

 

Thank you

Attached Files

Selecting a child attribute in a rollup analysis

$
0
0

Hi there,

 

I am currently trying to set up a rollup calculation in an analysis template. The attribute that I am trying to roll up has been created in the attribute template but it is a child attribute. This is preventing me from choosing it as the attribute name that the rollup needs to take place around. For example, the main attribute is 'Run'. The child attribute of interest is 'Signal'. In the Analysis Template tab, under Attribute Name, I can only enter 'Run' not 'Run|Signal'. 'Run|Signal' doesn't appear on the list of attributes to select but it is the one of interest. 

 

Please can someone assist with this?

 

Many thanks

Andrea

 

 

PI Module Database and PISDK: References to Properties and Alias return no reference sporadically

$
0
0

Properties under specific PIUnits will work fine but then under others I will not get any values back. Could there be some sort of corrupt in the module database? I am using an EMDVB interface to create batches in the batch database. I have added some custom properties and alias on top of what the interface is using. In my code I reference those properties when needed. Of course I had no problems in development, but when move onto a clients machine the properties would not always read in properly. 

 

 

The code below is used to get all of the values which are then used in a short term cache. 

        For Each piProperty As PIProperty In phaseModule.PIProperties
            Select Case piProperty.Name
                Case "MaterialName"
                    phaseData.materialName = piProperty.Value
                Case "MaterialCode"
                    phaseData.materialCode = piProperty.Value
                Case "EngUnits"
                    phaseData.engUnits = piProperty.Value
            End Select
        Next 

Some VBA information and maybe assitance

$
0
0

Hi all.
I am currently attempting to biuld a procbook page to have a record of the running hours of a gearbox since its last oil change.
 
I can do this quite easily in Excel using the following methodolgy
 
1. Take date of last oil change in thsi case 1/1/2014
2. Use =PIArcVal("PI_TAG","1/1/2014",1,"192.168.201.38","auto") to recover the running hour of the pump motor unit at that time
3. Use a Now() statement to get the current date and time e.g. 9/22/2014 10:49
4. Use PIArcVal("PI_TAG","9/22/2014 10:49",1,"192.168.201.38","auto")  to recover the current running hours
5. Subtract the two. 
6. This will give the running hours of the gearbox since the oil change.
Simple.
From this i can then go on to build a system that highlights when a change is due or even overdue, based on the hours.
 
But to make this really usefull and look more professional for the entire plant staff, it would be better displayed via procbook. This would also reduce the risk of it being "adapted" as excel spreadsheets seem to be.
 
But i am struggling to get procbook VBA to give an archive value from PI. I can get the snapshot value using
mydesiredvalue = valuex.getvalue (vrtime,vrstatus)
but cannot find a mthod to recover a value from the past
 
The times can be input from a textbox and using the now() statement in vba, the maths is not tough and i can display the result using
TextBox1.Text = mydesiredvalue on the Procbook page.
 
So now you are aware of my issue , can anyone help me to solve this. I hope there is some VBA code to help,. 
 
Ian F

Viewing all 1120 articles
Browse latest View live


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