コード例 #1
0
ファイル: AWG.cs プロジェクト: tektronix/lab-bot
        public AWG(TekVISANet.VISA visaSession)
        {
            // New way to set visa timeout
            DefaultVisaTimeout = 90000;         // GRJ, 2013-10-02: old value, 10000;

            AWGVisaSession = visaSession;
// ReSharper disable UseObjectOrCollectionInitializer
            _visaExt = new VisaExtensions(AWGVisaSession);
// ReSharper restore UseObjectOrCollectionInitializer
            _visaExt.Session = AWGVisaSession.Session;

            // ReSharper disable UseObjectOrCollectionInitializer
            _pi = new CPi70KCmds(AWGVisaSession, _visaExt);
            // ReSharper restore UseObjectOrCollectionInitializer
            _pi.DefaultVisaTimeout = DefaultVisaTimeout;
        }
コード例 #2
0
        public EXTSOURCE(TekVISANet.VISA visaSession)
        {
            // New way to set visa timeout
            defaultVISATimeout = 90000;         // GRJ, 2013-10-02: old value, 10000;

            EXTSOURCEVisaSession = visaSession;
            // ReSharper disable UseObjectOrCollectionInitializer
            _visaExt = new VisaExtensions(EXTSOURCEVisaSession);
            // ReSharper restore UseObjectOrCollectionInitializer
            _visaExt.Session = EXTSOURCEVisaSession.Session;

            // ReSharper disable UseObjectOrCollectionInitializer
            _piex = new CPiExtSourceCmds(EXTSOURCEVisaSession, _visaExt);
            // ReSharper restore UseObjectOrCollectionInitializer
            _piex.DefaultVisaTimeout = defaultVISATimeout;
        }
コード例 #3
0
        public SCOPE(TekVISANet.VISA visaSession)
        {
            // New way to set visa timeout
            defaultVISATimeout = 90000;         // GRJ, 2013-10-02: old value, 10000;

            SCOPEVisaSession = visaSession;
            // ReSharper disable UseObjectOrCollectionInitializer
            _visaExt = new VisaExtensions(SCOPEVisaSession);
            // ReSharper restore UseObjectOrCollectionInitializer
            _visaExt.Session = SCOPEVisaSession.Session;

            // ReSharper disable UseObjectOrCollectionInitializer
            _pis = new CPiScopeCmds(SCOPEVisaSession, _visaExt);
            // ReSharper restore UseObjectOrCollectionInitializer
            _pis.DefaultVisaTimeout = defaultVISATimeout;
        }