help required for fixed point conversion

2 ビュー (過去 30 日間)
Gary
Gary 2022 年 6 月 19 日
回答済み: Gary 2022 年 7 月 17 日
I am using R14A and I have modelled angle tracking observer algoirthm in simulink. I have simulated model wih floating point and it works well. I used fixed point advisor. Although there are no errors, but the output is zero. Can anybody help us withthis.
  5 件のコメント
Gary
Gary 2022 年 6 月 24 日
Hi Andy
Please see the file with all modifications suggested. I entered the desired values in the simulink model without creating a seperate script file. Tried to run fixed point advisor. But it gave lot of errors. Please suggest fix or method to fix it
Gary
Gary 2022 年 6 月 27 日
Could anybody help me to fix the overflow wraps in the model?

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

回答 (2 件)

Ayush Kumar Jaiswal
Ayush Kumar Jaiswal 2022 年 6 月 19 日
編集済み: Ayush Kumar Jaiswal 2022 年 6 月 19 日
The problem of getting all the output as zeros could potentially be related to the proposed data type settings which results in overflows. You could verfiy that in the histograms produced after simulation.
Try increasing the word length in the Settings section of the fixed point tool, allowing more room for calculation and hence avoiding overflows.
Thanks
  9 件のコメント
Ayush Kumar Jaiswal
Ayush Kumar Jaiswal 2022 年 6 月 20 日
Float subsystem also gives zeros as an output. You mean to say that after converting to fixed point both subsystems are giving zeros? Then please share the un-converted model.
Gary
Gary 2022 年 6 月 21 日
No. Float system gives perfect output. Fixed point model gives output zero. As I said earlier, I wanted to know the method of troubleshooting the problem. I am unable to find proper tutorials in this regard. All I could find is usage of fixed point advisor and not how to fix the problem when it occurs

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


Gary
Gary 2022 年 7 月 17 日
Finally, I got this model working in fixed point. I have learnt two lessons. First increase the size (16,32,48 etc) and secondly reduce the input range. By iterating between these two factors, I could finally get the result. Thank you all for all the help provided

カテゴリ

Help Center および File ExchangeFixed Point についてさらに検索

製品


リリース

R2014a

Community Treasure Hunt

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

Start Hunting!

Translated by