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); }
public static AFG3022 GetInstance() { if (afg3022 == null) { afg3022 = new AFG3022(); } return(afg3022); }
public static AFG3022 GetInstance() { if (afg3022 == null) { afg3022 = new AFG3022(); } return afg3022; }
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); }
public void Output(int channel, bool state) { AFG3022.GetInstance().Output(channel, state); }
public void Single(int channel, float freq, float ampl) { AFG3022.GetInstance().Single(channel, freq, ampl); }
public void FMSignal(int channel, float carrier, float low, float offset, float ampl) { AFG3022.GetInstance().FMSignal(channel, carrier, low, offset, ampl); }