Пример #1
0
        private void MathNetTest_Click(object sender, RoutedEventArgs e)
        {
            MWNumericArray missTone    = new int[] { 1000, 2000 };
            MWCharArray    fileDir     = "E:\\JiweiSung\\VisualStudioProject2017\\Code-For-Practice\\";
            MWCharArray    fileName    = "NoNative";
            MWNumericArray dslProfile  = 4;
            MWNumericArray upLimitPar  = 16;
            MWNumericArray lowLimitPar = 15;
            MWNumericArray maxVoltage  = 1;
            MWNumericArray ifftSize    = 65536;
            MWNumericArray bitWidth    = 16;
            MWNumericArray instrPar    = 16;

            MatlabData.N8241aWfm n8241aData = new MatlabData.N8241aWfm();
            MWArray[]            realPar    = n8241aData.DslWfmData(2, dslProfile, missTone, upLimitPar, lowLimitPar, maxVoltage, fileDir, fileName, ifftSize, bitWidth, instrPar);

            Log(1, realPar[0].ToString());
            Log(1, realPar[1].ToString());
        }
Пример #2
0
        private void MathNetTest_Click(object sender, RoutedEventArgs e)
        {
            MWCharArray fileDir  = "E:\\JiweiSung\\VisualStudioProject2017\\CodeForPractice\\";
            MWCharArray fileName = "20180527";

            MWNumericArray profile      = new int[] { 6, 32, 871, 1205, 1972, 2781, 8192 };
            MWNumericArray withMissTone = 0;
            MWNumericArray missToneList = new int[] { 1000, 2000 };
            MWNumericArray upLimitPar   = 16;
            MWNumericArray lowLimitPar  = 13;
            MWNumericArray maxVoltage   = 1;
            MWNumericArray ifftSize     = 65536;
            MWNumericArray bitWidth     = 16;
            MWNumericArray instrPar     = 16;
            MWNumericArray withFile     = 1;

            MatlabData.N8241aWfm n8241aData = new MatlabData.N8241aWfm();

            MWArray[] realPar = n8241aData.DslWfmDataConfig(2, profile, withMissTone, missToneList, upLimitPar, lowLimitPar, maxVoltage, fileDir, fileName, ifftSize, bitWidth, instrPar, withFile);

            Log(1, realPar[0].ToString());
            Log(1, realPar[1].ToString());
        }