[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: calculate SNR and watch a binary file
From: |
Francesco Potorti` |
Subject: |
Re: calculate SNR and watch a binary file |
Date: |
Thu, 26 Mar 2009 12:04:48 +0100 |
>>> filename = "spectrum.m";
>>> fid = fopen (filename, "r");
>>> [val, count] = fread (fid, 100, "uchar", "native")
>>> fclose(fid);
>>> As i know my Spectrum Analyser produces I/Q Signals, so there should be
>>> 2*16 bit values. Each 16 bit value is complex.
>>
>> What you wrote is either a typo or I do not understand it. I suppose
>> you meant that each complex value is written as two 16 bit numbers.
>> If this is the case, do not use "uchar" but "int16". Then try and see
>> if you get the correct numbers, probably the real and complex parts of
>> each sample. If not, try to experiment and guess how the numbers are
>> written to the file. Or else try to find some documentation on it :)
>in my Spectrum there is an unknown peak in the middle of the FFT-Plot
>which exists every time. I think it will be created as byproduct
>of a CIC decimation(Digital Down Converter) in my analyser.
>Therefor i want to manipulate this complex values, but didn't know how
>to ?
Have you applied my suggestions above?
--
Francesco Potortì (ricercatore) Voice: +39 050 315 3058 (op.2111)
ISTI - Area della ricerca CNR Fax: +39 050 315 2040
via G. Moruzzi 1, I-56124 Pisa Email: address@hidden
(entrance 20, 1st floor, room C71) Web: http://fly.isti.cnr.it/
- calculate SNR and watch a binary file, Markus Feldmann, 2009/03/25
- Re: calculate SNR and watch a binary file, Markus Feldmann, 2009/03/25
- Re: calculate SNR and watch a binary file, Francesco Potorti`, 2009/03/25
- Re: calculate SNR and watch a binary file, Markus Feldmann, 2009/03/26
- Re: calculate SNR and watch a binary file,
Francesco Potorti` <=
- Re: calculate SNR and watch a binary file, Markus Feldmann, 2009/03/26
- Re: calculate SNR and watch a binary file, Rob Mahurin, 2009/03/26
- Re: calculate SNR and watch a binary file, Markus Feldmann, 2009/03/26
- Re: calculate SNR and watch a binary file, Markus Feldmann, 2009/03/26
- Re: calculate SNR and watch a binary file, Rob Mahurin, 2009/03/27
- Re: calculate SNR and watch a binary file, feldmaus, 2009/03/27
- Re: calculate SNR and watch a binary file, Markus Feldmann, 2009/03/27
Re: calculate SNR and watch a binary file, feldmaus, 2009/03/28