just to add.
the pin extends downward eg 3mm . for an amount of time. and then retract.
the distance and duration before retract is a variable that could be input by the user.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!