示例#1
0
        private void button2_Click(object sender, EventArgs e)
        {
            float freq = float.Parse(textBox5.Text);
            float ampl = float.Parse(textBox6.Text);

            AFG3022.GetInstance().Single(1, freq, ampl);
        }
示例#2
0
 public static AFG3022 GetInstance()
 {
     if (afg3022 == null)
     {
         afg3022 = new AFG3022();
     }
     return(afg3022);
 }
示例#3
0
 public static AFG3022 GetInstance()
 {
     if (afg3022 == null)
     {
         afg3022 = new AFG3022();
     }
     return afg3022;
 }
示例#4
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            float carrier  = float.Parse(textBox1.Text);
            float lowFreq  = float.Parse(textBox2.Text);
            float freqDiff = float.Parse(textBox3.Text);
            float ampl     = float.Parse(textBox4.Text);

            AFG3022.GetInstance().FMSignal(1, carrier, lowFreq, freqDiff, ampl);
        }
示例#5
0
 public void Output(int channel, bool state)
 {
     AFG3022.GetInstance().Output(channel, state);
 }
示例#6
0
 public void Single(int channel, float freq, float ampl)
 {
     AFG3022.GetInstance().Single(channel, freq, ampl);
 }
示例#7
0
 public void FMSignal(int channel, float carrier, float low, float offset, float ampl)
 {
     AFG3022.GetInstance().FMSignal(channel, carrier, low, offset, ampl);
 }