Hybrid version of analog and digital control in PLECS

Hi, I am using an analog control (black lines) for the inner loop and digital control (signal lines with green color) for the outer loop. I request you to help me with connecting these two in PLECS. For analog control, I use op-amp circuits.

Best regards,

Siva

Hello, please see the screenshot below from our PLECS demo model “Buck Converter with Analog Controls”. As you can see you can use meters to measure electrical quantities and convert their values to digital/control signals, such as with the voltage measurement at the output of the analog controller: