コード例 #1
0
 // Protected Methods
 protected virtual double GetVoltageSetting()
 {
     _parentPowerSupply.ClearEventRegisters();
     if (!String.IsNullOrWhiteSpace(Name))
     {
         _parentPowerSupply.WriteString(String.Format("INSTrument:SELect {0}", Name));
     }
     _parentPowerSupply.WriteString("SOURce:VOLTage:LEVel:IMMediate:AMPLitude?");
     _parentPowerSupply.WaitForMeasurementToComplete(_parentPowerSupply.Timeout);
     _voltageSetting = (double)_parentPowerSupply.ReadNumber(IEEEASCIIType.ASCIIType_R8, true);
     return(_voltageSetting);
 }