While building generated C code, it is showing error due to simstruc_types.h and tmwtypes.h are missing

3 views (last 30 days)
function y = BlinkLed(x)
%#codegen
x=uint8(x);
if x==uint8(1)
y=uint8(1);
else
y=uint8(0);
end
end
I created a matlab function block in simulink and generated C code through code generation. While building the generated C code in visual Studio Code, I faced the error "rtwtypes.h:20:28: fatal error: simstruc_types.h: No such file or directory", "rtwtypes.h:20:28: fatal error: tmwtypes.h: No such file or directory". Please help me building this code.

Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!