Code Generation Warning from Simulink (Viewers & Generator Manager contains...)
11 次查看(过去 30 天)
显示 更早的评论
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1279545/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1279550/image.png)
Top model:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1279555/image.png)
Referenced Model:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1279560/image.png)
5 个评论
Benjamin Thompson
2023-1-31
It is not a MATLAB product. Have you tried contacting the developer about it?
采纳的回答
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 generator “Hellow_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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Component-Based Modeling 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!