private void BtnTestESGError_Click(object sender, EventArgs e) { if (SigGen1 is null) { SigGen1 = new SigGen(SigGen1Address); Console.WriteLine(SigGen1.ToString()); } //ViException error = SigGen1.GetError(); //Console.WriteLine(error.Code + " || " + error.Message); }
private void InitInstruments() { if (SpecAn is null) { SpecAn = new SpecAn(SpecAnAddress); Console.WriteLine(SpecAn.ToString()); SpecAn.SelectMode(FSQMode.SpectrumAnalyzer); SpecAn.SelectScreen(FSQScreen.A); } if (SigGen1 is null) { SigGen1 = new SigGen(SigGen1Address); Console.WriteLine(SigGen1.ToString()); } /* * if (PowerSensor is null) * { * PowerSensor = new PowerSensor(PowerSensorAddress); * Console.WriteLine(PowerSensor.ToString()); * }*/ }