Can I output PWM signals from the Ti PWM Block and NOT on the plant side from the PWM Capture block?
I need to use the PWM signal in the C-block as input arguments within the controller section of my HIL-simulation.
I need help with this question.
Can I output PWM signals from the Ti PWM Block and NOT on the plant side from the PWM Capture block?
I need to use the PWM signal in the C-block as input arguments within the controller section of my HIL-simulation.
I need help with this question.
Your question is not clear to me. Can you better illustrate it with models or graphics of some kind?
Hi, thanks for your reply.
The attached screenshot shows plant +control. I am using RT-box as my plant and MCU as controller. I want to know how to output the PWM signals and use them within the controller part (MCU). In other words,
There is no restriction against such implementing such a signal flow, but note that the sampling of the PWM signals will be limited to the discretization step size of the C2000 controller.
If you have PWMs with a switching period that is smaller than the discretization period of the C2000 control interrupt (defined by the discretizaiton step size parameter), then your control idea will likely not work. You may want to consider using the Pulse Capture block to extract data such as duty cycle instead of a C-Script block. If the period of the PWM signal is large relative to the C2000 discretization step size, then perhaps your approach could work.