필터 지우기
필터 지우기

fixdt() and RTW-EC

조회 수: 2 (최근 30일)
Macko
Macko 2012년 3월 13일
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!

답변 (1개)

Kaustubha Govind
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
Macko
Macko 2012년 3월 14일
Thank you for replying! Unfortunately, inserting a data conversion block right before the output is not changing the generated code at all.
Kaustubha Govind
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 CenterFile Exchange에서 Fixed Point에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by