Example #1
0
 protected override bool OpenDevice()
 {
     try
     {
         lock (locker)
         {
             IKeysightDeviceOptions deviceOptions = options as IKeysightDeviceOptions;
             session.Connect(deviceOptions.Address, deviceOptions.SessionType);
             SendBuffer("*RST");
             return(true);
         }
     }
     catch (Exception exception)
     {
         throw CreateThrowUpException(exception);
     }
 }
Example #2
0
 public KeysightDevice(IKeysightDeviceOptions options, Action <object, IOptionsBase> onOptionsUpdate)
     : base(options, onOptionsUpdate)
 {
     OptionsUpdate += OnPortOptionsUpdate;
 }
Example #3
0
 public KeysightDevice(IKeysightDeviceOptions options)
     : this(options, null)
 {
 }