Problems with generating C code from simulink

2 views (last 30 days)
Hi guys,
I'm trying to implement a subsystem in simulink and to convert it in a C code using the Embedded Coder. After generate the C code, I could realize the following: Let's assume a system that multiply the input by 3. The generated code of this function will be like that:
void block_step(void) { block_Y.Vout = 3.0 * block_U.V_in; }
this function doesn't receive/return any value (void type).
My idea was to generate this code and to test it with a S-function in order to check if the embedded coder is generating a correct C code, and to compare the results with a regular block in the simulink. I'm trying to do this because I have to implement a control system in a DSP. Anyone has a idea how can I reach this??? Thank you

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!