private void Form1_Load(object sender, EventArgs e) { aotask = new JXI750xAWGTask(0); aotask.Mode = AOMode.ContinuousWrapping; aotask.SampleRate = 20e6; aotask.WaveformLength = 10 * 1024; aotask.TimeBaseRate = 250e6; //强制250MS/s aotask.EnableDUC = true; aotask.DataFormat = DataFormat.Complex; //if (checkBox1.Checked) //{ aotask.AddChannel(-1, 70e6, 1.0, 0); //} //else //{ // aotask.AddChannel(0, (double)numIFCenterFreq.Value * 1e6, 1.0, 0); //} aotask.Commit(); aiTask = new JXI750xDigitizerTask(0); aiTask.SampleRate = 20e6; FPGADrives.FPGADrive fpga = FPGADrives.FPGADrive.GetInstance(); //fpga.Write(0x54008, 10); int ret; while (true) { _ = fpga.Read(0x54008, out ret); } }
private FPGADrive() { aotask = new JXI750xAWGTask(0); aotask.Mode = AOMode.ContinuousWrapping; aotask.SampleRate = 20e6; aotask.WaveformLength = 10 * 1024; aotask.TimeBaseRate = 250e6; //强制250MS/s aotask.EnableDUC = true; aotask.DataFormat = DataFormat.Complex; //if (checkBox1.Checked) //{ aotask.AddChannel(-1, 70e6, 1.0, 0); //} //else //{ // aotask.AddChannel(0, (double)numIFCenterFreq.Value * 1e6, 1.0, 0); //} aotask.Commit(); aiTask = new JXI750xDigitizerTask(0); aiTask.SampleRate = 20e6; int cardID = 0; int result = RFCore_Init(SlotNumber, ref cardID); CardID = cardID; }