//关闭IO public override void ShutDownIO() { for (int i = 0; i < 30; i++) { serialPortInput.SetCommanderAccess(i, false); } }