How to protect paramaters in look-up table in Simulink?
Show older comments
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.





Accepted Answer
More Answers (0)
Categories
Find more on Simulink Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!