| SimMechanics | ![]() |
Measure constraint force/torque between a pair of constrained bodies
Library
Description
The Constraint & Driver Sensor block measures the force/torque of constraint (reaction force/torque) between a pair of bodies. You connect the block to the Constraint or Driver block connected between the two Bodies. The output signal is the reaction force/torque.
The Constraint & Driver Sensor measures the reaction force/torque in the reference coordinate system (CS) specified in the block dialog box. The Constraint or Driver block connects a base and a follower Body. You choose in the dialog box to measure the reaction force/torque on either the base or the follower Body.
The input is the connector port connected to the Constraint or Driver block you want to sense. The outport is a set of Simulink signals or one bundled Simulink signal of the reaction force/torque vector(s).
A body's orientation rotation matrix R relates vector components measured in the body CS and in the inertial World CS by [R]
vb = vs. The column vector vb lists the vector v's three components measured in the body CS. The column vector vs lists the vector v's three components measured in the World CS.
Dialog Box and Parameters
The dialog box has one active area, Measurements.
Measurements
Base.Absolute (World).Absolute case, the force vectors have components measured relative to the inertial World CS axes. In the Local case, the same force vector signals are premultiplied by the inverse rotation matrix R-1 = RT for the Body selected in Reactions measured on.N-m (Newton-meters).N (Newtons).Example
Here is a Constraint & Driver Sensor connected to a Gear Constraint, which connects and constraints two Bodies:

You must add a Sensor port (connector port) to the Constraint/Driver block to connect the Constraint & Driver Sensor to it. The base (B)-follower (F) Body sequence on the two sides of the Joint determines the sense of the Constraint & Driver Sensor data.
See Also
Body Sensor, Driver Actuator, Joint Sensor, Mechanical Branching Bar
See Representing Body Positions and Orientations and Modeling Sensors.
In Simulink, see the Signal Routing Library and the Sinks Library.
| Connection Port | Continuous Angle | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2008 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |