/// <summary> /// 连接到 接收输出 /// </summary> /// <param name="dutChanAndAtt"> dutchannel + Att*4</param> private void RInConnect(int toSensorPort, int ThroughPort) { //PXA if (toSensorPort == 1) { //RNFCH1(); RNFReceive(); } //PNAPORT2 else if (toSensorPort == 5) { RPNAReceive(); } //CH2 else if (toSensorPort == 7) { OutputThroughMatix tempOut = (OutputThroughMatix)ThroughPort; if (tempOut == OutputThroughMatix.R_PA) { ROSCReceive_PM(); } else { ROSCReceive(); } } }
public override void MatrixConnection(int SourcePortNum, int ThroughPathNum, int GoalPortNum) { //输出部分 if (ThroughPathNum > 10) { OutputThroughMatix tempOutput = (OutputThroughMatix)ThroughPathNum; switch (tempOutput) { case OutputThroughMatix.T_ATT1: connectATT1(SourcePortNum, GoalPortNum); break; case OutputThroughMatix.T_Att2: connectATT2(SourcePortNum, GoalPortNum); break; case OutputThroughMatix.T_Normal: connectNormal(SourcePortNum, GoalPortNum); break; case OutputThroughMatix.T_Normal_PA: break; case OutputThroughMatix.R_Noraml: RInConnect(GoalPortNum, ThroughPathNum); break; case OutputThroughMatix.R_PA: RInConnect(GoalPortNum, ThroughPathNum); break; default: throw new Exception("开关切换路径有误!"); } } else //输入部分 { InputThroughMatix tempInput = (InputThroughMatix)ThroughPathNum; switch (tempInput) { case InputThroughMatix.T_PA: TPNASourceOutputChan_PM(); break; case InputThroughMatix.T_Normal: TPNASourceOutputChan(); break; case InputThroughMatix.R_Normal: if (SourcePortNum == 4) { connetRNFIn(GoalPortNum); } else if (SourcePortNum == 5) { connectRPNAIn(GoalPortNum); } else if (SourcePortNum == 1 || SourcePortNum == 2 || SourcePortNum == 3) { RSGINCHAll_PM(); } break; default: throw new Exception("开关切换路径有误!"); } } }