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

Display data in excel Cell for a tag only if value changed

$
0
0

Hi,

 

Lets say I have tag called XYZ_1. if I do archive value for it for yesterday it.

 

and if I do 30 second interval.  it will mostly have value of "Good". Is there a way PI can do this type of calculation for me if value changes then display count of number of times value changed with in that 24 hr peroid or given time period?

 

 

Good

Good

Good

Bad

Good

 

the result would be 1 or 2 depends on how we look at it.

 

hope my question makes sense.

Thanks


ProcessBook VBA QUestion

$
0
0

Hello,

 

I am currently working with VBA in ProcessBook. My straightforward question is whether it is possible to iterate over elements in AF through VBA in ProcessBook. The only way I know to do this is to create a Dataset in PB that can map to an AF element and the dataset can then be read in VBA. I believe a dataset is limited to one tag and it is impractical to create a few hundred datasets.

 

Is there a way to set up a dataset with multiple tags?

 

Or, is there a way to connect PB VBA to AF?

 

The reason for my question is as follows: 

 

I am trying to create a script that looks at a few hundred tags and then displays the top five values in a comboBox in a PB display. The user can then select an item from the combo box which will link to a new display and show more process information. If I cannot access AF from PB VBA, any suggestions on a better way?

 

Thanks you very much for your time and feedback!

 

Point Source

$
0
0

Hi all,

 

I've created a new Point source "O' in the Point source table @ SMT Plugin then i created tag with the Point source "O"  in the point builder, but i cannot able to save / create the tags it's shows an error message in the Session record as "PI-PB> Error -2147220428 attempting to write point reer on server HISTORIAN: Failed to create point on server.  [-12234] Disallowed Point Source(pointtype) (SDKWritePoint)".

 

Can anyone help me out how to overcome this error and to create the tag my own Point source? How to delete the created Point source?

 

Thank you in advance

 

Muthuraja Ramu.

Error_Msg.JPG

 

Timestamp accuracy issue in Excel/PI

$
0
0

Hi all,

 

I've just come across a weird situation. One of my colleagues has just had his PC updated to Excel 2010 and with it, upgraded to Datalink 4.2.1. He has an excel sheet which has worked perfectly well up to now, but for some reason, after his PC was upgrade he can no longer get data after a certain timestamp. The sheet has the timestamps for the month starting at the 1st of the month at 03:00 (3am to you and me), with all subsequent data at 4 hourly intervals. Simple so far.

 

The timestamps are configured as "$a57 + 4/24" ;the last cells timestamp + 4 hours. However, after the 12th day of the month the sheet no longer gets data. The sheet uses the PIarcval command with the retrieval mode set as "exact time". I've traced it to a rounding error in Excel where the actual timestamp is out based on the millisecond value. For example a time stamp of 1-aug-2013 03:00:00 will return no data, but a timestamp of 1-aug-2013 03:00:00:00 will return a value. It seems that PI or excel is converting the 4/24 down to the millisecond, and the rounding error compounds itself through the cells until it reaches a point where the millisecond value skews the timestamp enough so that I can't get data as "exact time".

 

FYI - he uses the piarcval and exact time function as the data he is looking at is Lab data and he wants to know when we have missed samples in a an easy to see layout  - he checks to see if the PI function returns "no valid data" (or whatever the error is for no value at the specified time) and uses that to blank the cell. That way he can see at what time samples have been missed.

 

Is there anyway to stop this rounding error?? Is it just an Excel issue (32 'vs' 64 bit)??? Can you force PI just to look at the seconds not the milliseconds of a timestamp??? My own suggestion is that he edits the sheet and creates the timestamps using a concatenation of the date and the timestamp, which should remove the rounding error.

Multiple Entry Addon/Tools in Manual Logger

$
0
0

Dear users, 

 

I am using PI Manual Logger for Lab data entry aside from FTLD from DCS system. We will have a point in time with sample port ID and the sample is tested for 10 different parameters (pH, concentration etc).

 

The pain using PI Manual Logger is to do data entry for each data acquired, that means many clicks and typing just for a single data entry. I wonder of you have any suggestion on tools/addon that is ready to be used which are capable on viewing all 10 empty fields (tags) for a single time data which operator can typed in all 10 parameters and save/submit to Historian.

 

