What is the port compatibility for Simscape blocks?

Hi,
Whenever I work with simscape, I have this issue. Where is the port compatability defined?? I couldnt find any documentation related to this.
Some of the simscpae blocks are not connectable to any other directly in Simulink. Also, the PS-Simulink converter doesnt help
Here(in the fig), you can see that the A port is not connecting to anything. I tried to use all possible ways. My main aim is to connect scope to it and check the waveform. But its not connecting simply. I tried using a voltage sensor, which is a simscape element. But still its not connecting.
Ps: its not the issue of input ports or output ports. The conservative ports ABC in the above image are output ports of the block.

Answers (1)

Hi Raghuveer,
There is no such documentation which has information about port compatibility of all Simscape blocks. Generally, two blocks which belong to different Simscape Components cannot be connected directly.
  • PS-Simulink/Simulink-PS Converter block is used to connect a physical signal to simulink ouput signal or vice versa, this cannot be used to connect two different simscape components.
  • Now in-order to measure/observe the waveform or input given to 'Two-Level Converter' you might have to use some blocks from 'Simscape>Electrical>Specialized Power Systems>Utilities' like Voltage-Current Simscape Interface (gnd) or Current-Voltage Simscape Interface (gnd).
  • Two-level converter once connect to 'Voltage-Current Simscape Interface (gnd)' the other port of this block can be connected to corresponding sensor to measure/observe the input.

4 Comments

Thanks a lot for your reply. Does that mean that by simply connecting it between the specialised systems and general simscape blockes the circuit will work absoluetly fine? I am especially confused because the block you recommended is not passive but is active. It acts as a voltage source on the specialised blocks side and as a current source on the general simulink block side(as I understood from the documentation).
Edit: I found the pass through option to bypass the filter. Not sure if this block is now passive... But stil...
Additionally, the block already measure the voltage internally. Do I still connect a voltage sensor at the output of this block?
But still, the output of this block is not directly connectable to the PS-Simulink converter. So that makes me curious why is this block needed at all. I need to see the output of the specialised Simscape blocks on the Scope. But its currently not possible due to port incompatability. Thats why I asked whether there is any place where Mathworks has documented the port compatiblity? If I had'nt asked this question here, what were my chances of finding the right solution elsewhere on the internet.
Kindly guide me.
Thank you for your time and assistance!!
Hi,
I just wanted to direct you towards using the components from same Simscape Paradigm. The blocks which I mentioned earlier are just example which can be used with 'Two-level converter', they may not be required/relevant in your use-case.
Now if you want to observe certain values of 'Two-level converter' on scope block directly:
Here are the measurement blocks which you can directly connect to scope block on one end and other end to 'Two-level converter': 'Current Measurement','Voltage Measurement','Impedance Measurement' etc.
The path to these blocks is: Simscape> Electrical > Specialized Power Systems > Sensors and Measurements.
You may have to choose appropriate block depending upon the use-case.
Hello @Divyanshu, Thank you once again for your response. I understand that this might not be direct solution for my problem. And I appriciate your efforts.
What I am trying to figure out is, how do I know what is the solution? Where could I possibly find the solution to this compatibility issue? Is it documented anywhere by @MathWorks Support Team? I need to provide refrences to everyhting I do in the model. Where can I find the reference for the technique you have exaplined? @MathWorks Support Team could you please help me finding a proper documented reference for the above method.
@MathWorks Support Team, whenever I work with simscape, I have this issue. Where is the port compatability defined?? I couldnt find any documentation related to this.
Thanks in advance...

Sign in to comment.

Asked:

on 31 Jul 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!