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

PI Display Document not updating

$
0
0

Maybe you can help.  I am a novice at integrating PI into other programs.  

 

My goal is to have a PI trend displayed on a Cimplicity screen that periodically updates to display the past hour or so of data.  

 

I can insert an OLE Object - "PI Display Document" into my screen and while I have the document "open" the data will update.  However, if I try to view the screen with CimView, it will not update.  

 

What do I need to do to get it to update?  Script?  If I add a script, do I need to add it to the PI Display Document, or to the Cimplicity screen?  

 

Thanks in advance.

 

 


Performance Equation for PI Manual Logger Data

$
0
0

Dear all, 

 

I am clueless on how to generate PE tag for this case:

 

Simply I would like to have a tag or PE tag that can total the value from 5 other tags which are not continuous from instrument data, but entered one by one using PI Manual Logger whenever the lab analysis test completed.

 

What parameters & settings do I have to specify in Performance Equation to achieve this so that it automatically totalize the values as we enter the data or keep updating until all 5 tags values are entered? see example below:

 

sample taken at 24:00 hours, analyzed, and data entered to PI below: 

Tagname ;  Value ; time entered into PI Manual Logger

Tag1    1  (entered now)

Tag2    2  (entered 10 minutes later) 

Tag3    3  (entered 1 hour later)

Tag4    4  (entered 1 hour later)

Tag5    5  (entered 30 minutes later)

 

PETagTotal  = (1+2+3+4+5) = 15

 

so at 24:00 hours, PETagTotal value is 15

 

Thank you for your inputs & help

 

Best regards, 

 

 

 

problem with Pe equation

$
0
0

Hi,

This is my first post here. I am currently in an internship as a Pi programmer and i do not have access to pipetest.exe or the log files of this Pi System (I have no access whatsoever to the server utilities). I am having problems with the following Pe equation and am at loss as to why i get a 'Calc Failed' value everytime it calculates. I have access to almost no ressources except a home-made program to create the tags, the Pi system explorer and Datalink.

Here is the Pe equation in question:

 

(TagVal('260-235-VIF-130.II.CAL','t')-TagVal('260-235-VIF-130.II.CAL','y'))/(TagVal('260-235-ICR-264.K-Run_time.CAL','t')-TagVal('260-235-ICR-264.K-Run_time.CAL','y'))

 

It is supposed to calculate the average of the current of some machines. (difference in total current over a day and the machine's runtime).

I have many tags like this one and they all have the same problems.

PS:I have verifie the tags used in the equation and they are working correctly, also, they do have values at timestamp "y" and "t".

Thank you very much in advance for all your help!

pbSymbolPolyline

$
0
0
i am wondering about the polyline function.
My questions are:
1) why does ProcessBook create 5 points by default  when a polyline is created?
2) how does one remove/create points of a polyline?
 
the .count parameter seems to be a read only parameter
 
below is my attempt.
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sub CreatePolyline()
    Dim iPolyline As Polyline
    Dim j As Integer
  
    j = 1
    
    Set iPolyline = ThisDisplay.Symbols.Add(pbSymbolPolyline)
    With iPolyline
        .EnableScript = True
        .Name = "Polyline" & j
        .Left = -14849
        .Top = 14328
        .BackgroundColor = -1
        
        '.Endpoints.Count = 1
        .Endpoints.item(1).X = -14800
        .Endpoints.item(2).X = -14800
        .Endpoints.item(3).X = -14800
        .Endpoints.item(4).X = -14800
        .Endpoints.item(5).X = -14800
        '.Endpoints.Insert(item(6), -2, 2).X
        '.Endpoints.remove (.Endpoints.item(5))
        '.Endpoints.remove (iPolyline.Endpoints.item(5))
        '.Endpoints.remove (.Endpoints.item(5).X)
        '.Endpoints.remove (.Endpoints.item(5))
        
    End With
End Sub
 
 
'"vba watch" was used in conjunction with the following code to sort of figure out stuff
'break was placed at msgbox statement while stepping through
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sub whatIsIt()
    Dim mine As Polyline
    Dim b 'As Variant
    Dim d
    Set mine = Me.Polyline1
    Set d = Me.Polyline1.Endpoints
    'Set b = Me.Polyline1.Endpoints.item(1).X
    'Set b = Me.Polyline1.Endpoints.Item(1).Application
    'Set d = Me.Polyline1.Endpoints.Item(1).Parent.Item(1)
    'MsgBox Me.Polyline1.Endpoints.item(1).X
    'MsgBox Me.Polyline1.Endpoints.item(2).X
    MsgBox "test"
