Can anyone please help me. I am trying to combine mechanical model which I have developed in Simscape with a DC motor model which I have made using differential equations. The motor gives electromechanical torque and speed and rotor angle. So my doubt is to how to use these value to generate the force for my mechanical modeled actuator. Please reply if you need to know more and what you want to know. And if you understood then tell me how to get this thing done.
I would strongly advise that you model your DC motor in Simscape as well rather than Simulink, this will avoid algebraic loops and the interface problem you are asking about.
However, if you really want to do this, I would suggest using the torque output of the motor model, feed it to an Ideal Torque Source block via a Simulink-PS Converter block. I would then measure the rotational speed on the mechanical side using an Ideal Rotational Motion Sensor block and feed it as an input to the motor model via a PS-Simulink Converter block. You can't specify both the speed and torque of the motor at the same time, if one's an output, the other one has to be an input.
Take a look at this webinar, it shows this exact workflow you are trying to follow: http://www.mathworks.com/company/events/webinars/wbnr41259.html?id=41259&p1=525985470