Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Please help me to solve the problem..

I am trying to do fft of data continuously fed via usb port....
Posted
Updated 17-Mar-10 3:38am
v2

You should refer to the documentation and/or API for your USB device. Most likely you will have to either call API functions for the device or one of the Win32 functions ReadFile or DeviceIoControl.
 
Share this answer
 
You are somehow getting the data from the USB connection to your DSP chip. How, you have not said. (interrupts, polling, shared memory? your code, a library routine?)

Buffer this data. When you have enough of it, process it just like you would have if it came from a file.

Do deal with synchronizing access to the buffer so that processing data out of it does not conflict with adding data to it. Perhaps you will need to employ double buffering or a ping-pong buffer.
 
Share this answer
 
Thank You Khythen,

I am using a dsp processor.
I already have the C code to perform fft. But in that code the data is taken from a file.

What change i should bring to that code...i stead of reading ffrom a file.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900