예제 #1
0
 public Form1()
 {
     InitializeComponent();
     ComPorts();
     vetorParaTratamento      = new double[TempoDeAnalise * fa];
     copiaVetorParaTratamento = new double[TempoDeAnalise * fa];
     m             = new Mutex();
     MatlabAwake   = new Fltros();
     tratar        = new trataDado();
     sinalFiltrado = new double[TempoDeAnalise * fa];
 }
예제 #2
0
        public double[] passaAlta(double[] sinal, int polos, int fc, int fs)
        {
            double[] res = new double[sinal.Length];

            MWNumericArray aux_res2 = new MWNumericArray(new double[sinal.Length]);
            MWNumericArray xdt      = new MWNumericArray(new double[sinal.Length]);
            Array          aux_res3 = null;
            Fltros         obj      = new Fltros();

            xdt = sinal;
            MWArray aux_res = obj.HighPassFilt(xdt, polos, fc, fs);

            aux_res2 = (MWNumericArray)aux_res;
            aux_res3 = aux_res2.ToVector(MWArrayComponent.Real);
            res      = (double[])aux_res3;
            return(res);
        }