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 (!SignalGenerator.IsEVSGB(str)) { return(null); } else { PsgEsg = null; } } catch (Exception exception) { throw new Exception(string.Concat("连接至模拟信号源出错: ", exception.Message)); } return(PsgEsg); }
public bool IsPVSG() { return(SignalGenerator.IsPVSG(this.Model)); }