Ejemplo n.º 1
0
 private void Out(MotorValues outputValue)
 {
     _ulStatErrorInfo = _board.AOut(_channelNum, Range.UniPt05Volts, (short)outputValue);
     if (_ulStatErrorInfo.Value != ErrorInfo.ErrorCode.BadBoard)
     {
         _log.Warn("DAQ Input error: {0}", _ulStatErrorInfo.Message);
     }
 }
Ejemplo n.º 2
0
 public override IObservable <short> Process(IObservable <short> source)
 {
     return(Observable.Defer(() =>
     {
         var range = Range;
         var channel = Channel;
         var board = new MccBoard(BoardNumber);
         return source.Do(dataValue =>
         {
             var error = board.AOut(channel, range, dataValue);
             ThrowExceptionForErrorInfo(error);
         });
     }));
 }