Single Precision Converter Does not work with R2016B

I am using Matlab R2016b. I need to convert a Simulink model to single-precision. When I click Analysis-->Data Type Design --> Single Precision Converter, I got a blank window.
Then I tried to use command line:
>> report = DataTypeWorkflow.Single.convertToSingle("MyModel")
it instantly returns:
report =
Report with no properties.
Which I believe it didn't do anything, but no error or warning was displayed either.
Any help will be appreciated

4 件のコメント

Torsten
Torsten 2025 年 8 月 21 日
編集済み: Torsten 2025 年 8 月 21 日
Do you have an example in R2016b where you can test if the converter works as expected ?
Like
in recent MATLAB ?
Walter Roberson
Walter Roberson 2025 年 8 月 22 日
I wonder if you just happen to have an internal firewall that is blocking the tool from connecting to an internal process?
Yongjun
Yongjun 2025 年 8 月 22 日
Thank you for the quick response.
No, I don't have this example in R2016B. I created a very simple model and tried Single Precision Converter, it doesn't work, but the it works fine with R2023B. Does this mean Single Precision Converter does not really function with R2016B? I notice this function was introduced with R2016B though
Torsten
Torsten 2025 年 8 月 22 日
I'd contact MATLAB Product Support. They can tell you whether the Single Precision Converter in R2016B worked differently compared to R2023B.

サインインしてコメントする。

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2025 年 8 月 22 日
編集済み: Fangjun Jiang 2025 年 8 月 22 日

0 投票

I ran this in R2022b.
>> report = DataTypeWorkflow.Single.convertToSingle("f14")
report =
Report with no properties.
However, I was able to launch the conver through "APPS", "Single Precision Converter" in R2022b.
It reported several incompatible blocks in "check compatibility" stage. The "Convert" and "Verify" stage didn't execute.
So I think that is why "report" is returned "with no properties". But of course, you have no way to tell if you can't open the converter through UI.
There are many places that could cause error in "check compatibility" stage, such as continus state, solver setting, etc. Thus, the "Convert" and "Verify" stage won't run. I suggest you check your model first. Once your model can generate code for a C99 embedded target, then you can try the report = DataTypeWorkflow.Single.convertToSingle() command again.

カテゴリ

ヘルプ センター および File ExchangeSubsystems についてさらに検索

製品

リリース

R2016b

質問済み:

2025 年 8 月 21 日

コメント済み:

2025 年 8 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by