コード例 #1
0
 public CoreControl()
 {
     pc = new PortControl(0);
     pc = new PortControl(0);
     pc.AnalogPortConfigurationIn();
     pc.AnalogPortConfigurationOut();
     pc.DigitalConfigurationOut();
     pc.ClearALLDigitalPort();
 }
コード例 #2
0
        /// <summary>
        /// 初始化
        /// </summary>
        /// <param name="boardNum"></param>
        /// <param name="isIn">true means digital input
        /// false means digital output</param>
        public GroupControl(int boardNum, bool isIn)
        {
            Board          = new PortControl(boardNum);
            DeviceDescript = Board.IsCorrectCreate;
            if (isIn)
            {
                Board.DigitalConfigurationIn();
            }
            else
            {
                Board.DigitalConfigurationOut();
            }

            Board.AnalogPortConfiguration();
        }
コード例 #3
0
ファイル: CoreControl.cs プロジェクト: Taaccoo-beta/XControl
 public CoreControl()
 {
     PortControl Board = new PortControl();
 }