Contenuto principale

PS Min

R2026b

Output minimum of two input physical signals

  • PS Min block

Libraries:
Simscape / Foundation Library / Physical Signals / Nonlinear Operators

Description

The PS Min block outputs the minimum of its two input physical signals:

O=min(I1,I2)

where

I1Physical signal at the first input port
I2Physical signal at the second input port
OPhysical signal at the output port

Physical signals at the two input ports must have commensurate units. The unit at the output port is determined by unit propagation rules. For more information, see Physical Signal Unit Propagation.

Ports

Input

expand all

First input physical signal.

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.

Programmatic Use

Port: I1

Second input physical signal.

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.

Programmatic Use

Port: I2

Output

expand all

Output physical signal.

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.

Programmatic Use

Port: O

Parameters

expand all

Clear to disable zero-crossing detection and increase simulation speed. For more information, see Managing Zero Crossings in Simscape Models.

Programmatic Use

Parameter: ZeroCross
Values: "true" | "false"

Programmatic Use: Add Block

To add the block programmatically, use the add_block function with one of these library block paths as the source.

"fl_lib/Physical Signals/Nonlinear Operators/PS Min"

Example: add_block("fl_lib/Physical Signals/Nonlinear Operators/PS Min","myModel/myBlock",MakeNameUnique="on")

For information about programmatic access to individual block parameters, see the Programmatic Use section of parameter descriptions on this page.

Extended Capabilities

expand all

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

Version History

Introduced in R2007b

expand all