- Make sure the bus signal is properly routed from the base model to the reference model, ensure that the input ports of the reference model are configured to accept the bus signal. Because the variable in the base workspace may not be directly accessible in the reference model unless they are explicitly passed.
- You can also consider using data dictionary to manage your workspace variables and bus objects. This ensures all the necessary variables are available to both your base model and reference models.
How to Access Enum Bus Signal in Variant Subsystem within Referenced Model?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello everyone,
I'm facing an issue with a Simulink model where I'm using an enum bus signal to switch between two models configured as variant subsystems. These variant subsystems are part of a referenced model.
The problem is that the models in the referenced subsystem don't seem to have access to the enum bus signal or even to the base workspace variables.
I need the enum bus signal to be available in the referenced models so that it can control the variant conditions. Does anyone have suggestions on how to pass this enum bus signal to the referenced model or how to make it accessible within these models?
Any help or insight would be greatly appreciated!
Thanks in advance!
0 commentaires
Réponses (1)
Jatin
le 20 Août 2024
Modifié(e) : Jatin
le 20 Août 2024
As per my understanding you are working with a variant subsystem in your base model, and you have an enumerated bus signal which is inaccessible in the reference model.
These are few ways you can try to help you solve the issue:
You can refer the following MathWorks documentation for more details on data dictionary in Simulink.
2 commentaires
Voir également
Catégories
En savoir plus sur Component-Based Modeling dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!