File Exchange

image thumbnail

Motion Driver for SimMechanics

version 1.2.0.1 (20.2 KB) by

A block to generate velocity and acceleration from a position signal.

11 Downloads

Updated

View License

One way to actuate a SimMechanics model is by providing its Actuator blocks with 'Motion' signals. The input to a 'Motion' actuator is a three-element vector containing position, velocity and acceleration signals.
In many applications, the only data that is available is the position. This raises an interesting question: how can we calculate consistent velocity and position signals? One way to actuate a SimMechanics model is by providing its Actuator blocks with 'Motion' signals. The input to a 'Motion' actuator is a three-element vector containing position, velocity and acceleration signals.

In many applications, the only data that is available is the position. This raises an interesting question: how can we calculate consistent velocity and position signals? Differentiating the position signal sometimes works, but the velocity and acceleration signals tend to become very noisy. A better - though less intuitive approach - is to create a second-order tracking filter and use its position, velocity and acceleration signals to drive the actuator.

This file contains a small Simulink library, motdrv_lib and an example file, mech_motdrv. To use these, copy the files to your computer, add the directory to the MATLAB search path (see addpath for help) and type mech_motdrv in the MATLAB Command Window.

Comments and Ratings (3)

Toby

Toby (view profile)

Orkun Ogucu

Dean Kowal

When I click "Download All" I get Zip dated 06-Sept. (where is Zip 14-Sept ?)

Updates

1.2.0.1

Updated license

1.3

Fixed typographical error in description and updated MATLAB release number to match latest code.

1.2

Enhanced to support inherited initial conditions. Velocity-driven version of block introducted.

MATLAB Release
MATLAB 7.10 (R2010a)
Acknowledgements

Inspired: Quarter of Vehicle Simulation with Simscape

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

motdrv_lib/