private static string DetermineSupport(string address) { if (SignalGenerator.m_validateSupportDelegate == null) { return(null); } VectorSignalGenerator VectorSignalGenerator = null; try { VectorSignalGenerator = VectorSignalGenerator.CreateDetectedVectorSignalGenerator(address); } catch { throw; } if (VectorSignalGenerator == null) { return("无法识别信号源"); } return(SignalGenerator.m_validateSupportDelegate(VectorSignalGenerator)); }
public static SignalGenerator CreateDetectedAnalogSignalGenerator(string address) { SignalGenerator PsgEsg; try { string str = ScpiInstrument.DetermineModel(address); if (SignalGenerator.IsEVSGC(str) || SignalGenerator.IsPVSG(str)) { PsgEsg = new AgilentEsgAndPsg(address); } else if (SignalGenerator.IsAnalogE8257D(str)) { ///E8257D的代码 PsgEsg = new AgilentE8257D(address); } else if (SignalGenerator.IsAV1464B(str)) { PsgEsg = new AV1464BSignalGenerator(address); } else if (str.Contains("MG369")) { PsgEsg = new AnritsuMG3694A(address); } else if (!SignalGenerator.IsEVSGB(str)) { return(null); } else { PsgEsg = null; } } catch (Exception exception) { throw new Exception(string.Concat("连接至模拟信号源出错: ", exception.Message)); } return(PsgEsg); }
public bool IsPVSGD_SI() { return(SignalGenerator.IsPVSGD_SI(this.Model)); }
public bool IsAnalogE8257D() { return(SignalGenerator.IsAnalogE8257D(this.Model)); }
public bool IsEXG() { return(SignalGenerator.IsEXG(this.Model)); }