Connecting electrical ports via Python / RPC

Hey,

I would like to reconfigure my electrical system from Python, i.e. connect the components in different ways programmatically. Ideally, I would create a subsystem for each part of the circuit and then connect these subsystems in various configurations via Python/RPC.

Is there a way to do this in PLECS, or any recommended workaround?

At the moment, the only solution I can think of is to build a large matrix of controlled electrical switches.

Thanks in advance for any suggestions :slight_smile: