Forum Discussion
Altera_Forum
Honored Contributor
11 years agoInphase (I) and Quadrature (Q) components of signals
Hi All, How to calculate the Inphase (I) and Quadrature (Q) components of signals, such as RF signals? I would like to shift the RF signals to a specific baseband frequency and then derive the ...
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- But the amplitude of values is between -3.25*10^4 and 3.25*10^4. --- Quote End --- Don't think in decimal, think in power-of-2 3.25e4 = 2^15, so you're simply displaying a 16-bit signed integer number. --- Quote Start --- I'm using the NCO function in DSP Builder (simulink) to display the values. I connected the 16 bit sine and cosine outputs to simulink Scope to display the values. I think the reason of having these big amplitudes is because these values are displayed as signed integer. To fix the issue, --- Quote End --- Why do you think this is an "issue"? Its merely a scale factor. --- Quote Start --- I used Output AlteraBlockset to specify [Number of Bits].[] = 1 for the sign bit and [].[Number of Bits] = 15 for the fraction part of the floating point number. So MSB is the sign bit and the rest of 15 bits is the fraction number. --- Quote End --- What you are trying to do sounds reasonable, however, I don't use Simulink, so I cannot comment on whether this is the correct way to convert to fractional integer. --- Quote Start --- However, the output values are all negative and the cycle lenght is not correct, either. Or should I use another tool to check these values? --- Quote End --- It sounds like there is something wrong with your method of conversion to fractional integer. I'd take a look at the MATLAB documentation and try to find an example that works :) Cheers, Dave