Example #1
0
 private void Process()
 {
     if (_output.Value < 0.5)
     {
         if (_input.Value > _threshold.Value)
         {
             _output = new TimeLocatedValue(1.0, Parent.GetCurrentClockTime());
             _portOut.SendData(_output);
         }
     }
     else
     {
         if (_input.Value < _threshold.Value)
         {
             _output = new TimeLocatedValue(0.0, Parent.GetCurrentClockTime());
             _portOut.SendData(_output);
         }
     }
 }