Timer in Plecs State flow

Is there way to implement wait timer in stateflow.

Hi Samk,

It is possible to implement a waiting state using the state machine block. For reference, please look at the application example here, titled “PLECS: Buck Converter with Constant On-Time Control”. In this example, the current compensator is implemented using a state machine block, and it uses “timer” events and a “waiting” state. I attached the write-up of this application example to this post.

Regards,Manu

buck_converter_with_constant_on_time_control.pdf (143 KB)

Thanks Manu Parimi,