I'm writing an application to read blocks of data from an external device over an RS485 half duplex link running at 921600 baud. The external device sends a block of data and then the MATLAB app needs to send a short acknowledge response before the device will send the next block. I find that MATLAB takes a varying time, often in excess of 35mS, after reading in the data block before it transmits the acknowledgement back. Is there some way to speed up this apparent serial port transmit delay as this is slowing the interaction down a lot? I am using MATLAB version R2018b. Thanks.
1.4m articles
1.4m replys
5 comments
57.0k users