MATLAB: How to generate the graph of current and voltage respective to time of the model

graphmodelplotSimscapeSimscape Electronicssimulink

I use simulink with simscape and simElectronic to build this model to test the result of my homework. However, I can't find a way to generate the graph of voltage and current.
here is the model of mine

Best Answer

As shown in this example, you need to use PS-Simulink Converter blocks to connect the sensor output to a Scope (or equivalent Simulink sink block).
Also, your current sensor is connected in the right way. You additionally want to get a Voltage sensor and connect it in parallel across whatever it is you want to measure. This could be the diode only, the resistor only, or both (which would give you the source voltage).
- Sebastian
Related Question