フィルターのクリア

Signals with Fixed-Point data types in Simulink Real-Time

4 ビュー (過去 30 日間)
CescaCP
CescaCP 2023 年 9 月 26 日
回答済み: Dimitri MANKOV 2023 年 9 月 28 日
I have a Simulink Real Time model being excecuted in a target machine. The model contains a signal with fixed-point data type. When my signal, originally an integer, is converted to fixed-point type (with the Data type conversion block) it turns to 0.
I've marked the it for data logging and I also connected it to File Log block (as suggested in the link below). Either ways show the signal is 0.
The same model works correctly in full simulation (simulink model, no real time).
Is there something I'm missing ? How can I solve this issue?
Thanks !

回答 (1 件)

Dimitri MANKOV
Dimitri MANKOV 2023 年 9 月 28 日
Hi Francesca,
Which MATLAB release are you using? The documentation you are referencing applies to R2023b, but I see that you entered R2018b in the details of your question. There has been a major update in Simulink Real-Time between R2020a and R2020b, which may explain the difference in the observed behavior.
Dimitri

カテゴリ

Help Center および File ExchangeMulticore Processor Targets についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by