public MainFrm() { InitializeComponent(); for (int i = 1; i <= 10; i++) { cbWaveformSelection.Items.Add("testWaveform" + i.ToString()); } cbWaveformSelection.SelectedIndex = 8; this.pgConnectInitStatus.SelectedObject = ctrlParameter; btnLoadWaveformIntoMemory_Click(null, null); this.vxt2Hvi.updateLog += new BaseClass.UpdateLog(Log); this.m3202A.updateLog += new BaseClass.UpdateLog(Log); SynchronizeFrequency = -999; SystemFrequency = -999; // predefined setup found.. Subject to change... _30_72_Ver3.AWGTriggerDelay = 25; _30_72_Ver3.RFSamplingRateInMhz = 30.72; _122_88_Ver3.AWGTriggerDelay = 24; _122_88_Ver3.RFSamplingRateInMhz = 122.88; _137_60_Ver3.AWGTriggerDelay = 21; _137_60_Ver3.RFSamplingRateInMhz = 137.6; _199_68_Ver3.AWGTriggerDelay = 47; _199_68_Ver3.RFSamplingRateInMhz = 199.68; _250_00_Ver3.AWGTriggerDelay = 46; _250_00_Ver3.RFSamplingRateInMhz = 250; _250_00_Ver3.OSFactor = 4; _30_72_Ver4.RFSamplingRateInMhz = 30.72; _30_72_Ver4.AWGTriggerDelay = 26; _122_88_Ver4.RFSamplingRateInMhz = 122.88; _122_88_Ver4.AWGTriggerDelay = 0; _122_88_Ver4.BasebandDelay = 13; _122_88_Ver4.UseDummyWaveform = true; _137_60_Ver4.RFSamplingRateInMhz = 137.6; _137_60_Ver4.UseDummyWaveform = true; _137_60_Ver4.AWGTriggerDelay = 8; _199_68_Ver4.BasebandDelay = 34; _250_00_Ver4.AWGTriggerDelay = 18; _250_00_Ver4.UseDummyWaveform = true; _250_00_Ver4.OSFactor = 4; cbAWGHWVer.SelectedIndex = 0; rb30_72Mhz.Checked = true; etSetup = _30_72_Ver3; pgETSetup.SelectedObject = etSetup; }
private void Event_ETSetupChange(object sender, EventArgs e) { switch (cbAWGHWVer.SelectedIndex) { case 0: if (rb30_72Mhz.Checked) { etSetup = _30_72_Ver3; } if (rb122_88Mhz.Checked) { etSetup = _122_88_Ver3; } if (rb137_60Mhz.Checked) { etSetup = _137_60_Ver3; } if (rb199_68Mhz.Checked) { etSetup = _199_68_Ver3; } if (rb250Mhz.Checked) { etSetup = _250_00_Ver3; } break; case 1: if (rb30_72Mhz.Checked) { etSetup = _30_72_Ver4; } if (rb122_88Mhz.Checked) { etSetup = _122_88_Ver4; } if (rb137_60Mhz.Checked) { etSetup = _137_60_Ver4; } if (rb199_68Mhz.Checked) { etSetup = _199_68_Ver4; } if (rb250Mhz.Checked) { etSetup = _250_00_Ver4; } break; } this.pgETSetup.SelectedObject = etSetup; }