//glennj 1/8/2014 /// <summary> /// Verify the expected state for the Output Stop state for a marker and for an AWG /// </summary> /// <param name="awg"></param> /// <param name="logicalChannel"></param> /// <param name="logicalMarker"></param> /// <param name="expectedState"></param> public void OutputStopMarkerStateValueShouldBe(IAWG awg, string logicalChannel, string logicalMarker, OutputMarkerStopMode expectedState) { string expectedSyntax = (expectedState == OutputMarkerStopMode.Off) ? SyntaxForOutputStopValueMarkerOff : SyntaxForOutputStopValueMarkerLow; string outputChannelMarkerStopState = awg.OutputStopMarkerState(logicalChannel, logicalMarker); string possibleErrorString = ErrorStringCheckingOutputStopMarker + logicalMarker + ErrorStringForChannel + logicalChannel; Assert.AreEqual(expectedSyntax, outputChannelMarkerStopState, possibleErrorString); }
//glennj 1/8/2014 /// <summary> /// Set the Output Stop state for a marker and for an AWG /// </summary> /// <param name="awg"></param> /// <param name="channel"></param> /// <param name="marker"></param> /// <param name="condition"></param> public void SetOutputStopMarkerState(IAWG awg, string channel, string marker, OutputMarkerStopMode condition) { var setCondition = (condition == OutputMarkerStopMode.Off) ? SyntaxForOutputStopValueMarkerOff : SyntaxForOutputStopValueMarkerLow; awg.SetOutputStopMarkerState(channel, marker, setCondition); }