I want to know the execution sequence(the temporal logic) if I use the Funtion-Call Generator in a model.
And Can you tell me the difference between the Funtion-Call Generator and the Interrupt_Timer? Can the Function-Call be used as the Interrupt_Timer?
I also want to know if there is a difference between MBD and the common-used "main" function.
Solved! Go to Solution.
Hello 1750632@tongji.edu.cn ,
The function call generator is going to trigger a subsystem by a 'software interrupt' if you may, while the PIT block will use a hardware trigger to call your subsystem. This is the main difference between them - software vs hardware scheduling.
Now for the fixed-step size, that is the parameter that controls the main loop period. Let me quickly go over the main parts of the code generated by our toolbox:
As for the main function, you can find it implemented in mbd_main.c file - there you'll see the initialization for the PIT block that will control the main loop.
Hope this is helpful.
Kind regards,
Razvan.
Hello 1750632@tongji.edu.cn ,
The function call generator is going to trigger a subsystem by a 'software interrupt' if you may, while the PIT block will use a hardware trigger to call your subsystem. This is the main difference between them - software vs hardware scheduling.
Now for the fixed-step size, that is the parameter that controls the main loop period. Let me quickly go over the main parts of the code generated by our toolbox:
As for the main function, you can find it implemented in mbd_main.c file - there you'll see the initialization for the PIT block that will control the main loop.
Hope this is helpful.
Kind regards,
Razvan.