Hi Rajat,
I understand that you want help in attaching switch blocks to your attached model to perform the buck and boost mode.
After reviewing your model and the image provided, you can attach the switch blocks in the following way:
1. Output one more signal from both the “Buck” and the “Boost” Converter, which would be used as the control input for the “switch” block to dictate the on/off state of the converter. You can refer to the below documentation to know more about the “switch” block:
2. Furthermore to handle the other two output signals from the converters, you would have to store them in the workspace and then using the “From Workspace” to convert the PMC into a signal that can be used in “switch” block.
3. Use the “Mux” block to make the signals into a virtual vector and input the unified signal into the data input port of the “switch” block and use the “Demux” block to extract the original two signals (specifically for the Boost converter). You can refer to the below documentation to know more about the “Mux” and “Demux” block:
Hope it helps,
Regards,
Ayush Misra