public void SetCompileSignalNotSelected(string signalName, string awgNumber) { bool deselect = false; IAWG awg = AwgSetupSteps.GetAWG(awgNumber); _awgCapturePlaybackGroup.SelectCompilePlaybackFile(awg, signalName, deselect); }
/// public void SetTheCompileSampleRateAutoOff(string awgNumber) { bool deselect = false; IAWG awg = AwgSetupSteps.GetAWG(awgNumber); _awgCapturePlaybackGroup.SetCompileSampleRateAuto(awg, deselect); }
public void SetMultiToneNotchStart(string notchNumber, string startValue, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneToneNotchStart(awg, AwgMultiToneGroup.NumericEntryAs.Value, startValue, notchNumber); }
public void SetMultiToneNotchEndMax(string notchNumber, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneToneNotchEnd(awg, AwgMultiToneGroup.NumericEntryAs.Max, "", notchNumber); }
public void AddMultiToneNotch(string startValue, string endValue, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneToneNotchAdd(awg, AwgMultiToneGroup.NumericEntryAs.Value, startValue, AwgMultiToneGroup.NumericEntryAs.Value, endValue); }
public void SetMultiToneNotchMin(string notchNumber, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); _awgMultiToneGroup.SetMultiToneToneNotchAdd(awg, AwgMultiToneGroup.NumericEntryAs.Min, "", AwgMultiToneGroup.NumericEntryAs.Min, ""); }
public void SetMultiToneToCompileAndAssignToChannel(string channelNo, string awgNumber) { var awg = AwgSetupSteps.GetAWG(awgNumber); var channel = Convert.ToInt32(channelNo); _awgMultiToneGroup.SetMultiToneChannel(awg, channel); }
public void DeleteAllWaveformListItems(string awgNumber) { IAWG awg = AwgSetupSteps.GetAWG(awgNumber); const string wfmName = "ALL"; _awgWaveformGroup.DeleteWfmFromWaveformList(awg, wfmName); }
public void TransferABlockFromWaveform(string wfmName, string awgNumber) { IAWG awg = AwgSetupSteps.GetAWG(awgNumber); //_awgWaveformGroup.TransferWaveformDataToPath(awg, wfmName, filePath, AwgWaveformGroup.WaveformData.AnalogOnly); _awgWaveformGroup.TransferWaveformDataToPath(awg, wfmName, AwgWaveformGroup.WaveformData.AnalogOnly); }
/// public void TheCompileSampleRateAutoCalcStateShouldBeOff(string awgNumber) { const string OFF = "0"; IAWG awg = AwgSetupSteps.GetAWG(awgNumber); _awgCapturePlaybackGroup.CompileSampleRateAutoCalcStateShouldBe(awg, OFF); }
public void SetTheSystemDateValueonAWG(string year, string month, string days, string awgNumber) { IAWG awg = AwgSetupSteps.GetAWG(awgNumber); string dateString = year + "," + month + "," + days; _awgSystemGroup.AwgSystemDate(awg, dateString); }
public void GetTheSampleRateOfWaveformToTheAWG(string wfmName, string awgNumber) { IAWG awg = AwgSetupSteps.GetAWG(awgNumber); _awgWaveformGroup.GetSamplerateWfmFromWaveformList(awg, wfmName); //ScenarioContext.Current.Pending(); }
public void GivenAnAWGHasTwoClock(string awgNumber) { #pragma warning disable 168 var awg = AwgSetupSteps.GetAWG(awgNumber); #pragma warning restore 168 ScenarioContext.Current.Pending(); }
public void SaveTheAwgSettings(string filePath, string awgNumber) { IAWG awg = AwgSetupSteps.GetAWG(awgNumber); //Write the awg.lrn string contents to the file File.WriteAllText(filePath, awg.Lrn); }
public void WaitAPeriodOfTimeMinutesForOperationComplete(string numberOfMinutes, string awgNumber) { IAWG awg = AwgSetupSteps.GetAWG(awgNumber); uint timeout = Convert.ToUInt32(numberOfMinutes) * 1000 * 60; _awgSyncGroup.AwgOperationCompleteQuery(awg, timeout); }
public void GivenTheAWGHasFourChannel(string awgNumber) { IAWG awg = AwgSetupSteps.GetAWG(awgNumber); const string expectedCount = "4"; _awgSystemGroup.VerifyChannelCount(awg, expectedCount); }
public void SetControlDACStateDisabled(string channel, string awgNumber) { string disabled = "0"; //same as OUTPut:MODE AC IAWG awg = AwgSetupSteps.GetAWG(awgNumber); _awgControlGroup.SetControlDACState(awg, channel, disabled); }
public void PollForOperationCompleteMinutesForAwg(uint value, string awgNumber) { const string interval = "minutes"; IAWG awg = AwgSetupSteps.GetAWG(awgNumber); _awgSyncGroup.AwgWaitForOperationComplete(awg, value, interval); }
public void SetTheInternalTriggerIntervalMaximumValue(string awgNumber) { IAWG awg = AwgSetupSteps.GetAWG(awgNumber); const string valueToSet = "MAX"; _awgTriggerGroup.SetTriggerInterval(awg, valueToSet); }
public void TheAwgControlDACStateShouldDisabled(string awgNumber) { string disabled = "0"; IAWG awg = AwgSetupSteps.GetAWG(awgNumber); _awgControlGroup.ControlDACStateShouldbe(awg, disabled); }
public void SetControlDACStateEnabled(string channel, string awgNumber) { string enabled = "1"; //default state same as OUTPut:MODE DIRect IAWG awg = AwgSetupSteps.GetAWG(awgNumber); _awgControlGroup.SetControlDACState(awg, channel, enabled); }
public void ThenAWGShouldBeTheActiveGenerator(string awgNumber) { IAWG awg = AwgSetupSteps.GetAWG(awgNumber); int index = int.Parse(awgNumber); string expectedAWG = GetDUTIP(index); _awgSXConnectivityGroup.ActiveQueryResult(expectedAWG, activeAWG); }
public void CompareSamplerateOfWaveformOnAWG(string actualSrate, string awgNumber) { IAWG awg = AwgSetupSteps.GetAWG(awgNumber); _awgWaveformGroup.CompareWaveformSRATE(awg, actualSrate); //ScenarioContext.Current.Pending(); }
public void WhenIQueryForTheActiveGeneratorOnAWG(string awgNumber) { IAWG awg = AwgSetupSteps.GetAWG(awgNumber); int index = int.Parse(awgNumber); activeAWG = _awgSXConnectivityGroup.ConnectivityActiveQuery(awg); System.Threading.Thread.Sleep(5000); }
public void WhenISendTheStatusQueryToTheAWG(string awgNumber) { IAWG awg = AwgSetupSteps.GetAWG(awgNumber); int index = int.Parse(awgNumber); string dutIP = GetDUTIP(index); statusOfAWG = _awgSXConnectivityGroup.ConnectivityStatusQuery(dutIP, awg); }
public void PreferredResetAWG(string awgNumber) { IAWG awg = AwgSetupSteps.GetAWG(awgNumber); _awgSystemGroup.AwgRST(awg); _awgSyncGroup.AwgOperationCompleteQuery(awg); //AwgContextFunctions.SetContextToAwgMode(); //Above sets UI context to AWG mode - this is one of a few places where a PI command can screw up the UI. Not sure if needed }
public void WhenIDisconnectFromAWG(string awgNumber) { IAWG awg = AwgSetupSteps.GetAWG(awgNumber); int index = int.Parse(awgNumber); string dutIP = GetDUTIP(index); _awgSXConnectivityGroup.ConnectivityDisconnectCommand(dutIP, awg); System.Threading.Thread.Sleep(10000); }
public void WhenISetTheAWGAsTheActiveGenerator(string awgNumber) { IAWG awg = AwgSetupSteps.GetAWG(awgNumber); int index = int.Parse(awgNumber); string dutIP = GetDUTIP(index); _awgSXConnectivityGroup.ConnectivityActiveCommand(dutIP, awg); System.Threading.Thread.Sleep(5000); }
public void DeprecatedISendTheCommandToTheAWG(string command) { IAWG awg = AwgSetupSteps.GetAWG(AwgSetupSteps.AwgContext); _utilitiesGroup.WriteCommandToAwg(awg, command); //PWH This sort of violates a design criteria that nothing should happen that is hidden, but there are //so many "When I send the "<command>"" tests that are not checking OPC that it causes the test runs to fail. //Rather than fix them all I'm going to make sure we don't die. awg.SessionTimeout = 60000; awg.OpcQuery(); awg.SessionTimeout = awg.DefaultVisaTimeout; }
public void GivenTheAWGHasTheOptionOrOption(string option1, string option2, string awgNumber) { IAWG awg = AwgSetupSteps.GetAWG(awgNumber); bool result1 = _awgStatusGroup.AWGOptionFinder(awg, option1); bool result2 = _awgStatusGroup.AWGOptionFinder(awg, option2); if (!result1 & !result2) { Assert.Inconclusive("The requested AWG does not have either option " + option1 + " or option " + option2 + ", test skipped"); //Did not find either desired option } }