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.