Discrete-time or Continuous-time sample and hold input signal
Simscape / Electrical / Control / General Control
The Signal Sample and Hold block implements a signal sample and hold in either discrete or continuous time.
When input S is
y is equal to input u. When input
false, the block holds the output until
u— Input signal
S— Control signal
Sample pulse of
y— Output signal
Initial condition— Initial output value
Specify initial condition. The value must be a scalar or a vector of the same size as the input signal.
Sample time (-1 for inherited)— Block sample time
-1(default) | 0 | positive scalar
Time between consecutive block executions. During execution, the block produces outputs and, if appropriate, updates its internal state. For more information, see What Is Sample Time? (Simulink) and Specify Sample Time (Simulink).
For inherited discrete-time operation, specify
discrete-time operation, specify a positive integer. For continuous-time operation,
If this block is in a masked subsystem, or other variant subsystem that allows you to switch between continuous operation and discrete operation, promote the sample time parameter. Promoting the sample time parameter ensures correct switching between the continuous and discrete implementations of the block. For more information, see Promote Parameter to Mask (Simulink).