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

DataLink CalculatedValues Filter Expression

$
0
0

Hello,

 

I´m trying to get a range of a value based on an other tags range 30 min before. I have no idea how to put this in a filter expression. Something like "Range(<tag2>, '-30m') > 500" ....

I hope anybody nows how to do it.

 

Thanks a lot in advance.

 

Regards,

tompkins


Getting data from PI to SQL Database

$
0
0

Hello,

 

Wondering if someone could help with the following scenario:

 

I have a PI tag tracking the status of an equipment using value ON/OFF. The requirements will be to get this PI data into SQL database for each cycle with status ON. Every entry into SQL will have start time, end time and the duration.

 

What is the best way to achieve this?

 

Any help would be much appreciated.

 

Cheers.

 

 

Add button to toolbar while in fullscreen

$
0
0

Hello everybody,

 

this is my first topic here. I'm sort a advanced user of PI here in my company, but I've only started to use VBA in my display designs a couple of weeks ago.

 

I have little experience in vba but with the help of some topics from this forum I managed to achieve a lot of improvements in my displays.

 

Now I'm trying to implement the folowing idea, if its possible:

 

- When opening the display

- trigger fullscreen

- add 2 buttons to the fullscreen toollbar ("Trend display" and "Close the active window")

 

Duvida.PNG

 

Regards,

Everton

Data show arch fails.

$
0
0
Hi
I have certain tags value as "arch fails". What does its means?

I already check all the archive and all already registered and function properly.

Using one multistate symbol for several alarms? Possible?

$
0
0

Dear all,

 

I am new to Processbook although am slowly getting through working on several systems. I am working on doing a more simple overview of a system with then further more in depth drill ins of many parts. Some of these parts have multiple alarms. I am able to create a multistate symbol equating to one tag thus one alarm which is great for the more in depth drill ins as I want each alarm to be separately identifiable however I also wish to have a singular alarm that will go if any of the alarms go off, this would be on the overview page. The idea being that there is a single indicator on the overview and they then drill down to see which alarm it is. I am struggling and have found nothing as of yet. Any input would be greatly received.

 

Thanks in advance

Ben

 

 

 

 

Rename PICollective

$
0
0

Hi,

 

What is the best practice to rename existing PI Server Collective without impacting clients and buffering?

 

Pradeep

Count how many tags in a group are in a certain mode (Digital Tags)

$
0
0

Looking for a way to count the number of tags in a state of "TRIP" at any given time (current by default).

 

 

Tag1 TRIP Tag2 TRIP Tag3 TRIP Tag4 TRIP Tag5 OK Tag6 OK Tag7 OK Tag8 TRIP Tag9 OK Tag10 OK Tag11 OK Tag12 OK Tag13 OK Tag14 TRIP Tag15 OK

'=COUNTIF(H46:H60,"TRIP") 

Results: 6

 

I can do it in Excel with a COUNTIF, but not wanting an imbedded Excel object.

 

There will be several groups of about 75 tags, so not really wanting to use:

(if Tag1="TRIP",1,0)+(if Tag2="TRIP",1,0)+.....

 

Would prefer using a Performance Equation or PI Calc.

Activeview control

$
0
0

Dear All,

 

I'd like to add new points to a trend in an activeview screen from the browser, do you have an idea or example how can I achieve that?

 

Thanks in advance

 

Diego


Totalizer decreasing

$
0
0
Hi,
 
I am having issue with a few totalizer, pasted below is one example.  I am finding that the total value sometimes decreases, and I do not know how it could do this.
 
Any help is appreciated,
 
Thanks
 
