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

Counting the amount of events that occurred within an Event Frame

$
0
0

I have a simple problem where I need to report the amount of specific events that have occurred within a time frame. To achieve this I have implemented an Event Frame to detect these events and I was hoping there would be a way to simply count the events triggered by my created Event Frame. I would most preferably like to achieve this in DataLink as I do not necessarily need to keep historical data of the events through a PI tag. 

 

Any help would be appreciated.


PI-OPC Interface stopped pulling data after sometime

$
0
0
Hi all,

Help me! I just setup PI-OPC Interface in client new API Node (Window 7). It run normally in run interactive mode. Then I try to run in services. Data also being pulled smoothly. But after sometime like 1 hour it stopped pulling any data from OPC suddenly. Without any error in message log and event viewer. The services also not terminated. It still running.

This is what I have done in configuration:
1. DCOM configuation
2. Create static route because they have 2 different gateway.
3. Setup OPCInt to pull data from DeltaV server.
4. Set pi-opcint & opcenum logon services as DCOM user setting.

Both communication are connected. I can ping to DeltaV and can apisnap to PI server. This is my first time to setup PI-OPC with DeltaV. Anyone who have experience like me please helpppp!

Thanks...

Newbie - how to calculate tag data for past 24h

$
0
0

I am very new to PI and am trying to keep up with the demand.   I try looking online but there is too much data for someone new to sort through.

 

I've been asked to take 4 tags and calculate the data from the past 24 hours and then add them all up.

 

I have been successful in calculating the total of several tags but not in calculating the tags based on the data from the past 24 hours.  

 

Any help would be appreciated.

 

I tried:

 

Total('SE65BH__0612ENWT','*-24h','*')

 

TagVal('SE65BH__0612ENWT','*-24h','*')

 

What am I doing wrong?

 

Once I get this one tag in the calculation working then I will work to get the others added in.

 

Thanks

 

 

new to Pi - self teaching for now

$
0
0

I would like to download a copy of a pi database (2000 tags) into a excel spreadsheet with tag name,descriptor and a snapshot of the data.

I can do a tag seach nd get all the tag names - how do i getthe rest.

thanks in advance

PI Server and OPC Server communication fails when OPC Server restart

$
0
0

Hi all,

I have an issue in the communication between PI Server and OPC Server. 

After many test we have found this trouble occurs  each time OPC Server Machine is restarted. Because the user and password configuration in OPC DCOM is missing and communication fail(all tags become Timeout state). 

 

To fix temporaly the problem we have to execute dcomcnfg.exe windows tool, navigate to Component Services | Computers| My PC | DCOM Configuration  and search OPC DCOM item. (Right Click), click on Identity tab and fill user,password and confirm password in this user radio button.  Yoy can see details in the snapshot attached below. It looks as whether all user and password configuration parameters disappear when OPC Server reboot.

 

 

With this solution communication is restablihed until an inesperate or controllated reboot happens.

 

Could you please help me?

 

Thanks in advance

 

 

Attached Images

  • DCOMCNFG_OPC.png

Printing ProcessBook trend objects - how to hide server name when trend is maximized

$
0
0

I'm trying to use some VBA to make it easier for users to print trends from a Processbook display.  With all the different monitor formats these days, it's tough to get a trend that fills a page nicely without lots of blank space.  Also I have some VBA controls on the display next to the trend for simplified tag searching and trend config and I don't want those to appear on the printout.  I wrote some VBA to dynamically resize the display to one with the correct aspect ratio for 8.5x11, maximize the active trend to fill the display which hides the VBA controls, print it, then un-maximize and return display to original size.  This works well except when maximizing the trend, Processbook automatically includes the server name in the tag list on the right hand side and the tag list ends up using ~30% of the sheet of paper. I have the legend set to not display the server name when the trend is not maximized, but it doesn't seem to carry through.  Is there any way to change this default behavior when maximizing the trend?

 

Also, if anyone has other suggestions for making trends easier to print for end users, it would be greatly appreciated?  I don't see a Trend.printout method in the ProcessBook SDK, just Display.printout which does the whole display including the VBA controls.  If anyone knows a way to directly just print a trend so it is scaled to fit to a 8.5x11 sheet, that would be very helpful.

 

Thanks,

 

-Greg

 

Storing PE tag values

$
0
0

Hi,
I want to store PE tag value at the frequency of 2 min. I have checked pipeschd.bat and found the default configuration

to be Okay as shown below....
..\bin\pipeschd /ps=C /Q /host=localhost:5450 /f=00:01:00,00:00:00 /f=00:02:00,00:00:00 /f=00:00:30,00:00:00
 
I have given 2 in location 4 but values are getting stored for every 8 hrs instead of 2 min.
 
 
Please advise if I am getting something wrong in my configuration.
 
regards,
 
Veeresh

If Statement

$
0
0

Good Morning all, I am new to PI and am hopeing someone can help me with a question have.

 

I am trying to set a up attribute to return a value if an expression is true.

 

If i were to want to do this in excel it would look like so

=if("pi tag" =0,1,0)

 

How would i complete this in pi AF?

 

Thanks

Josh


Time Filter

$
0
0

Morning all, i am looking to try and complete a time filter of a tag in AF.

 

I would like to know the total time that a pi tag is =0 in a 24hr period. Is this possible in AF?

 

Thanks, J

Accumulated Time format in Totalizer with timetrue option

$
0
0

Hi  all,

 

I have created a totalizer as:

Counts Event, setting Time when True, block and equal to 1.

 

My goal is to count how long a signal is set to 1 and with this configuration the totalizer is working properly counting how many seconds the signal value is 1.

But I need to display  the result in relative time with this format hh:dd:ss instead of only ss. I tried changing Totalizer Point Type to Timestamp but the result is shown in absolut time from 01/01/1970 01:00.

 

