/// <summary>
        /// Method used to select the output to use
        /// </summary>
        public virtual void SetOutput(AgE3631AOutputVoltage output)
        {
            try {
                string outputString = string.Empty;

                switch (output)
                {
                case AgE3631AOutputVoltage.P06V:
                    outputString = "P6V";
                    break;

                case AgE3631AOutputVoltage.P25V:
                    outputString = "P25V";
                    break;

                case AgE3631AOutputVoltage.N25V:
                    outputString = "N25V";
                    break;

                default:
                    throw new AgE3631AError("Invalid output enumerator value. Allowed values are P6V, P25V, N25V.");
                }

                string command = String.Format("INST:SEL {0}", outputString);

                gpib_.Write(command);

                output_ = output;
            }
            catch (Exception ex) {
                throw new AgE3631AError("Error setting E3631A output.", ex);
            }
        }
Exemple #2
0
 public VoltageSupplyPort(AgE3631AOutputVoltage port)
 {
     this.port = port;
 }