Workspace variable is not seen by Simulink

Hello,
I am becoming crazy with this error...
I have a variable (structure) called MSCd, which is in the Matlab workspace. This variable is called by Simulink model, but Simulink is not able to see it.
Error evaluating parameter 'RowIndex' in 'Modele_Brio_DCT_V0a/Génération de couple embrayage glissant/Lookup Table (2-D)1': Undefined variable "MSCd" or class "MSCd.c".
Note that this was working last week. But I am unable to find why it does not work anymore !
Thank you for your help !
Jerome

댓글 수: 1

How do you run the simulation? Do you run from within a function using the SIM command by any chance?

댓글을 달려면 로그인하십시오.

답변 (1개)

Blondeel
Blondeel 2013년 1월 14일

0 개 추천

Thank you for your answer. Yes I was running Simulink within a function. If I hide the function headline, this is working !! Great !!!

댓글 수: 1

FYI: You can continue to run from the function, by following my solution here.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

제품

질문:

2013년 1월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by