- In the host model ‘Serial Receive’, ‘Serial Send’ and ‘Serial configuration’ blocks were used. For host-side serial communication, it is recommended to use ‘Host Serial Receive’, ‘Host Serial Transmit’ and ‘Host Serial Setup’ blocks. This is because ‘Host Serial’ blocks are specifically designed for configuring the host-side serial interface, whereas the ‘Serial Receive’ and related blocks are typically used for receiving binary data
- In the target model, the package header was set to ‘S’ and the terminator to ‘E’. However, in the ‘Serial Receive’ and ‘Serial Send’ blocks, the header and terminator were set as ‘[83 83]’ and ‘[69 69]’ respectively. Updating these values to ‘S’ and ‘E’ in the ‘Host Serial Transmit’ and ‘Host Serial Receive’ blocks resolved the issue.


- The Data size was set to [2 250] in the ‘Serial Receive’, changing it to 1 resolved the issue. The Data Size parameter determines the output size or the number of values read at each time step. Setting it to [2 250] expects a 2x250 matrix, but since we were transmitting a sine wave (as per your requirement) via the ‘Host Serial Transmit’ block, a size of 1 is appropriate.
- The sample time in all the blocks used should be the same.

