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

Pulling Specific Time Data

$
0
0

Hi,

 

I am trying to work out how to put specific times into PI expressions. The tag I am analysing returns flow data, sampled at 15 minute intervals. I want to create two arrays in PI Excel, one covering mean flow received between 01:00 and 03:45 and the other between 04:00 to 12:45 the next day. Previously I have returned array for the entire period (five years) and then done the "heavy lifting" in Excel. With all the various formulae, the spreadsheet gets very large quite quickly and I have now been asked to produce the same piece covering a decade of data, so this method is no longer practical and I would like to shift the workload into PI and off my machine.

 

Is there a way to put specific times into expressions please? I am comfortable using relative times and the usual sorts of things using a start and end date, but can't find how to return data for a long time period while only looking at specific sections of the day. I was wondering about using the Time Filtered option, but that seems to evaluate the state of the data, rather than the state of the timestamp.

 

Thanks in advance for any help.

 

 


Coresight Sever Index error

$
0
0

Hi,

in my admin page Coresight doesn't check "indexed?" in PI Server selection

 

Where is the problem?

 

 

(sorry for my bad english)

Thanks.

Attached Images

  • errorCoresight.PNG

Process Book

$
0
0

Hi All,

Please help me on this, When i open Processbook file i am receiveing error message

 

Error- PI Processbook : Cannot find symbol library SQC.dll.

 

Thanks in advance.

AF Table

$
0
0

Hi,

 

One of the AF tables has to be updated weekly from a spreadsheet. I manually delete all the rows and paste all the rows from the spreadsheet. Is there a way to automate it? If so, how do I do that ?

PI Notification client: I can't access to triggers

$
0
0

Hi,

 

I've an AF server with a PI Notification installed in the same machine and I would like to manage these notifications directly from my machine. So, I decided to install PI Notifications client on my machine:

 

pi-notif-install.png

 

If I view these notifications on the server by RDP, I can view triggers:

 

pinotif-server.png

 

And if I view these notification from my local machine, I can't view triggers: 

 

pinotif-local.png

 

Anybody know how I could solve this problem?

 

Thank you in advance!

 

 

help

$
0
0
good Morning
I would like to create a diplay 4-5 trend by selecting them from a list box.
Create a userform with a listbox with a briefcase with tags.
selecting the tag and button trend1 create the trend1
selecting the tag and button 2 create trend2
 
tag has the name of the folder and point the server tags
 
Thank you for your help
 
regards
pierpaolo

Cool pic of "Very Funny & Wise Man!!"

$
0
0

This is pretty cool. A  lot of you can probably ratify the "Very Funny" part. Wish I had had a cellphone camera handy back when he was doing a Chris Farley impression in the lunch room.  

 

 

 

 

Processbook : disable build mode

$
0
0

I would like to send pdi to my client and I would like to disable build mode .

I need client use only run mode ,can I ?

 

If yes ,It need VBA coding ,right ? guide me for coding pls 

 

Thank you in advance 


Change Pi Tag Values from a button w/ macro in Processbook

$
0
0

Hi everyone, my name is Daniel Olsen and i am new to the forums but have been using Pi for 2+ years at my pulp mill in Oregon now.

 

I was asked to create a calculation based on operator inputs of what the purpose of a pump is.

 

Background:

There are 5 feed pumps (with flow and consistency meters for each) but they can either be OFF/ON, BLEND, OR MAIN SUPPLY.  The blend is a slightly different material added to increase strength and can come from any one or multiple of the 5 available pumps, the main supply is typically pulled from one main pump but it may also be any of the 5 pumps.

 

The goal is to create a blend % based on operator clickable selection of each pumps purpose within PI Processbook.

There is no way to automatically decide which is blend/main supply based on our current instrumentation.

 

1st idea (do not mind doing it simpler if another option exists):

Create a 5(pumps)X 3(possible mode choices) grid of buttons that have macros that run on a operator click.

On a click it would take Pump A and set the value of a new pi tag (example:Pump A would have 3 associated tags- Pump A Blend Run Status/Pump A Main Supply Run Status/Pump A OFF/ON Run Status)

 

If the operator selected the button associated with Pump A = Main Supply the following changes would occur:

-Pump A OFF/ON Run Status = 0

-Pump A Blend Run Status =0

-Pump A Main Supply Run Status =1

and once you set the values write them to the corresponding Pi Tags.

 

basically the macro will set the associated value =1 and set the other 2 choices for the pump =0

 

With the "purpose" of each pump selected i can create performance equations to gather mass flow rate and get a blend %. (if blend run status =0 the volume*%consistency is multipled by zero and not counted as a blend, same with main supply)

 

 

 

Problem:

How to create a button macro/VBA script that will change the 3 tags and write them to the database when clicked.

 

 Lack of Pi knowledge: Can i write a Pi Tag Value from Pi Processbook

 Lack of VBA/PI experience: Not entirely sure of syntax and commands to use to change value/write value within Processbook.

 

