The Same Error occurs when I use the logging funtion of the Simulink Scope
How can I show Data generated in Simulink in a Matlab GUI?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi,
I have a Simulink Model that creates Data. I built a GUI using uicontrol (not GUIDE) that gives parameters to the model (via workspace). A pushputton activates a nested function that gets the inputs and saves them. (get and assignin). Now I run the model (still in nested function), but the To Workspace Block does not work.
Error using GUI_01_FOM_frict/save_input (line 122)
Cannot create variable 'FOM_frict_phi' in workspace
Caused by:
Error using GUI_01_FOM_frict/save_input (line
122)
Attempt to add "FOM_frict_phi" to a static
workspace.
See Variables in Nested and Anonymous
Functions.
Error while evaluating UIControl Callback.
Same Error if call a script which has the sim command
I tried for several hours now to work around that, but I cannot find a solution.
I would appreciate any idea that could help
댓글 수: 3
Ankit
2019년 9월 18일
hello Andre,
you want to read the real-time simulation data from simulink model to GUI ?
regards
ANkit
답변 (1개)
Abhishek Gupta
2020년 9월 8일
편집: Abhishek Gupta
2020년 9월 8일
Referring to the following link, which might help you in resolving the issue: -
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Model, Block, and Port Callbacks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!