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.

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())

 

Link to comment
Share on other sites

  • 3 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...