Real-time velocity of Joint

Hi:

How to get real-time velocity of a joint, and show it in diagram.