//glennj 3/19/2014
        /// <summary>
        /// Calls a thread delay in the specified AWG and returns
        /// a 1 when the delay is done.
        ///
        /// Diagnostic and testing support
        /// </summary>
        /// <param name="awg"></param>
        /// <param name="delayInMSec"></param>
        public void DiagDelayInMSec(IAWG awg, string delayInMSec)
        {
            uint currentSessionTimeout = awg.SessionTimeout;

            awg.SessionTimeout = (Convert.ToUInt32(delayInMSec) + 10000); // Add 1 sec for cushin
            awg.DiagDelayInMSec(delayInMSec);
            awg.SessionTimeout = currentSessionTimeout;
        }