Jump to content

Recommended Posts

  • Seeq Team


In this Use Case, a user created a condition to identify when the compressor is running.  During each Compressor Running capsule, the compressor operates in a variety of modes.  The user would like a summary of the modes of operation for each capsule in the form of a new signal that reports all modes for each capsule (i.e. Transition;Stage 1;Transition;Stage 2;Transition, Stage 1;Transition).



1. The first step is to resample the string value to only have data points at the value changes.  It's possible the signal is already sampled this way, but if it is not, use the following Formula syntax to create a "compressed" signal:

$stringSignal.tocondition().setMaximumDuration(3d).transformToSamples($capsule -> 
        $capsule.getProperty('Value')), 4d)

2.  Now, you can create a signal that concatenates the string values during each capsule.  This is achieved using the following Formula syntax:
       $compressedStringSignal.toGroup($cap).reduce("", ($s, $capsule) -> 
                        $s + $capsule.getvalue())), 7d).toStep()


  • Like 1
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...