/// <summary> /// Returns a string representation of ConstantVoltage enumeration /// </summary> /// <param name="constantVoltage">Mode</param> /// <returns>String representation of Mode enumeration</returns> public static string Name(this ConstantVoltage constantVoltage) { switch (constantVoltage) { case ConstantVoltage.Off: return("Off"); case ConstantVoltage.On: return("On"); default: return(string.Empty); } }
/// <summary> /// Set new constant Voltage mode /// </summary> /// <param name="constantVoltage">BiasMode</param> public void SetConstantVoltage(ConstantVoltage constantVoltage) { Set(Commands.ConstantVoltage, (int)constantVoltage); }