Drawing gain curve with C script

Hi there,

is there a way to draw the gain curve of a resonant converter using an implemented function?

So that I can, for example, draw the curve over the (normalized) frequency - depending on the different input signals?

My thought was to use the XY - plotter and control it for the respective axes with a C - script. Or to use only one C - script - block to output the function Gain = f(normalized frequency) in a scope.

Best regards

The XY Plot should be able to handle this and you can apply signal conditioning on the two input signals (such as to normalize the frequency) using standard PLECS Control domain blocks. I’m not sure if a C-Script is required, but let me know if you have any specific questions when pursuing this.