Esempio n. 1
0
 public static void Terminate()
 {
     if (enabled)
     {
         Apci54.Close(slotNo);
         enabled = false;
     }
 }
Esempio n. 2
0
                public static Boolean Initialize()
                {
                    Boolean status;
                    long    sts;

                    Read54Parameter();
                    status = (!existanceP54 ? true : false);

                    // スロット番号を自動検索
                    slotNo = Apci54.SlotAuto;

                    try {
                        sts    = Apci54.Create(slotNo);
                        status = (sts != 0 ? true : false);
                    } catch (Exception ex) {
                        status = false;
                        throw ex;
                    }

                    return(status);
                }