AnsweredAssumed Answered

Block Based Talk Thru Integer Values

Question asked by RJMiller on May 25, 2012
Latest reply on Jun 17, 2014 by Mitesh

I'm doing a project and using the Block Based Talk Thru example as a starting point.  The first step is to input all 1024 samples into an array and calculate the energy in the block.  However, when I input into the array, I've noticed that the values from an ordinary sine wave goes from one extreme to the next.  An example is the value is 1.67e7 for one sample and the next sample is 5e5.  I've also noticed a pattern that it stays in the 1.6e7 range from about 40 samples and 5e5 range for about 50 samples.  I don't hear any discernible difference between the input and output.  I also need to convert the unsigned int to a float between -1.0 and 1.0.  I'm using an offset of 2^24 and it seems to work fine, but everything is always on the extremes of the spectrum (i.e. 0.9x - -0.9x).  I can't seem to find anything in documentation that might explain this behaviour.  Any help would be much appreciated.  Let me know if there's anything else I can post that might be useful information.