Variablen in Simulink definieren (ohne Matlab)

23 views (last 30 days)
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

Answers (2)

Sebastian Castro
Sebastian Castro on 11 Sep 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 on 12 Sep 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

Categories

Find more on Simulink Environment Customization in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!