示例#1
0
        public devicePump(motorBoardModel motorBoardIn, int diochannel)
        {
            _motorBoard = motorBoardIn.board;
            _diochannel = diochannel;

            // The Motorboard value cannot be null.

            if (motorBoardIn == null)
            {
                throw new Exception("Error; devicePump::devicePump the value motorBoardIn cannot be null.");
            }

            // Check the range values on the channel argument.

            if (diochannel < 1 || diochannel > 8)
            {
                throw new Exception(string.Format("Error; devicePump::devicePump the value for diochannel ({0}) must be between 1 and 8 (inclusive).",
                                                  diochannel.ToString()));
            }
        }
示例#2
0
 public deviceChassisPiston(motorBoardModel motorBoardIn, int channel, int[] channelPositions, string controllerId) :
     base(motorBoardIn.board, channel, channelPositions, controllerId)
 {
 }
示例#3
0
 public deviceOpticsMotor(motorBoardModel motorBoardIn, int channel, int[] positions, string controllerId) :
     base(motorBoardIn.board, channel, positions, controllerId)
 {
     isFirstIn = true;
 }