I'm new to Simulink, and would like to make my circuits less messy. So I'd like to know how to make a node, such as on the image bellow, which has Vin and Vout written on. My MATLAB version is 2015a.
3 Answers
To transmit the signal in this way, you have to use (From
and Goto
) blocks.
However, in your example they are using voltage sensor along with (From
and Goto
) blocks. If you double click Vout
, for example, you will see this,
Which is, from left to right, PMC port
, Voltage sensor
, PS-simulink converter
and Goto
blocks, respectively. Then we are using From
block to receive Vout signal and plot it.

- 1,084
- 4
- 13
- 15
I was able to get the simple label to work for me. Type in "Label" in the library browser and attached to a node the label with a name and then add another label on a different node you would like to be attached at the other first node with the same name. See Vcap in the image. I am referencing the cap voltage with the label "Vcap" and then attaching it to the comparator circuit. Create a simple circuit using this method and see how it works with voltage and/or current sensors

- 31
- 4
-
I'm glad that you got it working for you. But this isn't a forum. The answer field is reserved for actual answers. Take the [tour](https://electronics.stackexchange.com/tour) to check out how this Q&A site works. – Velvel Jan 12 '23 at 19:57
-
@Blake Can you expand this answer and explain why it works? – Voltage Spike Jan 12 '23 at 20:57
-
1Type in "Label" in the library browser and attached to a node the label with a name and then add another label on a different node you would like to be attached at the other first node with the same name. See Vcap in the image. I am referencing the cap voltage with the label "Vcap" and then attaching it to the comparator circuit. Create a simple circuit using this method and see how it works with voltage and/or current sensors. – Blake Borskey Jan 14 '23 at 12:45
To make nodes as per the image shared by you , you need to give GOTO and From. https://de.mathworks.com/help/simulink/slref/goto.html. The Goto block will give the input to the respective 'From' Block. For Example - If the output of your Voltage Sensor Subsystem is Vout and you need to give it on Scope , Then you need to put a GOTO block. But since GOTO block is a physiccal port from Simscape library , you need to also put PS-Simulink Converter. Now when you to a GOTO block , It will always show no 'No Goto Tag' , until you give a 'From' to it. So for every GOTO you will give a 'From'. In your Example Vout from VOltage Sensor Subsystem is GOTO block and its display on Scope will have its 'From' BLock.

- 1
- 3