MATLAB: Simple electrical scheme

simple electrical scheme

Hello!
I am new to mathlab/simulink. I try to simulate simple scheme with one resistor, ac voltage source , and electrical reference(ground). I added powergui component, solver function block(but i dont know how to attach this block and use it). Then a ran a simulation process and it terminated succesfully. But when i try to measure, for example voltage, i add voltage measurement component, and when i tried to route it to my scheme red line appeared. Why is this occur?
Thank you!

Best Answer

It sounds as if you are using both Simscape and SimPowerSystems in the same model. Components in Simscape and SimPowerSystems cannot be connected together directly. From what you describe, you should need just Simscape blocks, which include a voltage measurement block. If you restrict yourself to using just Simscape (electrical) blocks, you'll be able to connect them together, no problem.
HTH,
Arnaud
Related Question