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

Change Value Symbol Timestamp in Processbook

$
0
0

Does anybody know if it is possible to change the timestamp of Value symbols placed in a Processbook display?

 

Currently anytime I place a Value symbol on the display and associate it with a Tag it will only output the real-time data. I would like to be able to display the tags previous values, according to a date specified by the user.  

 


PIDatalink function PITimeFilterVal

$
0
0
Hi Community,
I would to know if there is an equivalent function for the PITimeFilterVal(PIDatalink)   for pioledb tables.
 
 

declare @s_Expression varchar(MAX)
declare @s_StartTime datetime2
declare  @s_EndTime datetime2
declare @s_Mode varchar(80)
declare  @i_OutCode int
declare @s_PIServer varchar(80)

set @s_Expression = '(''210CRG001RS.CRU''="Stop" and ''210CRG001RD.CRU''="READY") or (''220CVB001RS.CRU''="Stop") or (''210SIFEA001B.CRU''<2)'
set @s_StartTime = '2012-12-31 06:59:00'
set @s_EndTime= '2013-11-08 06:59:00'
set @s_Mode = 'days'
set @i_OutCode =1
set @s_PIServer ='pi-server'


SELECT [expr]
      ,[time]
      ,[value]
      ,[timestep]
  FROM [PIOLEDB].[piarchive]..[picalc]
 where [expr] = @s_Expression
  and [time] >= @s_StartTime 
  and [time] <=@s_EndTime
 
 
Thanks in andvance   :)
 

Modify custom placeholder from ODBC source using VBA

$
0
0

I am pulling assay data via ODBC from a Microsoft SQL database into a trend in Processbook. So I only need to use a single dataset the query is fairly generic and needs to be modified for different sample names and elements using custom placeholders. Changing these placeholders works fine in design mode.

 

The question I have is - is it possible to manipulate custom placeholders from VBA for different traces? I modified the code from a previous topic http://community.osisoft.com/index.php?/topic/2056-plot-pi-processbook-trend-from-odbc-source-using-vba/ and generated multiple trends okay but when I try to set the placeholders via VBA it changes the default placeholders, not the custom ones. This then makes the trends all the same.

 

Thanks

Importa data from SAP BW db to PI

$
0
0

Hi,

 

I neet to send data from our BI/BW (SAP) to PI.

 

I know about RDBMS and OLEDB, but I´m not sure if it works.

 

Has anyone used this form of data transfer between SAP BW and PI?

 

Data not coming from tag

$
0
0

Hi All,

 

I am new for OSI PI. Initially I have created new tag which was giving me the value. Then I decided to change the location4 for this new tag . After editing location 4  value of this new tag I am not getting value. It is showing last value.

 

Can you please help me for this?

 

Regads,

Amit

Reducing Processbook Refresh Rate

$
0
0

I am fairly new to processbook and VBA, so bare with me here. I've repeatedly encountered a problem where my screens do not refresh. I have several screens that I'm using as templates/references for this new one I'm creating. Each of them run through their VBA code once every 5 seconds. My new screen, however, only runs through the code once upon startup then stops until I run the code manually. I've scoured the code in all of the template screens, and there is nothing in the code itself that would create this 5 second refresh. I've even copied the code directly from a template and tried to use it in the new screen just to prove that's not the problem. I need this constant refreshing to pull current weather maps from the internet and to do some heavy calc work. Any ideas?

Changing Refresh Rate

$
0
0

I am fairly new to processbook and VBA, so bare with me here. I've repeatedly encountered a problem where my screens do not refresh. I have several screens that I'm using as templates/references for this new one I'm creating. Each of them run through their VBA code once every 5 seconds. My new screen, however, only runs through the code once upon startup then stops until I run the code manually. I've scoured the code in all of the template screens, and there is nothing in the code itself that would create this 5 second refresh. I've even copied the code directly from a template and tried to use it in the new screen just to prove that's not the problem. I need this constant refreshing to pull current weather maps from the internet and to do some heavy calc work. Any ideas?

Manipulating symbols that are in a composite

$
0
0

Hello,

 

I am relatively new to Processbook.  Have a code where if a pump is "RUNNING" the symbol is visible.  My problem is that the pump symbol is part of a composite and I cannot use a multistate because the tag returns a string value, not 0 or 1.  I tried using this code:

 

  Dim pump1 As Composite
  Set pump1 = ThisDisplay.Symbols("Composite13").GroupedSymbols("Graphic5")
  Dim varValue As Variant, varDate As Variant, varStatus As Variant
 
  varValue = Value24.GetValue(varDate, varStatus)
  If varValue = "RUNNING" Then
    pump1.Visible = True
  Else
    pump1.Visible = False
  End If

 

 

I keep getting an error saying that "pump1 = nothing" and I think it is because I can't use "GroupedSymbols" for some reason.  Is there something special I have to do to use that collection?

 

Thank you,

David


Snapshot Vs Archived Values

$
0
0

Good day Everybody!

 

I have small application to plot a trend of archived values and snapshot values of a tag. As per my understanding all the archived values should be in Snapshot collection (pls correct me if am wrong).

 

But where I noticed that NOT ALL the archived values are in the Snapshot collection. What could be the reason for missing snapshot values?

 

 

Regards

Shaji

 

 

Error 13: Type Mismatch in Sub QueryEvent

$
0
0

Hello to you all,

 

