fixdt() and RTW-EC

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일

1 개 추천

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?

댓글을 달려면 로그인하십시오.

카테고리

질문:

2012년 3월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by