protected override void InternalDisconnect( )
 {
     this.LogMessage("Keithley7001 Internal Disconnecting ... ");
     try {
         gpib_.Dispose( );
         gpib_ = null;
     }
     catch (Exception ex) {
         throw new Ke7001Error("Error disconnecting Keithley7001 Internal", ex);
     }
 }
示例#2
0
 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));
     }
 }
 protected override void InternalConnect( )
 {
     this.LogMessage("Keithley7001 Internal Connecting ... ");
     try {
         if (gpib_ == null)
         {
             gpib_ = new GpibDriver(settings_.GpibAddress, settings_.GpibTimeout);
         }
     }
     catch (Exception ex) {
         throw new Ke7001Error("Error connecting Keithley7001", ex);
     }
 }
示例#4
0
 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));
     }
 }
 /// <summary>
 /// Constructor for the Ke7001 class
 /// </summary>
 /// <param name="address">GPIB address</param>
 /// <param name="timeout">Enum timeout value</param>
 public Ke7001(byte address, TimeoutValue timeout)
 {
     gpib_ = new GpibDriver(address, timeout);
 }