Jump to content

Recommended Posts

  • Seeq Team

Hi Lyna,

Thank you for your question. 

In order to plot the starting value, your formula will be like this '$condition.transformToSamples($capsule -> sample($capsule.getStart(), $signal.toScalars($capsule).first()), 1d)'.

The command '$signal.toScalars($capsule).first()' will get the first value in each capsules. Alternatively, you can also write it as '$signal.toScalars($capsule).pick()'.

Hope this helps.

Edited by Sharlinda Salim
Link to comment
Share on other sites

  • Seeq Team

Getting the value of a signal at the start of each capsule is even easier using the aggregate() function. For example:

In R20

$signal.aggregate(Stat.ValueStart, $condition, PositionInCapsule.StartOfCapsule)

In R21

$signal.aggregate(startValue(), $condition, startKey())


  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...

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