ED
 
 
archiving = 1
calcmode = TIMEWEIGHTED
compdev = 500
compmax = 900
compmin = 0
compressing = 1
compvalue = 
conversion = 1440
datasecurity = piadmin: A(r,w) | FTHSupervisors: A(r,w) | PIWorld: A®
descriptor = CELLAR #5 FOAM TRAP SUPPLY FLOW TOTAL
engunits = SCF
eventexpr = IF (DAY('*')=1 AND HOUR('*')=0 AND MINUTE('*')=0) THEN 0 ELSE 1
excdev = 250
excmax = 600
excmin = 0
filterexpr = 
function = TOTAL
movingcount = 1
offset = +0H
offset2 = +0M
options = UNDERISZERO 
pctgood = 85
period = +1M
period2 = +2M
ptsecurity = piadmin: A(r,w) | FTHEngineers: A(r,w) | PIWorld: A®
ratesamplemode = NATURAL
reportmode = RAMPING
scan = 1
shutdown = 1
sourcetag = UTIL.CO2.CARB.A12PCV0961_FLOW
span = 1000000000
step = 0
tag = UTIL.CO2.CARB.A12PCV0961_TOTAL
totalclosemode = EVENTTRUE
typicalvalue = 50
zero = 0
 

PI APS and Locations Values

$
0
0

Hello guys!

 

I have a question regarding PI APS and the Pi to Pi Connector. It is possible to configure a default value for Location1?

 

I reviewed all the possible options in the Settings (Rules, Sync Schedule, User-set Defaults... etc) and I don't see any place where I can define a default value for Location1. Maybe I'm not looking in the right path. Any recommendation?

 

Regards,

 

Jaime Olmo

Sharing displays online?

$
0
0

Hi all,

 

*EDIT* PROBLEM SOLVED, Company has just given me webparts. Wasnt aware of the program, sorry for wasting anybodys time!

 

I have been creating a series of displays and systems and am now looking at selling the concepts to other members in the company. The problem I am having is access for people to see it. Does anybody know of a way to be able to post displays or books online while still reading real time data? Or if not online perhaps via an intranet type server/medium?

 

Thanks!

Ben

PI data into SAP/text file format

$
0
0

Hi All,

 

I've been asked to see if there is a way to export data from PI into a text file, and then store this on a network file drive, based on a timed schedule. The file is then processed by something called HANA which loads it into SAP.

 

My first thought was why not use the PI-SAP interface (R-LINK?), but this was deemed unsuitable.

 

My second idea was to use an excel sheet with some vba behind it which would pull the data into Excel using Datalink, then save the file as a .csv file on the network drive. This was deemed too messy (what happens if the PC running the task falls over?).

 

My last thought was to use some sort of SQL query which HANA can use directly (HANA can use SQL queries to get data from other data sources we have) to get data from the PI server, but I don't know enough about SQL, or what interfaces I would need.

 

Can anyone help with clarifying some ways to do what I'm asking, more with an SQL slant than anything else. We want to have as few inbetween steps/software routines as possible, to make things streamlined and "easy" to administer.

 

Thanks

 

Col

PI Processbook Error

$
0
0

Hi All,

I am using PI Processbook 4.1.1.

When i tried to open Processbook it's giving error window. Its saying PI Processbook application has stopped working.

I have uninstalled and reinstallaed it but still am receiveing same error.

Can any one help me on this.

 

Thanks in advance.

 

                   

Attached Images

  • Untitled.png

OSI PI customers with integration to SAP MII can download the CBM rapid-deployment solution for free

dlresize error

$
0
0

Hello,

 

I'm using the following macro below to call up the drresize function, but I'm getting an error (screenshot attached) when the code starts to execute line "call dlresize". To make the matters worse, I already have PIDLdialogs checked (activated) under Available References in VBA, so I shouldn't be getting this error. Can anyone help me resolve it, please?

 

----------------------------------------------------------------------------------------------------

Sub sizecells()
 
Dim iLoop As Integer
Dim rNa As Range
Dim y As Integer
Dim ws As Worksheet
 
 
For Each ws In Worksheets
With ws
ws.Activate
iLoop = WorksheetFunction.CountIf(Cells, "resize to show all values")
Set rNa = Range("A1")
 
 For y = 1 To iLoop
  Set rNa = Cells.Find(What:="resize to show all values", After:=rNa, _
             LookIn:=xlValues, LookAt:=xlWhole, _
             SearchOrder:=xlByRows, SearchDirection:=xlNext, _
             MatchCase:=False)
    If rNa Is Nothing Then GoTo 0
              rNa.Activate
      Call dlresize
      
