- On the "receive" side, to empty the buffer, you can read and discard incoming data until the buffer is empty.
- On the "send" side, there is no workaround.
How can I flush the RS-232 buffers in xPC Target?
1 view (last 30 days)
Show older comments
I am using the xPC Target RS-232 driver blocks, and would like to flush both the send and receive buffers.
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
The ability to flush the RS-232 send and receive buffers is not available in xPC Target software.
Typically, send and receive buffers should be mostly empty during model execution. This is because your model must be able to process data faster than it arrives, and send data faster than data is ready to be sent.
As a workaround:
0 Comments
More Answers (0)
See Also
Categories
Find more on Multicore Processor Targets in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!