PS Constant
Generate constant physical signal
Libraries:
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.
Examples
Ports
Output
O — Output physical signal, typed by the block parameter value
physical signal
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 by clicking the Source code link in the Description tab of the block dialog box.
Parameters
Constant — Signal value and unit
1 1
(default)
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.
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.
Version History
Introduced in R2007bR2019a: Unit Propagation
Prior to R2019a, this block did not propagate physical units.
If your model contains legacy blocks without unit propagation, use the Upgrade Advisor to upgrade your blocks to the latest version. For more information, see Upgrading Models with Legacy Physical Signal Blocks.
MATLAB-Befehl
Sie haben auf einen Link geklickt, der diesem MATLAB-Befehl entspricht:
Führen Sie den Befehl durch Eingabe in das MATLAB-Befehlsfenster aus. Webbrowser unterstützen keine MATLAB-Befehle.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)