I am using cFP-2010 and LV RT 6.1 and would like to communicate with an external sensor via RS-232 at 115.2kbps. The network module communicates at this baudrate fine, but it does not seem to be able to keep up with a large amount of data on the serial port. The sensor is outputting a small packet at 100Hz, and I would like to capture each packet in real time, or as soon as possible. However, from what I can tell by experimenting, my VI is only able to retrieve a packet about every 100ms (10Hz). All of this extra data seems to build up in the UART buffer, which means I am in effect reading old data and will eventually recieve a buffer overflow error. I know I can manually clear the buffer before each read to only get new data, but I do
n't want to lose any data if possible. Also, the Serial Port Config VI has a parameter for buffer size but seems to be totally ignoring the value I give it (10 bytes). FYI, I also need to perform UDP communication in a separate loop with a much lower priority.
What is the maximum speed I can service the serial port (assuming minimal other load on the processor)? How can I improve my current acquisition rate?
Thanks for any help,
Nate