Can i able to access value from Data store memory in Embedded Matlab Function

조회 수: 16 (최근 30일)
I am trying to access value of data store memory in matlab embedded function. But when I update my model I am getting the following error
*Embedded MATLAB Runtime Error: Error evaluating Embedded MATLAB parameter data 'Flag1' (#40) in its parent workspace.*
Can anyone please tell me why I am getting this error or any solution for this.
Thanks in advance.

채택된 답변

TAB
TAB 2012년 9월 7일
편집: TAB 2012년 9월 7일
In version R2007b, using global variable in Matlab function (or Embedded matlab function) is not supported.
You can simply read the value of Data store memory using Data store Read block and pass this to Matlab function block as input, as shown here.

추가 답변 (1개)

Kaustubha Govind
Kaustubha Govind 2012년 9월 6일
Have you configured the block according to the documentation? Perhaps the Scope for 'Flag' has not been set to 'Data Store Memory' on the Ports and Data Manager?
  댓글 수: 5
niharika
niharika 2012년 9월 8일
Thank you very much Tab for your reply... it worked out for me.

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

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by