public void SetupAPSW() { //Test control of APX and AP2700 from same program -- if doable, write the rest of the program. //APX control - below code works textBox_Status.Text = "Latching to APx Software."; APx = new APx500(); APx.Visible = true; //APx.SignalMonitorsEnabled = true; //APx.OperatingMode = APxOperatingMode.BenchMode; //string APxfilenameLoad = APConfigFilesPath + "\\FFT.approjx"; //APx.OpenProject(APxfilenameLoad); //AP Control textBox_Status.Text = "Latching to AP2700 Software."; APObj = new AP.GlobalClass(); APObj.Application().Visible = true; //string AP2700filenameLoad = APConfigFilesPath + "\\Ripple Generation.at27"; //APObj.File().OpenTest(AP2700filenameLoad); //Check with user if AP2700 is working. //MessageBox.Show("Sometimes the AP2700 will disconnect when both APx and AP2700 softwares are loaded. Disconnect the AP2700 USB, reconnect, then click restore hardware in AP2700. Do this now before proceeding", "Crosstalk measurement via FFT"); textBox_Status.Text = "Sometimes the AP2700 will disconnect when both APx and AP2700 softwares are loaded. Disconnect the AP2700 USB, reconnect, then click restore hardware in AP2700. Do this now before proceeding."; }