Jump to content

Condition with Properties


Go to solution Solved by John Cox,

Recommended Posts

Posted

Struggling to create a condition where starts when pink dips and stops on the next step up of the brown signal. Tried with <union> but it was merging with the next condition. Definitely must have a better way of doing it...

would appreciate any help 

image.png.f534b183bc0dc7b4ab4875ad12787624.png

  • Seeq Team
  • Solution
Posted

Hello,

I recommend using the Composite Condition configured as shown below for this. Set your maximum capsule duration to be a bit longer than the longest resulting capsule you would ever expect. The "Pink Dips" and "Brown Dips" conditions might be as simple as Value Searches when the value is below some limit and ignoring shorter capsules, or you might need to do a Value Search for a large negative derivative (or delta). If you need any help defining the Pink Dips or Brown Dips conditions, please ask. Hope this helps!

 

image.png

  • Like 2
Posted

thanks John!

The time window works great 🙂

Why the capsules are in progress? Also got a warning message saying:

warning: Formula query interval will be expanded significantly due to a large maximum capsule duration of 32d, which may cause poor performance.

 

image.png

  • Seeq Team
Posted

The warning message is more informational in nature (it is not an error or anything affecting accuracy/results). Simply letting you know that one of your conditions has a large maximum duration, which means Seeq will need to investigate data outside the range of the display (up to 32 additional days of data) in order to show you the results on the screen. Because that means pulling in more data than you see on the screen, we inform the user as it can in some cases impact performance. In some cases the user may have a maximum capsule duration that they unintentionally made too large, and they can reduce it. 

I can't say for sure, but the uncertainty you are seeing (read more here: Uncertainty) is likely related to that same maximum capsule duration of 32 days. Functions (like composite condition) which combine conditions can increase uncertainty in relation to the maximum interpolation or maximum duration of the functions.

If you are on a newer version of Seeq, you can choose to hide the uncertainty indicators by using the Certainty button in the toolbar. This allows you to change the visual representation without changing the underlying data.

I noticed that your "Composite Condition 1" capsule durations are typically in the range of 2 days. If you are using something much longer than 2 days for the maximum duration in your Composite Condition configuration, you may want to consider reducing it. That maximum duration should be just slightly longer than the longest valid result you'd ever expect for the duration of a "Composite Condition 1" capsule.

Glad this is working for you and I hope the additional explanation helps!

  • Like 1
Posted

Hi John,

Yes, for the time window display it is 2 days, but normally it takes 25-30 days.

About the composite condition, it is showing as in-progress. How could we transform it to condition?

  • Seeq Team
Posted

There is a .setUncertainty() function in Formula. You can do $CompositeCondition.setUncertainty(1h) or something along those lines to move the uncertainty much closer to current time. 

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...