PS Transfer Function
Libraries:
Simscape /
Foundation Library /
Physical Signals /
Linear Operators
Description
The PS Transfer Function block lets you model first-order low-pass filters or lead-lag filters. Modeling both the plant and controller in a Simscape™ network improves simulation efficiency. The PS Transfer Function block lets you easily parameterize a filter in the desired configuration:
Lag
— Model a first-order low-pass filter. You have to provide the lag time constant and the initial output as block parameters.Lead-lag
— Model a lead-lag filter. You have to provide the lead time constant, the lag time constant, and the initial output as block parameters.
The block icon changes depending on the value of the Transfer function type parameter.
Restriction Type | Block Icon |
---|---|
|
|
|
|
Untyped physical ports facilitate unit propagation. The output signal has the same physical unit as the input signal.
You can specify the initial block output as either a block parameter or an additional input signal:
To define the initial condition as a block parameter, specify the Initial output source parameter as
Internal
and enter the value and unit in the Initial output fields.To provide the initial output value from an external source, specify the Initial output source parameter as
External
. An additional physical signal input port, Y0, appears at the top of the block icon. Connect the external physical signal to port Y0.
Resetting the State
The block can reset its state to the specified initial output based on an external
signal. By default, the External reset parameter is set to
None
. To cause the block to reset its state, select one of the
other External reset choices:
Select
Rising
to reset the state when the reset signal rises from a negative or zero value to a positive value.Select
Falling
to reset the state when the reset signal falls from a positive value to a zero or negative value.Select
Either
to reset the state when the reset signal changes from zero to a nonzero value, from a nonzero value to zero, or changes sign.
When you select either of these options, a trigger port R appears at the top of the block icon. Connect the reset physical signal to port R.
Assumptions and Limitations
The block assumes unity low-frequency gain. To model non-unity gain, connect a PS Gain block in series with the PS Transfer Function block.