

<network type="delayedOff">

  <paramdefs>
    <param name="delayTime" targetModule="stabilize1" targetParam="holdTimeLow">30</param>
    <param name="threshold" targetModule="highPass1"  targetParam="threshold">70</param>
  </paramdefs>

  <inputPorts>
    <inputPort name="input" dataType="double" />
  </inputPorts>

  <outputPorts>
    <outputPort name="output" dataType="string" />
  </outputPorts>
  


  <units>
    <unit id="highPass1" type="highPass" />
    
    <unit id="zeroPosNegString1" type="zeroPosNegString">
      <params>
        <param name="valueIfNegative">OFF</param>
        <param name="valueIfZero">OFF</param>
        <param name="valueIfPositive">ON</param>
      </params>
    </unit>
    
    
    <unit id="stabilize1" type="stabilize">
      <params>
        <param name="holdTimeHigh">0.0</param>
      </params>
    </unit>
  
  </units>
  
  
  <links>
    <!-- (sourceNet), sourceUnit, sourcePort, (targetNet), targetUnit, targetPort -->
    <link sourceUnit=".timer"             sourcePort="output" targetUnit="stabilize1"         targetPort="timer" />
    <link sourceUnit="."                  sourcePort="input"  targetUnit="highPass1"          targetPort="input" />

    <link sourceUnit="highPass1"          sourcePort="output" targetUnit="stabilize1"         targetPort="input" />
    <link sourceUnit="stabilize1"         sourcePort="output" targetUnit="zeroPosNegString1"  targetPort="input" />

    <link sourceUnit="zeroPosNegString1"  sourcePort="output" targetUnit="."                  targetPort="output" />
  </links>
</network>

