In the "Simulink-PS" block that converts the motion input to a physical signal, under the Input Handling tab, make sure that the signal derivatives are not set to “Zero (piecewise constant)”. By changing this entry to, e.g., "Filter input, derivatives calculated", and selecting a filtering method with a reasonable time-constant, the velocity signal appears as expected..
Another reason why the measured velocity is zero could be because the motion input signal to the joint is very "aggressive" and numerical calculation of its derivative (which is also dependent on the time step) might not be accurate. In this case, appropriate tuning of the solver step should resolve the issue.
Best Answer