How to protect paramaters in look-up table in Simulink?

조회 수: 1 (최근 30일)
ozan eren
ozan eren 2021년 8월 13일
답변: Pavan Guntha 2021년 8월 18일
Hi,
This is Ozan and I'am using Matlab/Simulink 2020a. I want to share my models with third parties, so I used model protection tool in Simulink with embedded coder. For other blocks the tool works fine and makes the code hard to understand, please note that model protection should be compatible with code generation. But when I protect a look-up table (or constant) whose parameters are provided from workspace all the parameters are visible in data.c file. This means that all third parties will be able to see look-up table parameters and I want to prevent that.
So in short, are there any way to protect the parameters of look up table?
To be more clear, I create an example. First, I created a look-up table from, then model referenced it. I protect the referenced model and create a rest harness. When I generate code from protected test harness and review the generated c code. I observe that all the parameters can be clearly seen in data.c file. The screenshots can be seen in the attachment. Also, I attach all the normal and protected model files.
Any help will be appreciated and thanks in advance.

채택된 답변

Pavan Guntha
Pavan Guntha 2021년 8월 18일
Hi Ozan,
I understand that the issue is with protecting the parameters of the Look-up Table while code generation from the protected model. The link below clearly explains various ways to offer different levels of protection to the Simulink models. You may have a look at that.
Hope this helps!

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by