Why does code generated from my .SLXP model with setting "Obfuscated source code" contain non-obfuscated source code?
Show older comments
I'd like to generate code from an .SLXP model with setting "Obfuscated source code", but the generated code contains non-obfuscated source code. Why is this happening?
Here's an example. Open the following example:
openExample('simulink/ComponentInterfaceSpecificationUsingBusesExample')
I generated a protected .SLXP model of "CounterAlgorithm" with "Content type" set to "Obfuscated source code".

After generating the "CounterAlgorithm.slxp" file, I delete the original "CounterAlgorithm.slx" file.
Next, I build code for the parent "CounterSystem.slx" model using the following command:
slbuild('CounterSystem')
However, after building code, I notice that some of my generated code is not obfuscated. For example, "CounterAlgorithm_types.h" reveals the Bus structure of "LimitsBus" and "DataBus".

Why are these components not obfuscated in the generated code?
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!
