フィルターのクリア

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 Center および File ExchangeFixed Point についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by