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?

Answers (1)

You can use interpreted matlab function block or matlab function block

2 Comments

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.

Sign in to comment.

Categories

Products

Asked:

on 11 Jul 2013

Community Treasure Hunt

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

Start Hunting!