public CoreControl() { pc = new PortControl(0); pc = new PortControl(0); pc.AnalogPortConfigurationIn(); pc.AnalogPortConfigurationOut(); pc.DigitalConfigurationOut(); pc.ClearALLDigitalPort(); }
/// <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(); }
public CoreControl() { PortControl Board = new PortControl(); }