MATLAB: How to define the joint between pin and straight slot

pinsimmechanicsSimscape Multibodysimulinkslot

a short bar, one end is connected to rotate motor, the other end has a pin, connected into the straight slot of another long bar. the other end of long bar is fixed on the ground.
I mean, when the short bar is driven by motor to turn, the pin will slide in the streight slot of long bar, then will drive the long bar to move or turn through the contact force.
how to define the joint between the pin and stright slot? (i have looked at your comments on another answer about straight slot, but seems not seem with my question)
thanks!

Best Answer

This has been asked and answered before, see:
HTH,
Arnaud