Hi sayaf
The description you have give is very insuffieicent to come to any conclusion. but i think folllowing consideration might help you
1. your data acquisition and data processing should be in separate loops so that DAQ loop dont have to wait untill the data gets processed.
2. make sure your Queues dont get huge backlog.
3. If you are transfering data through TCP then make sure it supports the bandwidth.
4. try to write the code in such a way that Data acquisition loop will have high priority over processing loop.
5 Dont use AI Read only once to read whole data in one shot, but read number of small packets so process loop can get time to process data while your card is still acquiring data.
I hope i can help you in better way if you can tell me about your problem more specifically, or if you can share your code then i can suggest some modifications for improved performance
Regards,
Tushar