How can I get to express, for instance, 5400 like 1:30:00 using Totalizers?

 

Thank you in advance.

Attribute in AF

$
0
0

How can we rearrange the sequence of Attribute for a element in AF or Need a Specific sequence (such as Sr.No,Date, Name) in a notification content.

This content will be passed to xml file created by a Notification.

MDB to AF Sync failing

$
0
0

We have five (5) PI environments, we have this many to build on interface software that would look at PI and AF for data and information. Our source of truth is our Production environment and this is what we clone to populate the other development environments. The problem arrises when we clone AF and PI tags and populate the other environments with this content. Even thou the servers names are updated in the AF file and tag and security are exactly the same as Production the MDB to AF sync refuses to sync. It might start off and make an attempt but it rarely over time completes.

 

Has anyone expereinced problems with the sync process, had to transfer between multiple environments and how might you have resolved these challenges?

 

 

Convert 32 bit archives into 64 bit PI server

$
0
0

We have a 32 bit Pi server containing some archive files( less than 10 Gb). We have installed a new 64 bit PI server along with a new data server running the project ( Rockwell Data Server)

Our plan is to run both servers side by side - so all the data from the 32 bit PI server is migrated/ transferred to the new 64 bit PI server. Both the 32 and 64 bit server would continue to run in future and store historical data.

 

I have tried  backing the data from the 32 bit system to a external medium and transferred the files to the new 64 bit PI server. The tags were missing so i have to use excel to import the tags into the new machine i think but not sure.

 

What is the easiest way for getting the data from the 32 bit systems to the new 64 bit PI server. Pls advise

 

 

 

 

 

 

 

load the list box

$
0
0

good Morning
I need to charge the ListBox1 from excel file with clik on button6

The excel file contains the tag and description

selecting the ListBox1 point tag with clik trend 1-2-3-4-5 creates the track selected in trend

I hope I was clear

I attach excel file and Pi



Thanks for your help
Pierpaolo

Attached Files

PI with VBA excel

$
0
0

Hi to Everyone

I'm trying to apply a PI formula into excel spreadsheet with VBA by this code:

 

 

Sheets("Foglio1").Cells(6, 1).Select
ActiveCell.FormulaR1C1 = "=PISampFilDat(R1C3,R1C1,R2C1,R4C1,R2C5,R1C2,R2C2,R3C1)"
 
my output is this:
Resize to show all values

 

How can resize automaticaly ??

 

Thanks


Anyway to Prevent Trend.Setformat from clearing the cursors?

$
0
0

I'm trying to make a trend template that lets users do some simple Processbook config all in runtime without have to switch to config. mode and double click the trend.

Currently I'm working to give them a way to change pen colors to a few pre-selected higher contrast colors using VB comboboxes, etc. Does any one know if there is a way to change a pen color without using the .SetFormat method?

 

While working on some VBA to simplify printing the display, I noticed that the .SetFormat method appears to clear out the cursors.  I was using that method to temporarily change the display background from the default grey to white for better contrast on paper (and to save toner!).  I wrote some code to capture the cursors and reapply them, and it's not a big deal to do, but I wanted to see if anyone knows if there is a way to prevent that from happening in the first place.  

 

-Greg

 

Bulk update of data reference in AF

$
0
0

I have 276 AF attributes (from 46 AF objects) for which I want to change the data reference type from "none" to "PI Point". How do I accomplish this without making changes to the template? I am not sure if Datalink can be used since it allows me to search only one object at a time. Am I missing something here?

 

Any assistance is sincerely appreciated.

 

Thanks,

Arti

Energy Components (EC) into Processbook

$
0
0

Hi all,

 

As part of my job I started working with PI and AF.

 

One of my requirements is to make production accounting data from Tieto Energy Components (EC) accessible by Processbook.

 

 

Please correct me if I’m mistaken on any of them but it seems to me there should be several ways to accomplish this:

  1. Leverage PIAF: This is what I’m leaning towards. Though not sure how. Have any of you done this sort of thing before.
  2. Can Processbook retrieve values from EC Oracle database directly? A macro perhaps?
  3. Use Excel to import EC data and feed that to Proccessbook. Least favorite approach by the way.

If you could point me in the right direction that would great thanks

 

Cheers,

Jonny

AF SDK TimeOut Issue

$
0
0

Hi,

 

I am working on a custom .NET application (Windows Service) that uses the AF SDK (PI AF Developer Tools 2014 R2 v.2.6.1.6238)  to query AF/PI and save data into SQL Server on a polling schedule, however sometimes the queries seem to lockup/timeout - no timeout or other exceptions are thrown - the call just seem to hang.

 

I have tried setting the PISystem.ConnectionInfo.TimeOut value to a low value (e.g. 2 secs) and nothing seems to change in the AF SDK behaviour.

 

I have looked in PI-SMT Network Statistics and the process seems to be working correctly... no errors are showing for the connection. 

 

If an exception (TImeOut or otherwise) were thrown, I could at least handle that - do some recovery and try again. 

 

Has anyone come across this before and found a solution?

 

Kind Regards,

Mark 

Do I need Total Code to be 1

$
0
0

Very new to PI and need some help.

 

I have two EXACT same tags - one just shows the current value and the second one has a calculation in the Exdesc section but for some reason both tags show the exact live value and I was hoping the second tag would should the calculated value.   I am not sure about the total code section.   do I need to have this set to 1 for it to process the code?     I tried it at 1 for the past 30 minutes and originally I saw a different value but then it changed to Scan Off and never showed again.

 

Anyone with basic advice for someone struggling?

 

 

Thanks

 

Viewing all 1120 articles
Browse latest View live