Single Precision Converter Does not work with R2016B
조회 수: 4 (최근 30일)
이전 댓글 표시
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
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
2025년 8월 22일
편집: Fangjun Jiang
2025년 8월 22일
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Subsystems에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!