//glennj 6/11/2013
        /// <summary>
        /// Sets the calibration loop count value.
        /// </summary>
        /// <param name="awg">the AWG object</param>
        /// <param name="setValueAs"></param>
        /// <param name="setValue">Desired loop count value to be set</param>
        public void AwgCalLoopCount(IAWG awg, CalibrationLoopCountTypeAs setValueAs, string setValue = "")
        {
            var finalValue = setValue;

            switch (setValueAs)
            {
            case CalibrationLoopCountTypeAs.Min:
                finalValue = CalibrationLoopCountMinSyntax;
                break;

            case CalibrationLoopCountTypeAs.Max:
                finalValue = CalibrationLoopCountMaxSyntax;
                break;
            }
            awg.CalLoopCount(finalValue);
        }