Skip to content

Improve support for System Composer in the Simulink driver #159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kolovos opened this issue Feb 21, 2025 · 0 comments
Open

Improve support for System Composer in the Simulink driver #159

kolovos opened this issue Feb 21, 2025 · 0 comments

Comments

@kolovos
Copy link
Contributor

kolovos commented Feb 21, 2025

As the Simulink driver doesn't provide dedicated support for System Composer, one would need to use its fallback statement and statementWithResult methods. For instance, to create a small system composer model one could replace the body of the EOL program in this example with the following.

M.statement('model = systemcomposer.createModel("archModel")');
M.statement('systemcomposer.openModel("archModel")');
M.statement('arch = get(model,"Architecture")');
M.statement('variant = addVariantComponent(arch,"Component1")');
M.statement('compList = addChoice(variant,["Choice1","Choice2"])');

In the future it would be useful for the driver to provide a more natural way of working with System Composer models.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant