PS Constant

Generate constant physical signal

  • Library:
  • Simscape / Foundation Library / Physical Signals / Sources

Description

The PS Constant block generates a physical signal of a constant value. You specify the value and unit of the signal as the Constant parameter.

Ports

Output

expand all

Output physical signal. The signal value and unit are determined by the value and unit of the Constant parameter.

The port name is not visible in the block icon, but you can see this name in the underlying source file (accessible by clicking the Source code link in the block dialog box).

Parameters

expand all

The value and unit of the output signal at port O. The first edit box represents the signal value. You can specify both positive and negative values.

The second combo box represents the unit of the output signal. By default, the unit is 1 (unitless). You can select a unit from the drop-down list or type the desired unit name, such as rpm, or a valid expression, such as rad/s. For more information and a list of unit abbreviations, see How to Specify Units in Block Dialogs and Unit Definitions.

Compatibility Considerations

expand all

Behavior changed in R2019a

Extended Capabilities

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

Introduced in R2007b