fixdt() and RTW-EC
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi,
If I'm setting the data type of an output port to say fixdt(0,32,0.1,10) this will not result in the corresponding value output scaling in the generated code (RTW-EC). Is this the correct behavior or am I doing something wrong?
Many thanks in advance!
댓글 수: 0
답변 (1개)
Kaustubha Govind
2012년 3월 13일
Does inserting a Data Type Conversion block in front of the output port help? You need to configure the Data Type Conversion block to output the desired type.
댓글 수: 2
Kaustubha Govind
2012년 3월 14일
Turn on "Format>Port/Signal Displays>Port Data Types" from your model. What is the displayed datatype going into the outport?
참고 항목
카테고리
Help Center 및 File Exchange에서 Fixed Point에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!