Search code examples
matlabsimulinksimscape

Is there a way to get text only voltage and current labels on Simscape circuits?


I am new to Simscape. I would like to find a minimalist way to display voltage and current at various points in a circuit. Ideally just floating text labels with no 'wires' or connections visible. For example "Vbe 0.4v" or "Ic 20mA"

Currently I am using 3 standard blocks to achieve this and the circuit looks cluttered.

Is there a way to do what I want with some coding?


Solution

  • Currently, you have several options, some involve more work. Here are two ideas:

    A) If your circuit is 3-phase, you can use the Busbar block and enable Frequency and Time solver in the Solver Configuration block, to display the initial voltages (and also power flows). This uses the Load-Flow Analysis feature starting R2019b. Check out this simple example.

    B) Connect Voltage Sensor blocks to the nodes you want to sense voltage on, and connect the voltage PS output to a Simulink Display block, which will display the numerical value in real-time.