Storing and plotting data across a simulation script

Hi,

I have a model simulating a converter at different switching frequencies using a simulation script and the model runs for 10 seconds and there is a goto signal that gets the Max temperature seen across the 10 seconds for each discrete switching frequency. How can I access this maximum temperature back into my simulation script and plot the max Temperature versus the switching frequency?

OpenloopSVPWM.plecs (152 KB)

Hi Santosh,

To bring the “MaxT” values back into the simulation script, you can use a “Signal Outport” component, as seen in the attached model. You can also calculate the maximum values directly in the script as shown in the demo model “Buck Converter with Parameter Sweep”.

Regards,
Manu

OpenloopSVPWM_MP_edit.plecs (145 KB)