End Sub
 
 
any insight to this would be appreciated

 

Datalink - get the last value

$
0
0

Hi all,

 

Is there a way to get Datalink to give me the last value of a tag?

 

I want to compare values and if X > Y then make X bold or highlight it. Not sure if the latter is possible in Excel.

Update: conditional formatting:)

 

Thank you!

Isamu

Evaluates Good, but Archive and Snapshot Bad bad bad

$
0
0

Hello folks,

 

greenhorn here,

I have been working on these Performance Equations for the past few weeks, and believe the math to be solid. Here's a typical one:

IF (( (TagVal('PH_VSTATUS_SIM')) And 2) = 2) THEN 1 ELSE 0

PH_VSTATUS_SIM is a normal tag incoming from PLC, sends us a 16 bit integer register, where each bit carries different meanings, so above equation uses bitmask-bitwise-and method to extract info regarding the second spot in that 16bit register.

 

When I click Evaluate button in Equation Tab, the result box shows the expected values for the various inputs on 'PH_VSTATUS_SIM' tried. 

That Rocks. It's good.

 

What makes me sad is below that, the "Snapshot:" line with Timestamp and Value. It reads 0 always, irrespective of any input change.

 

What's puzzling is that looking at it from Current Values under the Data SMT node, and the Archive Editor view shows a history of value 0... a couple of events triggered at same time it should have written a 1 in there. Now I am supposed to build upon these booleans for more complex PE Tags, and until these are reliable I am stuck.

 

Could you kindly point me in the right direction regarding these PE-tag-point configurations?

Why would the Evaluate value be one thing and the Snapshot Value going to Archive be another? How is that possible? 

 

Here's what I've tried so far:

  • Changed Scheduling from every 1 second (Scan class) to Event based, dependent upon Event tag: 'PH_VSTATUS_SIM'
  • Turned off compression altogether
  • Changed timestamp from "from triggering event" to "evaluation time" and back.
  • Changed Exception Deviation to 0, with min and max times to 0.
  • In Archive tab, Typical value is set to 0, Zero is set to 0, and Span is set to 2. 

 

What am I missing here?

Many thanks in advance,

-h

 

PI ProcessBook Scroll Bar Disappearing

$
0
0

Hello! I have been working on a couple sets of displays in PI ProcessBook for  the past couple of months (this is my first experience with PI). Every once in a while I will be working and realize that the scroll bars on a display page have gone missing. It doesn't happen all that often, but I have yet to find out what causes the problem or how to get the scroll bars back. Currently, when this happens, I am having to recreate the page because we use the side and bottom scroll bar when looking at/using the displays. Does anyone know what I am doing to cause this, or how to regenerate the scroll bars once they go missing? I haven't found anyone who is having this issue as of yet. Thanks in advance!

VCAMPUS LICENSE

$
0
0

If i purchase the vcampus license, will i also get the trial for pi server and other application for PI System?


Simulate tag "calc failed" for quality monitoring

$
0
0

Hi,

 

I'm a quite new user in PI.  I have to send a calculated tag from PI to an OPC server.  In parallel, I want to monitore this tag quality so if anything go wrong, I can take action automatically.

 

I have trouble for testing the monitoring part.  I'm using the "badVal()" function in pe but i'm not able to simulate bad values (such as "calc failed") to just see if it works.  I tried to insert non existing tags in the performance equation, the value freeze that's it.

 

Thanks

 

David

OPC interface

$
0
0

Hi;

I need some assistance configuring PI OPC interface.

So far PI OPC client is working fine and reading the value successfully from an Experion OPC Server (HWHsc.OPCServer)

But reading the same tag in PI shows the following error:

“Developer load structure failure… Can not have polled tag in scan class 1”

Instrument tag is the same as what is shown in ItemID on  the PIOPC client.

Appreciate your help.

Yanelly

Most performant way to query for 50+ tags historical?

$
0
0

Hi There - I run queries against pimax, pimin, and piavg from a linked SQL Server. I have this working very well as pass-through using an SQL OPENQUERY with the SQL WHERE below. I often want to query for say a 5-min timestep of 50+ tags for a week or even a month. The results are then rendered on displays. Mostly my approach works acceptably. However if I want to query say daily timestep for 100 days the query may become terribly slow.

 

Is the syntax below efficient? It doesn't work well in some combinations of time period and timestep. - Thanks in advance.

 

 

SELECT tag, time, value FROM piarchive.piavg

WHERE TAG IN

(

tag1,

tag2,

tag3,

etc. up to 50+ tags

)

AND timestep

AND TIME >=

AND TIME <=

PI integration with Google Spreadsheets

