public Ke2500(byte address, NationalInstruments.NI4882.TimeoutValue timeout) { gpib_ = new GpibDriver(address, timeout); DefaultSettings_ = new Ke2500Settings( ); this.Reset( ); }
public AMP_FL8611(byte address, TimeoutValue timeout) : this() { settings = AgSettings.DefaultSettings; settings.GpibAddress = address; settings.GpibTimeout = timeout; this.gpib = new GpibDriver(this.settings.GpibAddress); gpib.GetIdentity( ); }
protected void InternalDisconnect( ) { try { this.gpib = null; } catch { throw new Exception("Error disconnecting instrument."); } }
protected override void InternalDisconnect( ) { try { this.gpib.Dispose( ); this.gpib = null; } catch (Exception ex) { throw new Exception(string.Format("Error disconnecting {0} with address {1}.\n{2}", this.Name, this.settings.GpibAddress.ToString( ), ex.Message)); } }
/// <summary> /// Disposes the current instance of the GPIB driver /// </summary> protected override void InternalDisconnect( ) { try { gpib_.Dispose( ); gpib_ = null; } catch (Exception ex) { throw new AgE3631AError("Error disconnecting E3631A.", ex); } }
protected override void InternalDisconnect( ) { try { gpib_.Dispose( ); gpib_ = null; } catch (Exception ex) { throw new Keithley7002Error("Error Keithley7002 internaldisconnet...", ex); } this.LogMessage("Keithley7002 internalDisconnet..."); }
//Disposes the current instance of the GPIB driver protected override void InternalDisconnect() { this.LogMessage("Agilent4338B InternalDisconnect..."); try { gpib_.Dispose(); gpib_ = null; } catch (Exception ex) { throw new Agilent_4338BError("Error disconnecting Agilent4338B!", ex); } }
/// <summary> /// Method used to initialize the GPIB interface /// </summary> protected override void InternalConnect( ) { try { if (gpib_ == null) { gpib_ = new GpibDriver(settings_.GpibAddress, settings_.GpibTimeout); } } catch (Exception ex) { throw new AgE3631AError("Error connecting E3631A.", ex); } }
protected override void InternalConnect( ) { try { if (this.gpib == null) { this.gpib = new GpibDriver(this.settings.GpibAddress, this.settings.GpibTimeout); this.InternalReset( ); // does ApplySettings() } } catch (Exception ex) { throw new Exception(string.Format("Error connecting {0} with address {1}.\n{2}", this.Name, this.settings.GpibAddress.ToString( ), ex.Message)); } }
protected override void InternalConnect( ) { try { if (gpib_ == null) { gpib_ = new GpibDriver(settings_.GpibAddress, settings_.GpibTimeout); } } catch (Exception ex) { throw new Keithley7002Error("Error Keithley7002 internalconnet...", ex); } //this.LogMessage( "Keithley7002 InternalConnet... " ); }
// Method used to initialize the GPIB interface protected override void InternalConnect() { this.LogMessage("Agilent4338B InternalConnect..."); try { if (gpib_ == null) { gpib_ = new GpibDriver(settings_.GpibAddress, settings_.GpibTimeout); } } catch (Exception ex) { throw new Agilent_4338BError("Error connecting Agilent4338B!", ex); } }
protected void InternalConnect( ) { try { this.gpib = new GpibDriver(this.settings.GpibAddress); GpibIdentity id = gpib.GetIdentity( ); if (id != null) { string strId = id.serialNumber; } } catch { throw new Exception("Error connecting instrument."); } }
public AnAQ6315(byte address, NationalInstruments.NI4882.TimeoutValue timeout) { gpib_ = new GpibDriver(address, timeout); //gpib_.Reset( ); //gpib_.Write( "INIT" ); GpibIdentity id; id = gpib_.GetIdentity( ); #if !TEST // if( id.model.Substring( 0, 5 ) != "86140" ) // throw new AnAQ6315Error( "Invalid model number" ); // TODO: Design way to test firmware version //if( id.firmwareVersion < "B.05.00" ) // throw AnAQ6315Error( "Invalid firmware version" ); #endif Initialise(false); //DoWaitForOperations = true; //StopSpectralApplication( ); DoWaitForOperations = false; }
public Ke2510(byte address, NationalInstruments.NI4882.TimeoutValue timeout) { gpib_ = new GpibDriver(address, timeout); del = new StabilizationDelegate(StabilizeTemperature); }
protected override void InternalConnect( ) { gpib_ = new GpibDriver(settings_.Adress, NationalInstruments.NI4882.TimeoutValue.T30s); }
protected override void InternalDisconnect() { this.gpib = null; //base.InternalDisconnect(); }