I know we can sort to make one i.e VB, excel, website and automate it but I do not have resource or time to develop such tools and I think somebody else out there have done it.

 

Your input and suggestion are most appreciated.

 

Best regards, 

 

Cosmas

pipc.log message

$
0
0

Hello community!

I'm new user of PI (few months) and in last days I got a message in pipc.log :

"03-Sep-13 17:48:48

pipeschd.exe>PI-API> pinetread> recv blocking failure or host localhost:5450 closed the socket" ,

problem that I don't know how to fix :(.

Please, can you give me some ideas about this!  

Thank you!

Pi PE Get Last "Good" Value

$
0
0

Hi All,

 

I am relatively new to Pi, joining an organization with a very mature Pi System.

 

We have lots of Performance Equations that sum together multiple daily totalizers.

 

(If BadVal('DailyTotalizer1') then 0, '*') else 'DailyTotalizer1') + (If BadVal('DailyTotalizer2') then 0, '*') else 'DailyTotalizer2')

 

However, whenever there is a Bad Value my daily sum with reverse, this is not what we are looking for.  I have been trying different things and tried changing  the PE to:

 

(If BadVal('DailyTotalizer1') then PrevVal('DailyTotalizer1', '*') else 'DailyTotalizer1') + (If BadVal('DailyTotalizer2') then PrevVal('DailyTotalizer2', '*') else 'DailyTotalizer2')

 

I still see the same issue as it is pulling the Previous Value as Bad.

 

Is there any way to make PE get the last "Good" value when Bad Val is found.

 

Otherwise,  can a totalizer total multiple tags?

 

Thanks in advance,

Phi

Planning for Windows 2012?


Totalizer motor running

$
0
0

Using Totalizer tag and a digital source tag with mode of "running" and stop. How can I create a Totlaizer tag accumulating the motors run time with no reset?

Data from tags recently created makes Excel crash

$
0
0

I'm having problems when performing queries in Excel, with new tags between old tags.

Example: I need to query data between 01/Apr/2013 and 01/May/2013. I know that one of the tags was created on 19/Apr/2013. When I run the query, Excel crashes, but only when the tag is in the new query.

It happens in both Excel 2003 and 2007.

 

Sometimes we need to create queries with longer intervals and with various tags.

Complex Filter Expression in PI Datalink

$
0
0

Greetings OSI Forums,

 

I have to combined a couple PI tags and filters into one Filter Expression.

 

''Some Tag' = "Closed"

''Some Tag' > .5

 

I need to combine these into one filter tag for datalink.  Since I am a C# programmer, I tried the obvious

 

''Some Tag' = "Closed" && 'Some Tag' > .5  and ''Some Tag' = "Closed" & 'Some Tag' > .5(no go)

 

Then

 

''Some Tag' = "Closed" and 'Some Tag' > .5 (no go)

 

Is there a way to make a multi tag filter expression where I have multiple conditions on individual tags?

 

Thanks Everyone.

 

Live stream: panel discussion on energy management and procurement planning.

$
0
0

OSIsoft's Joel Weingarten, our Market Principal for Facilities, will be a panelist at a streaming panel discussion on Thursday, September 12th 2013 9:30 - 11:30 am PDT (12:30pm - 2:30pm EDT, 6:30pm - 8:30pm Paris- Brussels). 

 

Click here to register and to learn more about this event, whose goal is
 

to better understand the complex nature of energy use within the organization, including the current uses and costs of energy supply, the timing of energy use, and how energy consumption is affected by these factors.

 

 

Click here to see the time of this event in your timezone. 

Why learn PowerShell and WinRM?

$
0
0

Q-CERT highlighted this article by SANS expert and trainer Mike Pilkington on the Power of Powershell Remoting. If you manage Windows computers and want to be secure it is well worth the read.

 

It's no surprise the PI System Security Audit Framework uses this approach and Mike's article does a good job of explaining why you should consider Powershell for all administrative tasks.

 

 

This was my favorite quote:

