Variablen in Simulink definieren (ohne Matlab)

조회 수: 23 (최근 30일)
Christian Maier
Christian Maier 2017년 9월 10일
답변: Christian Maier 2017년 9월 12일
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

답변 (2개)

Sebastian Castro
Sebastian Castro 2017년 9월 11일
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 2017년 9월 12일
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

카테고리

Help CenterFile Exchange에서 Simulink Environment Customization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by