Beispiel #1
0
 private void btnAsyncDigIn_Click(object sender, EventArgs e)
 {
     if (hnd != null)
     {
         UInt32     din;
         lpcie.Errs err = hnd.AsyncInDig(out din);
         if (err != lpcie.Errs.OK)
         {
             MessageBox.Show(X502.GetErrorString(err), "Ошибка асинхронного ввода с цифровых линий",
                             MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
         else
         {
             edtAsyncDigIn.Text = din.ToString("X5");
         }
     }
 }