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

5 Ansichten (letzte 30 Tage)
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 Kommentare
Kyle Smith
Kyle Smith am 31 Jan. 2023
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.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Manoj Mirge
Manoj Mirge am 17 Apr. 2023
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.

Weitere Antworten (0)

Kategorien

Mehr zu Simulink Coder finden Sie in Help Center und File Exchange

Produkte


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by