//glennj 6/12/2013 /// <summary> /// Sets the initial number of loop count /// </summary> /// <param name="awg"></param> /// <param name="setValueAs">NR1, Min, Max</param> /// <param name="setValue"></param> public void SetDiagnosticLoopCount(IAWG awg, DiagnosticLoopCountTypeAs setValueAs, string setValue = "") { var finalValue = setValue; switch (setValueAs) { case DiagnosticLoopCountTypeAs.Max: finalValue = DiagnosticLoopCountMaxSyntax; break; case DiagnosticLoopCountTypeAs.Min: finalValue = DiagnosticLoopCountMinSyntax; break; } awg.DiagControlCount(finalValue); }