// Added on 1st Oct 2019 (Post other PNA additions): // Edited 18/12/19 #region PNA Settings private void InitializePNA() { this.analyzer = new PNA(); //instantiate an object PNA - find out what this does! this.comboBoxMeasure.Items.Insert((int)PNA.MEASUREMENT.S11, "S11"); //give it the properties entered in the form this.comboBoxMeasure.Items.Insert((int)PNA.MEASUREMENT.S12, "S12"); this.comboBoxMeasure.Items.Insert((int)PNA.MEASUREMENT.S21, "S21"); this.comboBoxMeasure.Items.Insert((int)PNA.MEASUREMENT.S22, "S22"); this.comboBoxMeasure.SelectedIndex = (int)PNA.MEASUREMENT.S11; // default measurement setting // UPDATE 15/4: fix for format changing. this.comboBoxFormat.Items.Insert((int)PNA.FORMAT.LinMag, "Linear Magnitude"); this.comboBoxFormat.Items.Insert((int)PNA.FORMAT.LogMag, "Log Magnitude"); this.comboBoxFormat.Items.Insert((int)PNA.FORMAT.Phase, "Phase"); this.comboBoxFormat.Items.Insert((int)PNA.FORMAT.Polar, "Polar"); this.comboBoxFormat.Items.Insert((int)PNA.FORMAT.Smith, "Smith"); this.comboBoxFormat.Items.Insert((int)PNA.FORMAT.Delay, "Delay"); this.comboBoxFormat.Items.Insert((int)PNA.FORMAT.Real, "Real"); this.comboBoxFormat.Items.Insert((int)PNA.FORMAT.Imaginary, "Imaginary"); this.comboBoxFormat.Items.Insert((int)PNA.FORMAT.SWR, "SWR"); this.comboBoxFormat.SelectedIndex = (int)PNA.FORMAT.LinMag; }
public ManualMovement(PNA analyzer) : base(analyzer) { }
//protected gclib gclib; public MovementType(PNA analyzer) { this.analyzer = analyzer; //this.gclib = gclib; }