Any help is appreciated

 

Thanks,

 

Daniel Olsen.

Call for papers is now open for UC 2015

$
0
0

OSIsoft is looking for our next users conference (UC) speakers to join us in San Francisco in 2015! Successful speaking topics often include any of the following:

  • How your company has deployed the PI System across the enterprise
  • The business impact the PI System has had on operations, safety, regulation, asset health, quality, etc. and how this was achieved 
  • Novel and innovative workflows you have applied the PI System to 
  • Your journey of investment to delivering operational intelligence with the PI System

If your PI System story fits into any of these focus areas, and you are interested in presenting at UC 2015, then we want to hear from you!

 

Get started with your submission

 

Further information about content guidelines and information required is available here.

 

Click here to see where we post the video replays of conference speakers.

PI Developers Club is OSIsoft vCampus 2.0

$
0
0

PI Developers Club (PI DevClub) is almost here! OSIsoft vCampus will soon start its transition into the new and improved PI Developers Club. The vCampus program has been very successful in enabling you to develop more and better applications for the PI System. That’s why we are doubling down on the program to provide you with an even better service. To that end we are improving paid and public benefits of our developer program. We are also adding phone and email development support for our SRP customers. Let’s walk through these changes:
 
Q: What do I need to do? Nothing! Regardless of you being a member or not we will take care of all of these changes. If you are a member you will see the newly added benefits automatically. If you are not a member we encourage you to take advantage of the public content and engage with the developer community. We encourage you to consider becoming a member to enjoy all of the exclusive member benefits.
 
Q: When does it happen? The first phase, including several feature improvements, will be delivered in December 2014. Some transactional aspects, such as invoices and licensing, will come in future phases.
 


1.png

 
Q: Is the price changing? No! Pricing remains the same as vCampus.
 
Q: What is included in the paid program? On top of the existing member-only features we are adding three new exclusive benefits for members:
1.       Enjoy Better Support: though the forums will be open to all, we will make sure that questions by paid members enjoy priority support by OSIsoft staff.
2.       Get Discounts: we offer member discounts for those attending yearly technical events or taking online workshops covering programming topics.
3.       Get Recognized: members should be recognized in the community for their investment. We have devised features in the community for PI DevClub members to be clearly identified.

2.png

Q: What benefits will become publicly available? Most of our existing vCampus content will open up to the public. Such content includes discussion forums, blogs, webinars, and most of the technical papers. Our goal is to lower the barrier for PI users to participate in development-themed discussions and to foster more overall engagement for members and non-members alike.


3.png

 
Q: What is the relationship between PI DevClub and OSIsoft Community, PI Square? We are very excited to roll out these major improvements together with the bigger OSIsoft community, PI Square. PI Square is the open community for all PI professionals to get together, exchange ideas, and get help and support on their questions. The social features of PI DevClub will be delivered in the context of PI Square. At the same time, we are excited to bring together our partners, developers, customers, and OSIsoft employees all in one community. Please do not hesitate to contact us if you have any questions or comments about these new changes.


4.png

PI License Error

$
0
0

Hi all,

I am a newbie to PI soft, i wanna know the meaning of the red X in line of ExpTime.

My system time is right.

 

Thanks.

 

 

Attached Images

  • 20141114141706.png

HowTo: Display a text window depending on the value changes

$
0
0

Hello,

My name is Paul and I can't speak English well so I'm using the translator, Sorry, this strange explanation

 

I want to build some features in Processbook by using VB code.

 

 In Processbook I use several tags from the PLC, HMI system that are defined in PI as 'Values'.

 

What I want is:
There is a tag called Value76 to indicate the equipment state. The value of 1 - 3 will change depending on the state of the equipment.

 

When changes to a value of 1, "Any Faults" text window that says it disappear but floats 30 seconds, and the text window that says

 

"Ready" is changed to a value of 2 is floating for 30 seconds and disappear, and change in value of 3 and I think it is disappear floating

 

text window 30 seconds that says "Operation".
 

I created a text window, Normally it is hidden in Invisible state, would like to be seen if Value is changed.

 

below is the code  what I want a similar action in other departments using. I'm not sure below code is correct

 

Private Declare Function Beep Lib "kernel32" (ByVal dwFreq As Long, ByVal dwDuration As Long) As Long

Private Const SND_APPLICATION = &H80 ' look for application specific association
Private Const SND_ALIAS = &H10000 ' name is a WIN.INI [sounds] entry
Private Const SND_ALIAS_ID = &H110000 ' name is a WIN.INI [sounds] entry identifier
Private Const SND_ASYNC = &H1 ' play asynchronously
Private Const SND_FILENAME = &H20000 ' name is a file name
Private Const SND_LOOP = &H8 ' loop the sound until next sndPlaySound
Private Const SND_MEMORY = &H4 ' lpszSoundName points to a memory file
Private Const SND_NODEFAULT = &H2 ' silence not default, if sound not found
Private Const SND_NOSTOP = &H10 ' don't stop any currently playing sound
Private Const SND_NOWAIT = &H2000 ' don't wait if the driver is busy
Private Const SND_PURGE = &H40 ' purge non-static events for task
Private Const SND_RESOURCE = &H40004 ' name is a resource name or atom
Private Const SND_SYNC = &H0 ' play synchronously (default)
Private Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) As Long
Public prestep1 As Integer
Public prestep2 As Integer
Private AlarmAck(0 To 50) As Integer

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

 

