How to use the results calculated by the previous module to control the variant modules in the system composer (software architecture)?
5 次查看(过去 30 天)
显示 更早的评论
I am trying to use variant components to build my software architecture. The plan is to use the signal a calculated by the previous calculation module (Planning) to control the selection of variant components, such as selecting component_1 when v=1, and if v=2, select component_2. At present, after consulting the reference documents, it seems that the control variables for the variants can only be used in MATLAB ® Variables, Simulink Parameter object or Simulink The VariantControl object is used for control. And my quantity is the signal, how should this be achieved?
It should be noted that due to project requirements, I am unable to use programming methods likes M-function or S-function. I can only use the built-in module functions of SIMULINK.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1689457/image.png)
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!