Variablen in Simulink definieren (ohne Matlab)

23 visualizzazioni (ultimi 30 giorni)
Christian Maier
Christian Maier il 10 Set 2017
Risposto: Christian Maier il 12 Set 2017
Sehr geehrte Damen und Herren,
mit liegt eine Simulink Datei (slx) vor. Wenn ich diese in Simulink ausführe schreibt es mir automatisch Variablen in den Workspace ein, auch wenn hier vorher keine definiert waren. Kann mir jemand sagen wie und warum?
Besten Dank und viele Grüße Christian Maier

Risposte (2)

Sebastian Castro
Sebastian Castro il 11 Set 2017
My answer is in English, I hope it is OK...
Have you looked into the model callbacks of that model? This is typically where MATLAB variables can be created directly from a Simulink model. https://www.mathworks.com/help/simulink/ug/model-callbacks.html
- Sebastian

Christian Maier
Christian Maier il 12 Set 2017
Hello,
thanks a lot for your response. This is it. In the callback section there is a position called InitFcn where I can define the variables. Thanks a lot. My problem is solved.
Have a nice day Christian

Categorie

Scopri di più su Simulink Environment Customization in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by