'Private Sub Value76_DataUpdate()
If prestep2 < Value76.GetValue(Time, 1) Then
Text47.Contents = "Unit2 " & "Step Changed"
Text47.Visible = True
prestep2 = Value76.GetValue(Time, 1)

For i = 0 To 50
AlarmAck(0) = 0
Nexti
End If
End Sub

 

 

'Private Sub Value77_DataUpdate()
If prestep1 < Value77.GetValue(Time, 1) Then
Text48.Contents = "Unit1 " & Value77.GetValue(Time, 1) & "Step Changed"
Text48.Visible = True
prestep1 = Value77.GetValue(Time, 1)

For i = 0 To 50
AlarmAck(0) = 0
Next i
End If
End Sub

 

 

Is this possible?  Could someone please explain how to do this?
 
With Friendly Regards,

 

Paul

Coresight 2014 and Processbook display question

$
0
0

I'm using Coresight 2014 and trying to publish PDI and/or SVG files to be used as view-able displays. Most of my Processbook PDI files are screenshots of the DCS operation screens with values overlaid on them.

 

The problem I'm running into, is that when viewing them in Silverlight on my Coresight site, all that I see is the values.  The overlay graphic does not get displayed. Is there a trick to making that work?

 

 

How do I automate

$
0
0

We have several environments we do testing and design and it has been very much a nightmare keeping all the tags, and AF environments up to date manually. I found that AF as command line commands which I can automate into a script and export the files to a location for later import into other AF servers. However, I would like to also export the Tag list out of our PI historian as well as build out scripts that could replace the server names inside these files so that the other servers  could run similar scripts to import as the need requires.

 

Where would I locate any Command line tools for PI Data Archiver 2012 and AF 2010? 

 

 


Strapping Table in PI system

$
0
0

Hi,

I wanted to use strapping table in some of my calculations. I have to do it using PI system.

Can someone guide me how to create and use strapping table in PI.

 

regards,

 

Veeresh

Enter texbox or listbox

$
0
0
good Morning
My problem and change the value1 (trend1) with a texbox or listbox
Pressing the button command1 or 2 etc to create the trend trend1 2 etc. with the point value written in the listbox or texbox.
 
Private Sub CommandButton1_Click ()
switchTag Value1.getName (1), trend1
end sub
 
value1 change with "server & Tag"
 
Private Sub commandbutton1_clik ()
dim server as server
Dim tag as string
 
Server = "\\ server name \
tags texbox "point name"
 
switchtag & tag = server
 
What is the command that can let me insert two with a trend line using VBA?
 
attach file
 
thanks
 
regards
Pierpaolo

Attached Files

PI 2012 upgradation

$
0
0

Hi,

Presently we are using PI 2010 server and we want to upgrade it to 2012.I have following queries:

- Will there be any data loss as we have to do it in production server (secondary server available).

- What will be the server downtime?

- Is there any document that briefs step by step procedure?

 

Regards,

 

Veeresh

 

Possible bug searching long pitag names in SMT Advanced Search option

$
0
0

Hi all,

recently i needed to use the PI advanced search in SMT to search a pitags name list joining pitags with OR clause.

 

Everything looks fine using sentence like these:

 
PIpoint.Tag = 'A-11TL1-1-IA' OR
PIpoint.Tag = 'A-11TL1-1-IB' 

 

however using this next sentence:

 

PIpoint.Tag = 'B-87APT1-1-IAW1_MAG' OR
PIpoint.Tag = 'B-87APT1-1-IBW1_MAG'

 

doesn`t recover results althougt i checked it both pitags exist in PI database independently

The different is only the length of the pitag name string.

 

I've tested it in different PI versions and it happens in all of them.

 

Could yoy please verify if it is a bug or i made any mistake?

 

Thanks in advanced

PI Manual Logger Backup using pibackup.exe

$
0
0

Hi all,

in my current PI project i installed PI Manual Logger. I need  to create a backup of the tour, tour run and all information store in PIML sqlserver database.

 

Cause AF and PI Manual Logger are both using a database in sql server. I thought i'd found a bacth like %PIHOME64%\AF\SQL\afbackup.bat which create an automatic PIAF database backup , but i didn`t find it any information to create PIML sqlserver database backup in Pi Manual logger user guide.

 

Could you please help me?

 

Thanks in advanced

 

 

Viewing all 1120 articles
Browse latest View live


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