Always time out, when sending more than two uint16 numbers with serial communication in the examples of Motor Control Blockset

조회 수: 2 (최근 30일)
Hi all!
I try to run the examples in Motor Control Blockset. When running the model, I successfully established a serial communication between my computer and an F28069M LaunchPad using "SCI Receive", "SCI Transmit" and "SCI Setup" blocks from the Host model. But, when I try to send three uint16 numbers from the host model to the target hardware, there is always a timeout error (return status number 1). Have I forgotten to set up a certain configuration step? Do you know a solution or other feasible methods?
Best regards,
Kun

답변 (1개)

Shivaprasad Narayan
Shivaprasad Narayan 2021년 11월 9일
The SCI Receive block in the target model is configured to generate FIFO interrupt when 4 data bytes are available in buffer. Hence the communication is limited to two uint16 numbers.
F28069M may be limited to a maximum of 4 bytes of buffer. Hence try introducing a delay in the host model before sending the 3rd number. Also make sure the SCI Receive block on the target model is configured correctly to receive 3 uint16 numbers.
Hope this helps!
Alternatively you can also reach out to MathWorks customer support for further assistance.

카테고리

Help CenterFile Exchange에서 Motor Parameter Estimation and Plant Modeling에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by