-
Re: EventFrame StartTime value in End Trigger
Dan FishmanOct 2, 2018 12:32 PM (in response to Lal_Babu_Shaik)
2 of 2 people found this helpfulUnfortunately, that method will not work. You probably have seen a number of alternatives to obtain the start time such as using an analysis (duplicate logic in an anlaysis), using PI OLEDB Enterprise with a tablelookup, or using a custom data reference.
-
Re: EventFrame StartTime value in End Trigger
ccastro Oct 2, 2018 3:04 PM (in response to Lal_Babu_Shaik)Hello, i think that it can to work with TimeStamp and PreVal functions if this are composed.
The expression could be:
EndTrigger : TagValue <=100 And (Int(*)- Int(TimeStamp(PreVal('TagValue', *)))) > 100 ( seconds)
-
Re: EventFrame StartTime value in End Trigger
Jaison_Rodrigues Oct 3, 2018 1:43 AM (in response to Lal_Babu_Shaik)1 of 1 people found this helpfulHi Lal,
I am not sure but from the logic you have written, it looks like you are trying to see if the End Trigger (TagValue <=100) is "True For" more than 100 seconds, which is available for "Start Trigger". It comes handy when the data hovers just above "Start Trigger" condition and can fluctuate creating multiple Event Frames.
Or are you trying to capture Event Frames, which have duration over 100 seconds?
Depending on these above assumptions, I guess you can achieve it by following the steps below.
1. Set "True For" in Start Trigger so that it avoids duplicate Event Frames
2. Modify the "End Trigger" to check if the Tag Value is below the limit and also it has stayed below the limit for set amount of time (say 100 seconds in your case)
3. Set Event Frame Analysis to "Periodic" (1 second)
Not sure if this meets your requirement, but this was as close as I could get using existing features.
Else, as Dan Fishman mentioned you may have to find alternative way to do this.
Thanks,
Jaison Rodrigues
-
Re: EventFrame StartTime value in End Trigger
vkaufmannOct 3, 2018 5:21 AM (in response to Jaison_Rodrigues)
1 of 1 people found this helpfulI was also wondering if there is anything special about your requirements that is preventing you from using the 'True For' functionality in the event frame generation.
-
Re: EventFrame StartTime value in End Trigger
Lal_Babu_ShaikOct 9, 2018 1:00 PM (in response to vkaufmann)
Hi Vince
Tried this option and would like to close the event using "EventStartTime" i.e. Timestamp('Tag1') - EventFrame('Starttime') > 600 and Tag2<0
Start Trigger : ('Tag1') > 0
End Trigger : Timestamp('Tag1') - EventFrame('Starttime') > 600 and Tag1 <0
Thanks,
Lal
-
-