accessing data from workspace

3 vues (au cours des 30 derniers jours)
harish bharadwaj
harish bharadwaj le 25 Mai 2011
hi,
how to access data stored in workspace into simulink block during simulation period

Réponses (2)

MarkB
MarkB le 25 Mai 2011
In addition to the FromWorkspace block, you can also use base workspace variables in most dialog boxes in Simulink. Also, if you open the Configuration Parameters, and go to the Import/Export section, you can associate the input ports and output ports with workspace variables as well. There are a few formats available for doing this, but the general idea is that you have a monotonically increasing column vector of step times, and then a matrix with rows corresponding to time steps and columns corresponding to input/output ports.
  1 commentaire
Fangjun Jiang
Fangjun Jiang le 25 Mai 2011
Good summary!

Connectez-vous pour commenter.


Titus Edelhofer
Titus Edelhofer le 25 Mai 2011
If I understand correctly, your are looking for the "From Workspace" Block from the Sources library ...
Titus

Catégories

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

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by