"Let me put it this way: If you allow administrators to remote desktop into Windows hosts in your environment, then you should allow, and even encourage, PowerShell Remoting as an alternative since it does a better job of protecting domain credentials by avoiding interactive logons and delegation tokens. This goes for administrators and responders alike."

 

Using Powershell with our audit framework is part of the PI System Security Workshop on September 19th at the EMEA UC in Paris.  We hope to see you there!
 

Totalizer with manual start value

$
0
0

I have created a run time totalizer tag and configured it to desired results. How can I set the start value to 3000.

MESA Webcast: Cyber Security beyond anti-virus - How to Keep your MOM Software and Application Servers More Secure... September 24th 11 AM EDT

$
0
0

Securing MOM (Manufacturing Operations Management) software and application servers from
hackers and potential malware threats continues to be a concern.

 

Attend this MESA Webcast to learn steps you can take for effective security beyond just
installing anti-virus software and patching systems. We will discuss techniques
to protect your critical systems including application whitelisting, use of
Microsoft Windows Core operating system components, limiting software and user
access to least required privileges, and more!

 

Register for the webcast at: http://conta.cc/17SHobt

 

If are new MESA, visit, http://www.mesa.org



 


Processbook - Concatenate values

$
0
0

Is there a way to concatenate values from two attributes together and display it as one value in processbook.

 

For example i have a tag that has the latitude and a tag that has the longitude

 

I want to display them as one value

 

40.000, 300.00

 

I tried E.GPS Latitude +","+ E.GPS Longitude but that did not work.

JDE and PI Data Exchange

$
0
0

I am looking for anyone that has performed a data exchange from JDE to PI and vice-versa without using RDBMS. I have been asked to try using a JDE business function to perform all the data exchanges.  I am not sure if this is even possible.


Currently we are running several SQL scripts using RDBMS and it is working well but since limited people on our development staff have Server Administration backgrounds, most do not have access to this functionality.



 

PI Manual logger with laboratory data without exc/dev

$
0
0

Hi guys, 

 

Another obstacle for me in learning to use PI for my need.

I need to have exact data at exact time retrievable without any exception or compression.

 

Supposed I have LABDATA1 tag and I entered the data using PIPutVal, or PI Manual Logger.

 

How do I set the attribute or set the LABDATA1 so that when I retrieve the data, it will list

 

21-AUG-13 00:00       23

22-AUG-13 00:00       No Data

23-AUG-13 00:00       No Data

24-AUG-13 00:00       46

25-AUG-13 00:00       78

 

instead of 

 

21-AUG-13 00:00       23

22-AUG-13 00:00       23   ( no data but interpolated / show up from previous data)

23-AUG-13 00:00       23   ( no data but interpolated / show up from previous data)

24-AUG-13 00:00       46

25-AUG-13 00:00       78

 

I tried disable compression  and exception, without luck. it is adding numbers when it is not supposed to be an interpolation of data. 

 

Please help improve my understanding,

 

Thank you

 

XY CURVE IN PROCESSBOOK

$
0
0

hi all,

how can i plot x,y curve for multiple values...using VBA and define trace n background colour?thanks

PI Datalink Calculation

$
0
0

Hi,

 

I've got a tank output flow tag which is incremental but due to instrument fault it resets randomly and starts the count from zero. So when i try to get the total flow for a week or a month I get a wrong asnwer. Because there are zeros inbetween I can't use the calculated data with the range mode.

 

Can someone tell me if there is a way to do this in datalink please.

 

Here is a sample set:





05-Sep-13 01:44:05
2.6

05-Sep-13 02:49:05
2.61

05-Sep-13 03:55:05
2.62

05-Sep-13 05:01:05
2.63

05-Sep-13 06:14:05
2.64

05-Sep-13 07:20:05
2.65

05-Sep-13 08:26:05
2.66

05-Sep-13 10:50:05
0

05-Sep-13 11:33:05
0.01

05-Sep-13 12:32:05
0.02

05-Sep-13 13:29:05
0.03

05-Sep-13 14:34:05
0.04

05-Sep-13 17:01:05
0.05

05-Sep-13 18:08:05
0.06

05-Sep-13 19:12:05
0.07

05-Sep-13 20:10:05

0.08



Viewing all 1120 articles
Browse latest View live


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