I just started learning to use Simulink in combination with MCU..
How to import simulink-generated code into S32DS so that it can be executed in conjunction with projects in S32DS. So that part of our project was designed by Simulink, the hardware driver code and main functions were handmade in the S32DS.
For example,there are three variables defined by Simulink modeling, i have generated the c code of the Simulink modeling,i want to import it into S32DS, and then the SDK package is used to configure the values of the variables to the values of ADC voltage sampling.
Solved! Go to Solution.
1.For example:
simulink_example.h(generated by matlab)
/* Imported (extern) block signals */
extern uint8_T Input_1;/* '<Root>/In1' */
main.c
#Include "simulnk.h"
/*Define Simulink Stateflow Chart Input parameters*
uint8_T Input_1 = 0;
2.How to include external files,and add the files path
for example.
BR!
Jim,
1.For example:
simulink_example.h(generated by matlab)
/* Imported (extern) block signals */
extern uint8_T Input_1;/* '<Root>/In1' */
main.c
#Include "simulnk.h"
/*Define Simulink Stateflow Chart Input parameters*
uint8_T Input_1 = 0;
2.How to include external files,and add the files path
for example.
BR!
Jim,
Thanks for your reply!
But the last picture is really unclear, I can't see what you chose. And this is my screenshot, can you tell me which one is the right one?
It doesn't matter,for the last picture, I just want to tell you where to add or delete the files path.
BR!
Jim,