Why is existing mex file getting deleted while compiling the model?

조회 수: 1 (최근 30일)
GK
GK 2018년 6월 6일
댓글: GK 2018년 6월 11일
I am trying to compile a Simulink model with stateflow present inside. Because of statflow I'm getting following error: * _"Make Error" -> Making simulation target "ModelName_sfun",...
This program is blocked by group policy. For more information, contact your system administrator_*
So I old replaced mex file which compiled on old model.
But when I'm updating the model, the mex file is getting deleted, and I'm getting the same above error.
I thought I could compile the model using old mex file. Thank you for your suggestions.

답변 (2개)

Mark McBroom
Mark McBroom 2018년 6월 8일
Simulink will generate a new mex file for the stateflow block when it detects a change to the model. This ensures that the mex file is consistent with the stateflow model. You will need to get proper permissions so that MATLAB can write to the current working directory.
  댓글 수: 1
GK
GK 2018년 6월 11일
How can I get proper permission for MATLAB to write in current directory? Thanks.

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


GK
GK 2018년 6월 8일
Thanks for your reply. I understood, But I've a condition. 1. I'm able to generate mex file from a s-function block. 2. I'm unable to generate mex file for a stateflow model, as it is showing above error.
MATLAB is able to write mex for s-function but not for stateflow!

카테고리

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

제품


릴리스

R2013b

Community Treasure Hunt

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

Start Hunting!

Translated by