Main Content

Translational Motion Sensor (PB)

R2026b

Motion sensor in position-based translational systems

Since R2024b

  • Translational Motion Sensor (PB) block

Libraries:
Simscape / Foundation Library / Translational / Sensors

Description

The Translational Motion Sensor (PB) block measures absolute or relative position, velocity, and acceleration in a position-based translational network. The measurement is positive when the motion at port F is greater than at port B. The sensor does not apply force to the network.

Connections B and F are position-based translational conserving ports.

Connections A, V, and P are physical signal output ports for acceleration, velocity, and position, respectively. The visibility of these ports is controlled by block parameters. If you enable port A, the block performs additional computations, to measure acceleration based on velocity. To avoid unnecessary model complexity, it is recommended that in each instance of the block you enable only the ports that you actually use for measurement.

Examples

Ports

Output

expand all

Physical signal output port for acceleration.

Dependencies

To enable this port, select the Acceleration check box.

Programmatic Use

Port: A

Physical signal output port for velocity.

Dependencies

To enable this port, select the Velocity check box.

Programmatic Use

Port: V

Physical signal output port for position.

Dependencies

To enable this port, select the Position check box.

Programmatic Use

Port: P

Conserving

expand all

Position-based translational conserving port that represents the base connection.

Programmatic Use

Port: B

Position-based translational conserving port that represents the follower connection.

Dependencies

To enable this port, set the Measurement reference parameter to Difference.

Programmatic Use

Port: F

Parameters

expand all

Select whether to perform absolute or relative measurements:

  • Difference — Measure the acceleration, velocity, and position of port F relative to port B.

  • Absolute — Disable port B and measure the acceleration, velocity, and position of port F with respect to the world frame.

Programmatic Use

Parameter: reference
Values: "foundation.enum.MeasurementReference.difference" | "foundation.enum.MeasurementReference.absolute"

Selecting this check box exposes output port A, which lets you measure acceleration. Exposing port A also involves additional computations, to measure acceleration based on velocity, therefore this port is off by default.

Programmatic Use

Parameter: acceleration_port
Values: "true" | "false"

Selecting this check box exposes output port V, which lets you measure velocity.

Programmatic Use

Parameter: velocity_port
Values: "true" | "false"

Selecting this check box exposes output port P, which lets you measure position.

Programmatic Use

Parameter: position_port
Values: "true" | "false"

Extended Capabilities

expand all

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2024b