Borrar filtros
Borrar filtros

Rate-specific functionality for "System Update" Simulink block?

2 visualizaciones (últimos 30 días)
Matthias Weber
Matthias Weber el 8 de Mayo de 2019
Hi all,
I am currently experimenting with the "System Update" Simulink block (see also: https://mathworks.com/help/rtw/ref/systemupdate.html). It provides the functionality to include custom code into your model.
So far, so good. However, I have a multi-rate model and I have several model entry functions for my model.
The current behaviour is: the code gets duplicated for every rate.
Is there a way to specify the sample rate the block should be used for (i.e. limit its scope)? Or is there a way to use a kind of macro to identify the sample rate the code is generated in (i.e. use an identifier and define custom behaviour in my code by using if/else if/else or switch/case)?
Kind regards,
Matthias

Respuestas (0)

Categorías

Más información sobre Deployment, Integration, and Supported Hardware en Help Center y File Exchange.

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by