Continuous input from Workspace to Simulink model

I have a MATLAB function which continuously updates a set of variables, which I need to use as input for a Simulink model. I would like Simulink to update the value as soon as fur function generates a new one.
Does Simulink provide a block for this or do I have to write a S-function?

Risposte (1)

You can use interpreted matlab function block or matlab function block

2 Commenti

As my function is based on a custom Matlab library, it is not straightforward to implement it as a Matlab Function Block. That's why I would like to use an existing Simulink block.
What do you mean?

Accedi per commentare.

Categorie

Prodotti

Richiesto:

il 11 Lug 2013

Community Treasure Hunt

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

Start Hunting!

Translated by