Hi everyone I am new to PI System...I need to create a tag on my system...
Create A new Tag
PI DataLink Search cause PISDK Registry Key Access is Denied
Dear experts,
Whenever I press the search button on Excel 2013 Ribbon, PI DataLink menu, this warning of PISDK Registry Key Access is Denied (see attached picture).
However the PI ProcessBook search button has no problem, and the PISDK Utility also has no problem in connecting to PI servers.
I would be grateful if you can shed some light on how to deal with this.
Thank you
SQL statements in database reference
I have two tables on a sql server. I would like to get the last name of an individual in the personnel table. The id of the person is located in another table as "operatorId". I have both tables linked as tables in the Pi system Explorer. The record that holds the operatorId is the last record in the table based on creation date field. Looking to do something like this.
SELECT tblPersonnel.perLastName
FROM tblPersonnel Join tblPolantDisplay ON tblPersonnel.perId = tblPlantDisplay.plaOperationAuthorityId
WHERE (SELECT TOP 1 FROM tblPlantDisplay ORDER BY plaCreateDate DESC)
Is there a way to get the last name as an attribute in an Operator Authority element
Emerson DeltaV OPC server Pi server issues
We’ve got a problem on board with PI. The Emerson DeltaV OPC server was restarted and since this time we don’t have any value from the OPCDA.
Can anyone inform what critical services to check for the Osisoft side and give instruction to restart it? Maybe there are some service to restart.
We tried to restart again the OPC and the PI server without success.
Newest record in table
In AF linked a table that contains a field when the record was created. The join statement when I created the link returns one record. How can I pull out the oaId from the table using DR. Can't figure a where clause to use.
retrieve non-numeric data
I am trying retrieve non-numeric value using the SDK,
I can not use summaries2 because the data is non-numeric, what can I do?
what is the equivalent to PISampDat() in SDK . The point Type is digital
Thanks
PI connection Manager doesn't connect to PI server
HI,
When I try to connect to PI server through the PI connection Manager, I get this error on the connection manager "Can't resolve network name", Winsock error 10061 Connection is forcefully rejected. I have checked the network configuration of the windows server, everything is fine.
What could be the possible cause of this error ? Similar errors are logged in pipc.log
Thanks for any help on this.
Regards,
manju
Eaton Power Meters using Modbus Ethernet Interface
Is anyone using the Modbus Ethernet Interface to bring in data from Eaton Power Meters? If so, who and what are some of the advantages?
Thanks,
Create Custom PI tags
Hello all
Can i create variables that reads from excel. i.e create PI tags that when i update the values into certain cells this Tags will be updated accordingly.
Thanks
Tarek
Create Custom PI tags
Hello all
Can i create variables that reads from excel. i.e create PI tags that when i update the values into certain cells this Tags will be updated accordingly.
Thanks
Tarek
Exporting data strings to text files in ProcessBook
Ok, I am not a beginner but definitely not great at OSI-PI ether. I am currently working on a project at work where we are gathering information from several tags and currently displaying them in a listbox using VBA. However we have run into a couple of "bugs" that I could use some help in solving.
1. We currently only run the script when that display file is open. This causes us to loose any data that would have shown up in the listbox while the window was closed(hidden). Is there a way to have a script running in the background as long as the whole ProcessBook file is open/active? (I guess i would be looking for something similar to a global or public script.)
2. It kind of follows the first question except that I am wondering if there is a way to actually write the data strings that we are creating (currently for the listbox) to a txt file instead, and just have the listbox populate itself from that txt file when the associated display file is opened for viewing?
I hope that makes sense. And thank you for any help in advance.
PI Counter for time measurement
Hello everyone,
I need help with a special task I would like to solve.
I have a Tag displaying values between 0-25 %. What i need is a counter that measures the time this specific tag displays values above 5 % within 24 hours.
I cound't find anything like this so far and would appreciate any advice on this topic!!
Thank's a lot!!
Help with archiving disabled issue
Hi everyone,
I need help to solve an issue, i have an aplication that gets information from PI Server (Version 3.4.340.70) y when the amount of information is to large, the PI server archiev subsytem fails.
This is the message that i get from logs:
Error <!Bad status!> was detected while accessing archive file G:\archive4\piarch._2014-10-31_15-51-45.arc
Archiving disabled
ID: 2207
I have been looking for information on PI manuals and over the internet, but i cant found nothing.
Problem with PI Search
Add a custom value to trend
Hi
I'm not the admin of our PI-system, but just an advanced user.
We have a tag showing a processvalue, but not a tag with the target for that processvalue. Can I make a trend in Pi Processbook that contains a trend with both the value of the tag and a referenceline with the target?
I'm pretty comfortable with VBA, but can't really seem to find a way to add anything else than a PI-tag to a trend (e.g. using the MyTrend.AddTrace)
I tried this found in another thread here, but it gives a run-time error saying the "Argument name already exist. Name has not been changed" for the line with "Set MyDataset = ..."
Sub CreateAndPlotDataset() Dim MyDatasets As Datasets Dim MyDataset As PIExpressionDataset Dim MyTrend As Trend Dim MyTrendFormat As TrendFormat Dim MyBool As Boolean Set MyDatasets = ThisDisplay.Datasets Set MyDataset = MyDatasets.Add("NewCalc", Nothing, True, 1, True, pbDatasetPIExpression) Set MyDataset = MyDatasets.GetDataset("NewCalc") MyDataset.ServerName = "DANIELSLAPTOP" MyDataset.Expression = "If TagVal('BA:Active.1','*') = ""Active"" Then 'CDT158' Else NoOutput()" MyDataset.RefreshInterval = 60000 MyDataset.ColumnName = "Value" MyDataset.Interval = "1h" MyDataset.Description = "Calculated Dataset" MyDatasets.SetDataset MýDataset Set MyTrend = ThisDisplay.Symbols.Add(pbSymbolTrend) Set MyTrendFormat = MyTrend.GetFormat MyTrendFormat.ShowTraceMarkers = True MyTrend.SetFormat MyTrendFormat MyTrend.Top = 14900 MyTrend.Left = -14900 MyTrend.Height = 1000 MyTrend.Width = 1500 MyBool = MyTrend.SetStartAndEndTime("*-1d", "*") MyTrend.AddTrace "NewCalc.Value" End Sub
But then again it looks a bit more advanced than what I need?
I made a temporary solution adding a symbol (line) on top of the trend and calculating it's position in pixel relative to the trend... but that's really a poor hack as you cant zoom in or do anything on the trend.
So how can I get a simple reference line in a trend without creating a new PI-tag on our server?
Processbook relative time changing to absolute
I have a Processbook graphic used to monitory bulk storage system. When opened it has the time range of *-7 day to *. Typically after opening the display it would keep the relative time settings so that every few seconds the values would update with new data. In the last two days I have noticed a change. Now after opening the display, the time changes to absolute and it no longer updates with new values. The same thing happens when I hit the refresh button, the time changes to obsolete.
I have noticed that the display will keep its relative time if I use a shorter viewing window. So *-6 day to * will stay relative and keep updating with new values while *-7 day to * will change to absolute time. I also found that if I use *-168 hour to * it will stay as relative. But when I change to *-169 hour to * it kicks the system to absolute time.
I have tried other display files on my system and they all now appear to have the same behavior of changing to absolute time when the window is *-7 day to *. So this issue appears to be impacting all of my displays.
Any ideas on what would be causing this?
Thanks in advance
PI Calc - adding two dataset results together
I have two datasets that return a value. I now want to create a third dataset that adds the first two together, is this possible? I tried 'Dataset1.value' + 'dataset2.value' but that threw an invalid error.
PI Manual Logger NFC
In looking at the documentation for Manual Logger it talks about the ability to use Barcode scanners and RFID tags. With how cheap NFC tags are and with more tablets/phones getting NFC, is it possible to use NFC like RFID on manual logger somehow?
Performance Equation
Hi,
How to calculate how many hours tag is getting greter than 100 on daily basis.
Server Error [-11122] Out of Sequence Data Event in Sumnav Object
Hi - I'm getting error [-11122] when trying to pull calculated data via Datalink into Excel. I've narrowed down the problem to a time range spanning 4 days. I'm a relatively new Pi administrator and I'm not having much luck finding information on how to resolve this problem. Here is the exact error message, "Failed to retrieve events from server. [-11122] Out of sequence data event in sumnav object"
Thanks in advance for the help