From: Arnaud Miege on
"Guy Rouleau" <guy.rouleau.nospam(a)mathworks.com> wrote in message <hu088b$k87$1(a)fred.mathworks.com>...
> "Hassan " <h_radvar(a)yahoo.com> wrote in message <htrhng$72d$1(a)fred.mathworks.com>...
> > Hi everybody,
> > I want to enter the Displacement as an input to my mechanical model.
> > But in [Simscape>Mechanical Sources Library] there is not Displacement block!
> > Any suggestion!?
> > Thanks alot in advance.
>
> Hi,
>
> You need to use the "Ideal Translational Velocity Source ".
>
> For tips on how to convert your position signal into velocity, see:
>
> http://www.mathworks.com/access/helpdesk/help/toolbox/physmod/mech/ug/f2-117031.html
>
> HTH,
>
> Guy

You need to use a velocity source because velocity is the across variable for the translational mechanical domain. As Guy mentioned, there are standard techniques you can use for converting a position signal into velocity. Also check out the following:
http://www.mathworks.co.uk/matlabcentral/fileexchange/27589-motion-driver-for-simmechanics

HTH,

Arnaud