private void k2700Setup_KeithleyDataNamesChanged(object sender, DataSourceNamesEventsArgs e)
 {
     if (KeithleySourceNamesChanged != null)
     {
         KeithleySourceNamesChanged(sender, e);
     }
 }
예제 #2
0
 public void dataNamesUpdate(object sender, DataSourceNamesEventsArgs e)
 {
     cmbSeries.Items.Clear();
     for (int i = 0; i < e.sourceDataNames.Length; i++)
     {
         cmbSeries.Items.Add(e.sourceDataNames[i]);
     }
     initValues();
 }
예제 #3
0
        private void fireUpdateEvent()
        {
            if (FilterNamesChanged != null)
            {
                DataSourceNamesEventsArgs e = new DataSourceNamesEventsArgs();
                e.sourceDataNames = getDataNames();

                FilterNamesChanged(this, e);
            }
        }
예제 #4
0
        /**
         * Called externally when the data name convention is changed or initialized
         * */
        public void dataNamesUpdate(object sender, DataSourceNamesEventsArgs e)
        {
            cmbChannelA.Items.Clear();
            cmbChannelB.Items.Clear();

            for (int i = 0; i < e.sourceDataNames.Length; i++)
            {
                cmbChannelA.Items.Add(e.sourceDataNames[i]);
                cmbChannelB.Items.Add(e.sourceDataNames[i]);
            }
            initSettings();
        }
예제 #5
0
        /**
         * Called from other sources when the names for the data resources update
         * */
        public void dataNamesUpdate(object sender, DataSourceNamesEventsArgs e)
        {
            cmbHallProbe1.Items.Clear();
            cmbHallProbe2.Items.Clear();

            for (int i = 0; i < e.sourceDataNames.Length; i++)
            {
                cmbHallProbe1.Items.Add(e.sourceDataNames[i]);
                cmbHallProbe2.Items.Add(e.sourceDataNames[i]);
            }

            cmbHallProbe1.SelectedIndex = 22;
            cmbHallProbe2.SelectedIndex = 23;
        }
예제 #6
0
 public void keithleyNamesEvent()
 {
     if (KeithleyDataNamesChanged != null)
     {
         int expIndex = cmbMode.SelectedIndex;
         DataSourceNamesEventsArgs e = new DataSourceNamesEventsArgs();
         e.sourceDataNames = new string[keithleyData[expIndex].Rows.Count];
         for (int i = 0; i < e.sourceDataNames.Length; i++)
         {
             e.sourceDataNames[i] = (string)(keithleyData[expIndex].Rows[i][colIndexLabel]);
         }
         KeithleyDataNamesChanged(this, e);
     }
 }
        public void setDatafile(string file)
        {
            hallprobe = new HallProbeInstrument(file);
            hallprobe.initializeInstrument();
            hallprobe.SaveData += Hallprobe_SaveData;

            DataSourceNamesEventsArgs args = new DataSourceNamesEventsArgs();

            args.sourceDataNames    = new string[4];
            args.sourceDataNames[0] = "Bx";
            args.sourceDataNames[1] = "By";
            args.sourceDataNames[2] = "Bz";
            args.sourceDataNames[3] = "Bnorm";
            graphXYPlot1.dataNamesUpdate(null, args);
        }
예제 #8
0
 public void dataNamesUpdate(object sender, DataSourceNamesEventsArgs e)
 {
     header = e.sourceDataNames;
 }