I have imported system to simscape using simmechanics, this is the system ...
I want to control the system with real dc motor so I want to connect the revolute with dc motor
I tried to connect it with dc motor with specified no load speed and stall torque
This is parameters for motor block
And then sensed the torque and connected it to recolute like this
That worked but, the speed of the revolute is more than no-load speed of the motor, and toque is not affected by the load
Is there better solution for this?
You're almost there, the following answer has what you're looking for:
Adding a DC Motor to a Simscape Multibody Revolute Joint
The way to do it is to sense the speed of the revolute joint and feed it to the motor network with an ideal velocity source block. At the same time, sense the torque computed with a torque sensor and feed the output to the revolute joint. You can find an example of this (ready to copy/paste) in:
sm_bread_slicer