//glennj 6/11/2013 /// <summary> /// Sets the value of the calibration loop control /// </summary> /// <param name="awg">the AWG object</param> /// <param name="setMode"></param> public void SetDiagnosticLoopControl(IAWG awg, DiagnosticControlLoopMode setMode) { string setValue = ""; switch (setMode) { case DiagnosticControlLoopMode.Once: setValue = DiagnosticControlLoopOnceSyntaxSend; break; case DiagnosticControlLoopMode.Continuous: setValue = DiagnosticControlLoopContinuousSyntaxSend; break; case DiagnosticControlLoopMode.Count: setValue = DiagnosticControlLoopCountSyntaxSend; break; } awg.DiagControlLoop(setValue); }