I'm new in Pi world and I hope you can help me. I'm getting an error 13: type mismatch. We are using Excel to send monthley reports to our engineers.

Those anyone know what this error means and how I can fix it to get the reports running without this error?

 

Kind regards,

Richard

Processbook batch group

$
0
0

I want to make a calculation in a batch Column attributes where I want to know how much product in a batch I have used.

In this formula I only findt how much I use in average. But want to know how muct I totally have used in a batch:

 

 TagAvg( 'Produc 1', '[S]', '[E]')

 

Can you give me some advice in how to multiply with the duration time.

sharepoint 2013

$
0
0

Hi,

    I am new to Pi system and executing first project. I will be using Pi-webparts 2013 and i have windows server 2008 R2 with Sharepoint server 2010. Now, client will be migrating to windows server 2012 & sharepoint 2013 in near future. Does pi web parts 2013 supports sharepoint 2013 on IIS 8.0?

 

Regards,

PI CORESIGHT

$
0
0

Could you please let me know the difference between PI CORESIGHT 2012 & 2013?

SSRS PIOLEDBENT MAX() function error

$
0
0

Hi,

 

I am querying the AF server from SSRS. I am using the SELECT MAX(Archive.Value) FROM [Archive] WHERE Archive.[Time] BETWEEN '01-JUN-2014' AND '10-JUN-2014', but I am getting the following error

'[MAX] Overload resolution failed for (Variant) argument(s). (PIOLEDBENT)'.

 

The Archive.Value is of variant type.

 

Has someone has this issue? If so, resolution!

Have a custom PI Filter based on date that is not auto-arranged.

$
0
0

I have data that I would like displayed from several hundred tags in a certain order. Is there a command I can use in a PI filter to have PI not auto-arrange the date? The command that I was planning on using is something like the following

 

"Month('*')=7 and Day('*') In(1  .. 3) and Hour('*') In (12 .. 20) or  Month('*')=7 and Day('*') = 11 and Hour('*') In (12 .. 20) or Month('*')=7 and Day('*') = 10 and Hour('*') In (12 .. 20) or Month('*')=7 and Day('*') = 15 and Hour('*') In (12 .. 20) or Month('*')=7 and Day('*') = 12 and Hour('*') In (12 .. 20) or Month('*')=7 and Day('*') = 18 and Hour('*') In (12 .. 20) or Month('*')=7 and Day('*') = 19 and Hour('*') In (12 .. 20) or Month('*')=7 and Day('*') = 6 and Hour('*') In (12 .. 20)"

 

So for instance, I would like the data to be displayed in an order like July 1,2,3,11,10,15,12,18,19,6 and not July 1,2,3,6,10,11,12,15,18,19. Any advice would be appreciated.

 

Thanks!


Citrix

$
0
0

Does anyone have any feedback good or bad on running PI clients over Citrix?

 

Things like overall performance, reliability, ease of maintenance etc.

 

Cheers

 

Paul

PI CORESIGHT

$
0
0

We 've PI CORESIGHT 2012 installed. How do I upgrade this to PI CORESIGHT 2013? Please guide me.

excel PIAdvCalcFilVal via OLEDB sql query

$
0
0

I am trying to duplicate the functionality of the excel PIAdvCalcFilVal function via the OLEDB interface with SQL.

Can the PIAVG table using the 'expr' and 'filterexpr','filterinterval','filtersampletype' be used simulate this functionality? 

 

Thanks.

PI Datalink, looking to count how many times an alarm activated

$
0
0

Hello,

I have a Tag that shows the state of a device. Several of the states of this Tag are alarm or fault states. I want to know the number of times the states are "activated" during a certian period of time "*-1d to *" for example.

 

I was going to

1). Try to import into Excel, ALL the data tags for the well for that time period. (I do not know how to do this!!!)

2). Use Excel to count the number of times the state was activated. ( I can do this easily)

3). Repeat this for each state that I want to peform this on. ( I can do this easily)

 

Note: There may be more than one consecutive value at an alarm state

7, 6, 7, 6, 7, 6, 15, 15, 5, 6, 7, 6, 7, 6, 15, 15, 15, 5, 6, 7, 6, 7, 6, 7, 6, 7, 15, 5, 6, 7. 

Here the stae of 15 is activated 3 times (indicated in Bold), but there are 6 entries for this state.

 

Is anyone able to help with either

1). How to use Datalink to load all data points for a specific period of time

2). How to count the number of activation of a certian state/value for a certian period of time

Display file, based Element Relative Tags, propogation of element across multiple displays files

$
0
0

Hello,

 

I have a project that has the similar or same configuration across hundreds of sites.

Because of this I have created a ProcessBook display based on Element Relative Tags, where I select the "Element of Interest" and so all of the values for the site (Element of interest) are displayed as values or  displayed as trends in the confirgured display file. If I only have a single display file, when a different element of interest is selected, all of this values change to be sourced from this site and it works well.

 

However, if I create a new display file, with further detail about a part of this site and I add a button on the original display file to open this further detail, a user then has to select the correct element of interest in the new file, so it will show the information about the element of interest.

 

I can see how these buttons and other displays work with raw tags.

I did try to see if AF2 tags would help in this situation but did not have any luck there either.

 

Is there a way, so that once an element of interest is selected, this selection will propogate across other files opened from this original display file?

Or is there a different way of doing this?

Or is there different PI tool that I should be using?

Viewing all 1120 articles
Browse latest View live


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