//glennj 1/8/2014 /// <summary> /// Verify the expected state for the Output Wait state for a marker for a channel and for an AWG /// </summary> /// <param name="awg"></param> /// <param name="logicalChannel"></param> /// <param name="logicalMarker"></param> /// <param name="expectedState"></param> public void OutputWaitForTriggerMarkerStateValueShouldBe(IAWG awg, string logicalChannel, string logicalMarker, OutputMarkerWaitMode expectedState) { string expectedSyntax = SyntaxForOutputWaitValueMarkerFirst; switch (expectedState) { case OutputMarkerWaitMode.High: expectedSyntax = SyntaxForOutputWaitValueMarkerHigh; break; case OutputMarkerWaitMode.Low: expectedSyntax = SyntaxForOutputWaitValueMarkerLow; break; } string outputChannelMarkerWaitState = awg.OutputWaitMarkerState(logicalChannel, logicalMarker); string possibleErrorString = ErrorStringCheckingOutputWaitMarker + logicalMarker + ErrorStringForChannel + logicalChannel; Assert.AreEqual(expectedSyntax, outputChannelMarkerWaitState, possibleErrorString); }
//glennj 1/8/2014 /// <summary> /// Set the wait (for trigger) value for a marker for a channel for an AWG /// </summary> /// <param name="awg"></param> /// <param name="channel"></param> /// <param name="marker"></param> /// <param name="state"></param> public void SetOutputWaitForTriggerMarkerState(IAWG awg, string channel, string marker, OutputMarkerWaitMode state) { string expectedSyntax = SyntaxForOutputWaitValueMarkerFirst; switch (state) { case OutputMarkerWaitMode.High: expectedSyntax = SyntaxForOutputWaitValueMarkerHigh; break; case OutputMarkerWaitMode.Low: expectedSyntax = SyntaxForOutputWaitValueMarkerLow; break; } awg.SetOutputWaitForTriggerMarkerState(channel, marker, expectedSyntax); }