For my rechargeble battery model in Simulink,i need a switch that needs to control the voltages across 2 points and according to a certain level it changes its state. To implement this in Simulink i use Voltage-Controlled Switch which belongs to a different library than by cells whose voltages are 12 Volts each. After connecting "Voltage-Current Interface(Ground)" to my circuit to connect these two objects of two different libraries i get an error stating the following. How can i fix this problem. Do you have any suggestions that i can do to accomplish my task. You can find the design and the error message below.[![enter image description here][1]][1] [![enter image description here][2]][2] [![enter image description here][3]][3] [1]: https://i.sstatic.net/mk6RF.png [2]: https://i.sstatic.net/vtFbM.png [3]: https://i.sstatic.net/3yNtf.png