using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HTRA_CSharp_Examples
{
    class Program
    {
        static void Main(string[] args)
        {
            //每个范例都封装在单独的类中，使用范例时放出即可，注意：不可同时测试使用多个范例

            //获取设备信息
            Device_GetDeviceInfo Device_GetDeviceInfo = new Device_GetDeviceInfo();
            Device_GetDeviceInfo.Example();

            //获取标准频谱
            //SWP_GetSpectrum_Standard SWP_GetSpectrum_Standard = new SWP_GetSpectrum_Standard();
            //SWP_GetSpectrum_Standard.Example();

            //获取固定点数或时长的IQ数据
            //IQS_GetIQdata_Standard IQS_GetIQdata_Standard = new IQS_GetIQdata_Standard();
            //IQS_GetIQdata_Standard.Example();

            //获取固定点数或时长的实时频谱数据
            //RTA_GetRealTimeSpectrum_Standard RTA_GetRealTimeSpectrum_Standard = new RTA_GetRealTimeSpectrum_Standard();
            //RTA_GetRealTimeSpectrum_Standard.Example();

            //获取固定点数或时长的检波数据
            //DET_GetPowerTrace_Standard DET_GetPowerTrace_Standard = new DET_GetPowerTrace_Standard();
            //DET_GetPowerTrace_Standard.Example();

            //LPF功能
            //DSP_LPF DSP_LPF = new DSP_LPF();
            //DSP_LPF.Example();

            //IQ数据转频谱数据
            //DSP_IQSToSpectrum DSP_IQSToSpectrum = new DSP_IQSToSpectrum();
            //DSP_IQSToSpectrum.Example();

            //DDC功能
            //DSP_DDC DSP_DDC = new DSP_DDC();
            //DSP_DDC.Example();

            //FM/AM解调(FM/AM解调功能常规可同时使用，但此处同一时刻只能调用一个函数，因为此处作为单独案例需要考虑设备的重复打开问题)
            //Demodulation Demodulation = new Demodulation();
            //Demodulation.DSP_FMDemod();                               //FM解调
            //Demodulation.DSP_AMDemod();                               //AM解调

            //相位噪声测量
            //TraceAnalysis_PhaseNoise TraceAnalysis_PhaseNoise = new TraceAnalysis_PhaseNoise();
            //TraceAnalysis_PhaseNoise.Example();

            //输出单音信号
            //ASG_CWOutput ASG_CWOutput = new ASG_CWOutput();
            //ASG_CWOutput.Example();
        }

    }
}
