Forum Discussion
4 Replies
- Altera_Forum
Honored Contributor
This is not a simple question. There are so many ways you could do this that nobody can give you a simple answer. Do you have a decided upon implementation? We might be able to give you an estimate on how fast your implementation will run. How are you bringing the data into the NIOS? What TCP/IP stack are you using?
Jake - Altera_Forum
Honored Contributor
I am sending the output from a multiplexer to the Nios. At the moment I am sampling the the multiplexer at 100Hz / 8. (8 Channels)
The Nios is then connected to the PC via ethernet, using the mirco os or whatever it is called. I have two sockets open, one to send data and one to recieve commands. When tryign to increase the sampling rate, >200Hz my server on the pc crashes becasue data is missing on the input, i guess being lost in the Nios. Any ideas? I guess my limited sampling rate must be 200Hz. Is this correct as seems slow? - Altera_Forum
Honored Contributor
You're right, that is very slow. I can tell you that I'm able to achieve ~40Mbit/s over the ethernet. I've also been able to do ~300Mbit/s using USB. So you are nowhere near the physical limitations.
So how have you got your tasks prioritized in uCOS/II. Is it possible that your task that samples the data simply isn't running frequently enough. My personal approach to this would be to write a little hardware module to sample the data and store it into the FIFO, then have the NIOS come and grab large chunks of data and send it off. Jake - Altera_Forum
Honored Contributor
Yea i might have to I think.
Currently I send the data to the Nios and then becasue I am using one of the multiplexer channels as a header I am using this as a refreence for the server to then write the data to files.