Effacer les filtres
Effacer les filtres

How to export variables from Simulink to Workspace while running a simulation?

2 vues (au cours des 30 derniers jours)
Richard Lemke
Richard Lemke le 26 Nov 2018
Problem: I need 'live'-values of certain variables from a simulink model while running. The variables shall be used for the simulation which is controlled by a script.
I already tried to use the block 'to-Workspace' but with no success so far. The values just will be updated by the end of the simulation

Réponses (1)

Arunkumar M
Arunkumar M le 2 Déc 2018
You can use interpreted MATLAB function to get the output of your simulation and store it to base workspace using assignin command

Catégories

En savoir plus sur Programmatic Model Editing dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by