public bool SetAioOutputDoBit(int index, short DoBit, short DoData)//left:0 ,right:1 { //デジタル出力 int Ret = 0; Ret = aio.OutputDoBit(aioId[index], DoBit, DoData); if (Ret != 0) { string ErrorString; aio.GetErrorString(Ret, out ErrorString); //label_Information.Text = "aio.OutputDoBit = " + Ret.ToString() + " : " + ErrorString; return(false); } System.Console.Write("({0}){1} ", DoBit, DoData); return(true); }