| SimMechanics | ![]() |
Map multiple sensor/actuator lines to one sensor/actuator port on a Joint, Constraint, or Driver, or to one Body coordinate system port on a Body
Library
Description
The Mechanical Branching Bar bundles multiple actuator and sensor connection lines into one line, allowing you to connect multiple actuators and/or sensors to a single connector port on a Joint, Constraint, or Driver, or to a single Body coordinate system (CS) port on a Body. You can choose any number of sensor/actuator ports on the Mechanical Branching Bar.
Using the Mechanical Branching Bar, you can connect a Joint block to any combination of Joint Sensors, Joint Actuators, Joint Initial Condition Actuators, and Joint Stiction Actuators. The Actuator and Sensor dialogs display the Joint's primitives as if they were directly connected to the Joint.
Cascading Mechanical Branching Bars and Avoiding Closed Loops
You can connect multiple Mechanical Branching Bar blocks in series, creating a cascade. Connect the mechanical side of the first Branching Bar to a Joint, Constraint, Driver, or Body. Then connect its sensor/actuator side to the mechanical side of the second Branching Bar, and so on.
The only restriction on cascading Mechanical Branching Bars is that you must avoid connecting them into closed loops.
The following diagram shows a cascade, starting at a Body.
Dialog Box and Parameters
The dialog box has one active area, Connection parameters.
Connection Parameters
2.Example
Without the Mechanical Branching Bar, you must connect multiple Sensors and Actuators to a Joint by creating a sensor/actuator port on the Joint for each Sensor and each Actuator:
With the Mechanical Branching Bar block, you can combine all the sensor and actuator ports for a single Joint into one sensor/actuator port:
See Also
Body, Body Actuator, Body Sensor, Constraint & Driver Sensor, Driver Actuator, Joint Actuator, Joint Initial Condition Actuator, Joint Sensor, Joint Stiction Actuator
| Linear Driver | Parallel Constraint | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2008 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |