Hiding simulink model content with s-function

조회 수: 2 (최근 30일)
Jianbin
Jianbin 2014년 7월 7일
댓글: Jianbin 2014년 7월 7일
hallo,
i want to hide some subsystem in my simulink model from third-party viewers. i found an answer here: http://www.mathworks.com/matlabcentral/answers/25625-hiding-model-content
but when i convert my subsystem to s-function, these s-function can not be compiled (to .dll) without .c and .h
is it possible, that i only give third party viewers .mex file, and they can compile the s function to dll?
or can i convert the c source code to some unreadable code?

답변 (1개)

Anthony Poulin
Anthony Poulin 2014년 7월 7일
The .mex (or .mexw32) is a compiled file. You don't need to compile it into dll file. If you give to your third part your model and your mex file, it is ok.
  댓글 수: 1
Jianbin
Jianbin 2014년 7월 7일
thx for ur reply!
but i really need to compile the s function...
problem is: i have a simulink model, i don't want to share content of some subsystem in it, so i convert them to s function. but the other subsystems are open to the third party viewers, they can rewrite them.
after rewriting, the simulink model must be able to compiled in a .dll file, in order to use it in another software. but this compiling requires c source code.

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

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by