Thank you for talking about solver configuration. I'd highly appreciate if you could make a video on solver configuration if the simulink model has both controller and plant (for ex. Buck converter like here). If possible also solver configuration with auto-code generation for any target, in perspective. Thanks a lot.
Kambadur, thank you for the feedback. Typically we use Euler's approach for auto code generation. Do you have a specific target in mind? This would help when you discretize. Alternatively, you can implement a discrete time controller in the model itself. Hopefully I will prepare something in the future.
@@SandunKuruppu Dear Prof. Kuruppu, thank you for your kind reply. Very sorry that I could not reply to you soon. As such I have no specific target in mind, but if the plant model has to be extended with a controller subsystem. I presume that the controller subsystem would be sampled with much lower sample time than the plant. In this purview, I would like to understand the below. How to configure/handle such multi-rate subsystems like this in the simulink model, so that I can run the complete model on host pc (SiL) and also as a PiL (with controller subsytem running on target and plant on the host pc). I could think of using an Arduino board or an STM32 CortexM4 Nucleo board for this. Thanks a lot.
@@vevasam You can have multirate systems in one simulation. You will need to include rate transition block, a delay or ZOH block for such systems. What you use vary from application to application. Typically ZOH works. I don't have such an example to demo, but I will try to include one in a future video. Appreciate the suggestion!
Thank you for talking about solver configuration. I'd highly appreciate if you could make a video on solver configuration if the simulink model has both controller and plant (for ex. Buck converter like here). If possible also solver configuration with auto-code generation for any target, in perspective. Thanks a lot.
Kambadur, thank you for the feedback. Typically we use Euler's approach for auto code generation. Do you have a specific target in mind? This would help when you discretize. Alternatively, you can implement a discrete time controller in the model itself. Hopefully I will prepare something in the future.
@@SandunKuruppu Dear Prof. Kuruppu, thank you for your kind reply. Very sorry that I could not reply to you soon. As such I have no specific target in mind, but if the plant model has to be extended with a controller subsystem. I presume that the controller subsystem would be sampled with much lower sample time than the plant. In this purview, I would like to understand the below.
How to configure/handle such multi-rate subsystems like this in the simulink model, so that I can run the complete model on host pc (SiL) and also as a PiL (with controller subsytem running on target and plant on the host pc). I could think of using an Arduino board or an STM32 CortexM4 Nucleo board for this.
Thanks a lot.
@@vevasam You can have multirate systems in one simulation. You will need to include rate transition block, a delay or ZOH block for such systems. What you use vary from application to application. Typically ZOH works. I don't have such an example to demo, but I will try to include one in a future video. Appreciate the suggestion!
@@SandunKuruppu Thanks a lot. Thank you so much for your time and effort in creating such useful content and to answering the queries.