Пример #1
0
        /// <summary>
        /// Test an expected value against a copy of the coupling of amplitude controls between channel 1 and channel 2 of a two channel AWG.
        /// </summary>
        /// <param name="awg"></param>
        /// <param name="expectedState"></param>
        public void AWGFgenCouplingAmplitudeStateValueShouldBe(IAWG awg, FGenCoupleAmplitude expectedState)
        {
            string       queriedSyntax       = expectedState == FGenCoupleAmplitude.Off ? FGenCoupleAmplitudeOffQuerySyntax : FGenCoupleAmplitudeOnQuerySyntax;
            const string possibleErrorString = "Checking the FGen coupling amplitude";

            Assert.AreEqual(queriedSyntax, awg.FGenCoupleAmplitude(), possibleErrorString);
        }
Пример #2
0
        /// <summary>
        /// Sets the coupling of amplitude controls between channel 1 and channel 2 of a two channel AWG.
        /// </summary>
        /// <param name="awg"></param>
        /// <param name="setValue"></param>
        public void SetTheAWGFgenCouplingAmplitudeStateValueTo(IAWG awg, FGenCoupleAmplitude setValue)
        {
            string commandSyntax = setValue == FGenCoupleAmplitude.Off ? FGenCoupleAmplitudeOffCommandSyntax : FGenCoupleAmplitudeOnCommandSyntax;

            awg.SetFGenCoupleAmpl(commandSyntax);
        }