Jump to content

how to make a marker?


Recommended Posts

Hi Felix,

markers can be created with the function markersThreshold(). In the following example I am creating markers for the points in time, when the value becomes greater than 78. The markers are just capsules with no duration:

image.thumb.png.b6be893286a4cb9c6fc2ce7dbb7db771.png

Adding growEnd() to the function will create capsules spanning from marker to marker:

image.thumb.png.0fd65073bec1465c4664412ef1802138.png

When working with markers ypu should also know capsulesFromMarkers(), which you can use to create capsules between different markers. Let suppose you want to create a capsule starting each time the temperature rises above 80 and ending when the temperature falls below 90:

$start = $t.markersThreshold(isgreaterthan(80))
$end = $t.markersThreshold(islessthan(90))

capsulesFromMarkers($start, $end, 2wk)

image.thumb.png.f17535398196c7be059e5e4649752b1c.png

 

The markers can be created on two different signals as well:

image.png.b81b714156f1a0c5df7ebccaf991d3ea.png

image.thumb.png.871bdd66d654b7d3f0d5bdec331f630b.png

 

Hope this helps.

Regards,

Thorsten

  • Like 1
Link to comment
Share on other sites

Hey Thorsten,

Thanks for your reply. Is there a way to make a marker based on date? I saw the example in the formula are based on signal values. For my case,when there are failures occurred and we know the date and time from another source. we would like to pin it on the seeq visuals.

regards,

Felix

Link to comment
Share on other sites

  • Seeq Team

Hello Felix, Thorsten, 

If you know the start and end date of a particular event/failure, you can simply create a Custom Condition or accomplish the same result through Formula. image.png

Alternatively, you can use the CSV Import Tool to import multiple capsules if you have the start/end dates listed in a CSV file. 

Does this address your question, Felix?

 

Chris O

  • Like 2
Link to comment
Share on other sites

  • Seeq Team

Felix, 

To address the 2nd part of your question, once you have created capsules for all your known failures. You can use Seeq Formula to create a condition of "non-failures" with the Formula:

$failure.growEnd(2yr)

From there, you can use the TimeSince function in Formula to create a time counter between failures. 

TimeSince($nonfailures, 1d)

Hope that completes the picture for you!

-Chris O

  • Like 2
Link to comment
Share on other sites

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...