/**************************************GUI Component Functions**************************************/ public SweepTest(AquaSift aqs) { aq = aqs; InitializeComponent(); sweepTimer = new AqTimer(aq); incommingData = new List <byte>(); wordData = new List <UInt16>(); sweepData = new List <SweepClass>(); ds = new DataSet(); thisIVCounts = new List <int>(); //Non-GUI timer for updating linear sweep data. updateTimer = new System.Timers.Timer(200); updateTimer.Elapsed += new ElapsedEventHandler(update_timer_Elapsed); updateTimer.Enabled = false; }
/**************************************GUI Component Functions**************************************/ public DifTest(AquaSift aqs) { aq = aqs; InitializeComponent(); difTimer = new AqTimer(aq); incommingData = new List <byte>(); wordData = new List <UInt16>(); preData = new List <PulseClass>(); pulseData = new List <PulseClass>(); ds = new DataSet(); //Non-GUI timer for updating differential pulse data. updateTimer = new System.Timers.Timer(200); updateTimer.Elapsed += new ElapsedEventHandler(update_timer_Elapsed); updateTimer.Enabled = false; }
/**************************************GUI Component Functions**************************************/ public AquaSift() { //Create new AquaSift timer object. aqTimer = new AqTimer(this); //Create new AquaSift settings object. aqSettings = new AqSettings(this); //Create a new SerialPort object with default settings. sp = new SerialPort(); sp.DataReceived += new SerialDataReceivedEventHandler(spDataReceived); //Create new console panel and add it to the main form. aqCon = new AqConsole(this); //Create new wavefor viewer. wfHelper = new WavefomrHelper(this); //Create new data tree panel. dataTree = new DataTree(this); //Create the test panels. sTestPanel = new SweepTest(this); dTestPanel = new DifTest(this); sTestPanel.Location = new Point(-2, 58); dTestPanel.Location = new Point(-2, 58); //Create new data plotter. aqPlotter = new AqPlotter(this); aqPlotter.Visible = false; InitializeComponent(); //Add user controls. spcMain.Panel2.Controls.Add(aqCon); spcSub2.Panel1.Controls.Add(wfHelper); //Set default test type as differential pulse. cmbTestTypes.SelectedIndex = SELECTION_DIF_PULSE; //Load default waveformm. wfHelper.waveformLoader(); //Differential pulse is default panel. cPointer = dTestPanel; tabTests.Controls.Add(cPointer); //Hide tabs on startup. tabControl1.TabPages.Remove(tabDevice); tabControl1.TabPages.Remove(tabDeposition); tabControl1.TabPages.Remove(tabTests); tabControl1.TabPages.Remove(tabAdvanced); //Remove graph tabs. aqPlotter.tbcPlotTabs.TabPages.Remove(aqPlotter.tabDeposition); aqPlotter.tbcPlotTabs.TabPages.Remove(aqPlotter.tabQuietTime); aqPlotter.tbcPlotTabs.TabPages.Remove(aqPlotter.tabRawData); aqPlotter.tbcPlotTabs.TabPages.Remove(aqPlotter.tabIVCurve); //Add waveform plotter. spcSub2.Panel1.Controls.Add(aqPlotter); //Add data tree. spcSub2.Panel2.Controls.Add(dataTree); }