Code Generation Warning from Simulink (Viewers & Generator Manager contains...)

6 ビュー (過去 30 日間)
Kyle Smith
Kyle Smith 2023 年 1 月 31 日
回答済み: Manoj Mirge 2023 年 4 月 17 日
Hello all,
I am trying to use the code generation feature from simulink using the IQAN Simulink toolbox from Parker. There seems to be little information out there about said toolbox, so I thought I'd ask here since the warning I am getting may apply to more scenarios than just this specific one:
"Warning: Viewers & Generators Manager contains an unconnected signal generator: 'Hello_world/Constant1'. It
might produce sample time code that has no effect in the generated code. To eliminate this unnecessary code,
either delete the signal generator or connect it to a block input port."
I am just testing the toolbox's capabilities at the moment so my model is very simple. It is two imports, whos signals get added in a sum block, and the sum block output is sent to an outport. That is the entire model. For the toolbox to work properly, this model needs to be a referenced subsystem. So basically, I generate code from a top model, which references this one.
I don't understand this warning becuase there is no "Constant1" in either of the models. I'll attach some pictures to this post.
Thanks in advance for any suggestions.
Top model:
Referenced Model:
  5 件のコメント
Benjamin Thompson
Benjamin Thompson 2023 年 1 月 31 日
It is not a MATLAB product. Have you tried contacting the developer about it?
Kyle Smith
Kyle Smith 2023 年 1 月 31 日
Hi @Benjamin Thompson, yes but waiting for a response. I just thought I'd ask here becuase the error looked like it could have been caused from something other than the toolbox I was using.

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

採用された回答

Manoj Mirge
Manoj Mirge 2023 年 4 月 17 日
Hi Kyle,
I could not find explanation for why you are getting unconnected signal generator blocks automatically generated in your Viewers and Generators manager.
But to get rid of warning you are getting you can try below workaround:
The warning says that Viewers and Generators manager has unconnected signal generatorHellow_world/Constant1”. The Viewers and Generators manager signal generators blocks are not visible on Simulink canvas, but you can manage them by using Viewers Manager. To use Viewer manager in Simulink, go to Simulation tab, open the Prepare gallery and select Viewers Manager. The Viewers and Generators Manager panel opens to the side of the Simulink editor.
You would be able to see “Hellow_world/Constant1” generator block in The Viewers and Generators Manager panel. To remove warning you are getting, you can delete those blocks from panel.
Hope this helps.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeComponent-Based Modeling についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by