Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Bus assignment block automatically converts input data type
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello,
I am using bus assignment block to replace one of the signal in a bus. The input port of the bus assignment block is connected to switch block where the data type of the switch block output is set to uint8. But the bus assignement block converts it automatically to double. This causes a problem because later in the model a uint8 signal is expected. I don't know how to prevent this.

Best Regards
Suraj
댓글 수: 0
답변 (1개)
Mark McBroom
2019년 12월 2일
What is the data type of RX_Error in the bus when the bus is created? It is probably double. You will need to make the signal used for RX_Error when you create the bus to be uint8.
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!