Next y
0
 End With
 Next ws
 
Worksheets("Reservoir Voidage Replacement").Activate
 
MsgBox "New PI data has been refreshed"
 
End Sub
---------------------------------------------------------------------------------------------------------------------------
 
 

Attached Images

  • error.JPG
  • Object References.JPG

batch report using totalizer

$
0
0

Hi,

 

I am looking to create a batch report which is triggered by an event.  Right now I have a few totalizers which write final results when event goes to 0.  I am also tracking a string, which is a regular classic tag.

 

I am having issue with bring all the info into excel as the string tag is constantly being sampled, whereas the totalizers are not so i have a bunch of lines in my excel report that have the string value but nulls for the totalizer values...I am wondering what the best way to create tags in PI which will grab a snapshot of all these tags when the event occurs.  I know I am being general but i need to be pointed in a direction to get me started properly.

 

Thanks,

ProcessBook XY Plot Adding aims to Plot

$
0
0

We don't use XY plots much so this is the first time this has come up, but looks like it would be a common request.

 

I have a user that wants to create an XY plot that displays datapoints from the process, but would like to have on the plot a line that indicates the aim value.  I have attached an example.

 

In the example we have just overlaid the plot on a graphic of the aim line.  This works, but when users have a monitor that is a different size or resolution the overlay can be distorted.  Also if you edit the display you have to be very careful or you can mess up the alignment of the plot and the background line.

 

I think the answer would be for ProcessBook to plot the aim   (y = 213.3x - 2928.6) as another tag in the plot.  Then it would automatically scale to whatever monitor it was on and not be affected when editing the display.

 

So is there an easy way to do this?   I would prefer to not use VBA or other techniques that require code behind the scenes.

 

Thanks in advance,

Ray Stericker

Attached Images

  • XY Plot Capture.JPG

Calculate level change based on event

$
0
0

Hello everybody!

 

I have a level indicator (See attached trend) that is problematic and report some bad data (the level decrease should be linear). Changing the indicator is not an option for now. I manually locate the time when a new batch starts and the time when it ends.

 

Nível.PNG

 

1) I would like to calculate the time range between the start and the end of the batch (indicated by the sudden level change in the trend) and the change in level during this times, for a month (to totallize the amounth of chemicals consumed during this time). I'm trying to implement this in Excel via PI DataLink.

 

2) If possible I would like to count the time from now (*) going backwards til the start of the last batch. And display this time in a value in a ProcessBook Display. And using this time I would calculate the estimated flow rate, using the level changes in this time.

 

For exemple:           Duration of the batch: 28:20:00

                                Estimated Flow rate: 3,25 L/h

 

Regards

Problems with the PI BatchView add-in for Excel 2007

$
0
0

Hello

 

I'm having some problems with the PI BatchView add-in for Excel 2007.

Sometimes after Excel crash doing a batch search, and when I restart and try another batch search query, I have trouble carrying the results to the worksheet.

The detail is that the query works normally in Batch Search window . And when I click "OK" to send to Excel, I get the error below on the entire query.

 

Sem título.png

 

I've tried reinstalling the add-in, restored the Office, but it still fails.

Has anyone had this problem?

 

 

My PI versions

 

Capturar.PNG

 

 

 

 

 

 

 

 

PISDK: How to retrieve time filtered values from VBA code?

$
0
0

Hi!

 

I know that we can retrieve the amount of time that a tag remains over a condition using datalink. We can use the Time Filtered function to know, for example, how long tag_1 had the value 1 during the day.

 

My question is: how can I do the same thing using VBA code?

Viewing all 1120 articles
Browse latest View live