//glennj 6/11/2013
        /// <summary>
        /// Sets the halt value to what is specified in the setValue variable.
        /// </summary>
        /// <param name="awg">the AWG object</param>
        /// <param name="haltMode">set the boolean HALT variable.</param>
        public void SetDiagnosticHalt(IAWG awg, DiagnosticControlHaltMode haltMode)
        {
            string haltSyntax = (haltMode == DiagnosticControlHaltMode.On)
                                    ? DiagnosticControlHaltOnSyntaxSend
                                    : DiagnosticControlHaltOffSyntaxSend;

            awg.DiagHalt(haltSyntax);
        }