$
0
0

Hi all,

 

I'm new to working with PI and was wondering if there was a way to pull specific data points from PI and display them in a Google Spreadsheet? Basically, I'm looking for similar functionality to DataLink for Excel.

 

Thanks in advance!

MultiState for Dataset

$
0
0

Hi,

 

I'm trying to create a multistate text with one of the datasets that I've created. Unless my range for the states are between 0 - 100, I receive an invalid value error.

Is there some way to work around this for when I have larger values that are greater than 100?

 

Thank you

 

 

How to Use Trigonometry Functions in PI

$
0
0

Hi friends,

 

Can we use mathematical functions like Sine, ACOS, SEC etc..If yes, what is the syntax to be used?

 

Please help !!!

 

 

 

regards,

 

Veeresh

Importing data to R using PI-SDK

$
0
0

Hi,

 

I would like to know if I can use PISDK directly from R in order to import data and if is possible would be nice a small tutorial or example.

 

kr

Stefan


Exporting multiple State Sets for editing

$
0
0

Dear All,

I have been requested to make a change to a large number of Digital state sets, in order to accommodate a syntax change to the states for the addition of an underscore after every state in the set. I was hopping I could do a bulk modify using excel but there seems to be no obvious option for this using SMT.

I would like to know if there is a method available to allow me to export multiple state sets to a single file for editing, rather than spending a large amount of time exporting and updating each set individually.

Thank you.

 

JDBC: PreparedStatement paremeters do not work

$
0
0

Hi all,

 

In JDBC using paramters in PreparedStatement, the result is different from using normal SQL.

 

For these two cases:

    @Test
    public void test1() throws Exception {
    	PreparedStatement ps = connection.prepareStatement(
    			"select timeeq('FKB12_State', '2014-08-12 06:00:00.0', '2014-08-12 20:00:00.0', 1000)");
        try (ResultSet rs = ps.executeQuery()) {
            while (rs.next()) {
                System.out.println(rs.getString(1));
            }
        }
    }

    @Test
    public void test2() throws Exception {
    	PreparedStatement ps = connection.prepareStatement(
    			"select timeeq('FKB12_State', ?, ?, ?)");
    	ps.setTimestamp(1, Timestamp.valueOf("2014-08-12 06:00:00.0"));
    	ps.setTimestamp(2, Timestamp.valueOf("2014-08-12 20:00:00.0"));
    	ps.setFloat(3, 1000F);
        try (ResultSet rs = ps.executeQuery()) {
            while (rs.next()) {
                System.out.println(rs.getString(1));
            }
        }
    }
 

The results are '00:00:01' and 'null' (a string of 'null' with 4 characters length).

 

I tried putting the parameters as ps.setString(), removing the trailing ".0" of the time stamps, even the timezone timing doesn't affect the result.

 

As you know, using native SQL could be dangerous and is not recommended.

 

Appreciate your help.

 

 

Ahmed

 

 

 

 

JDBC driver Manifest:

 
Implementation-Version: 0251
Specification-Vendor: OSIsoft, LLC.
Name: PIJDBC
Specification-Title: JDBC Driver via PI SQL Data Access Server 
Specification-Version: 1.3.0
 

Output PI tag configuration

$
0
0

Hi All,

 

I am very new in OSI PI. I need help regarding Output PI tag configuration.

 

My requirement is as follows :

1) I have a tag named Tag1 in which I am getting the data from one OPC server .

2) I need to pass Tag1 value to another tag name Tag2.

3) This Tag2 should pass value to other OPC server (KEPServerEx) tag through OPC interface.

 

Can you please let me know how to configure the Output tag in PI to transfer data from tag to OPC?

 

 

Regards,

Amit

WebParts issue:Unable to view 'Configuration Wizard' on SharePoint site

$
0
0

All,

 

   We have installed WebParts 2012 on SharePoint 2013 server. WebParts services is installed on a seperate server running IIS v 7.0.

 

Both are configured to get data from PI server 2010. When we try to configure SharePoint to use WebParts services, we do not see 'Configuration Wizard'. Is this due to incompability of different software versions/something is missing in configuration?

 

Note: Webparts on SharePoint and WebParts services are configured to use custom user account that has admin privilege on the PI server.

 

Any help is greatly appreciated!

 

Thanks,

Arti

 

 

Coresight Security

$
0
0

Shouldn't users only be able to see tags that they have access to via PI tag configuration?  Currently all Coresight users can see ALL the PI Data on our system.

 

I think we missed something in setup!

 

Thanks,

Scott

Viewing all 1120 articles
Browse latest View live


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