private void masterCardInitialize() { Thread.Sleep(100); I16 rc; U16 ringStatus = 0; int getRingStatusRt = CMNET_L132.CS_mnet_get_ring_status((U16)Parameter.CardSwitchNo, (U16)Parameter.RingNoOfCard, ref ringStatus); if (getRingStatusRt != 0) { I16 exitsCard = 0; CPCI_L132.CS_l132_open(ref exitsCard); if (exitsCard == 0) { throw new Exception(ExceptionHelper.GetFullCurrentMethod(ResourceHelper.Language.GetString("DidntFindL132"))); } Thread.Sleep(30); rc = CPCI_L132.CS_l132_dsp_pci_boot((U16)Parameter.CardSwitchNo); Thread.Sleep(30); rc = CMNET_L132.CS_mnet_initial((U16)Parameter.CardSwitchNo, (U16)Parameter.RingNoOfCard); if (rc != 0) { throw new Exception(ExceptionHelper.GetFullCurrentMethod(ResourceHelper.Language.GetString("InitializeErrorL132"))); } } Thread.Sleep(30); rc = CMNET_L132.CS_mnet_reset_ring((U16)Parameter.CardSwitchNo, (U16)Parameter.RingNoOfCard); Thread.Sleep(30); rc = CMNET_L132.CS_mnet_start_ring((U16)Parameter.CardSwitchNo, (U16)Parameter.RingNoOfCard); if (rc != 0) { throw new Exception(ExceptionHelper.GetFullCurrentMethod(ResourceHelper.Language.GetString("StartupErrorL132"))); } }