Jump to content

Victor

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Victor

  1. Hello, I'm trying to create a formula and for that I need include only period when drive work. 

    Drive Load - 1st signal (ex. $DLC )

    Drive work - 2nd signal (ex.  $DWC two possible option ACTIVE/INACTIVE)

    1) Created a Capsule ($C) which analyze $DWC on ACTIVE. 

    How can I filtrate $DLC, what I need to do is leave only those periods when $DWC is ACTIVE

    Can I do it with .keep operator?

    Trying to do it according to this 

    Quote

    Seeq Version R22.0.46 introduces the .keep() Formula operator for filtering a condition based on capsule properties.  In the original post, the following Formula was used to generate a new condition that only has capsules where the Value property is equal to OFF:

    Prior to R22.0.46:

    $condition.filter($capsule->
          $capsule.getProperty('Value').isEqualTo('OFF')

    With Seeq Version 22.0.46, the same result is achieved using the simpler keep() function syntax:

    Version R22.0.46 and later

    $condition.keep('Value', isEqualTo('Stage 1'))
    Quote

    $signal.keep(
      $sample -> $sample.value() != 'T4A')

    $DLC.keep($capsule.....)? 

    Must be easy to done, but I can't figure it out.

×
×
  • Create New...