コード例 #1
0
        /// <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);
            }
        }
コード例 #2
0
 /// <summary>
 /// Set new constant Voltage mode
 /// </summary>
 /// <param name="constantVoltage">BiasMode</param>
 public void SetConstantVoltage(ConstantVoltage constantVoltage)
 {
     Set(Commands.ConstantVoltage, (int)constantVoltage);
 }