SampleIfTrueSamples input, if Boolean trigger is true |
|
This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.
The (discrete) output y is sampled from the input u whenever the Boolean input trigger becomes true.
init in the Advanced tab allows to select →InitializationOptions:initialValue to determine the initial output y to be given before the sampling starts.initialValue as an initial guess.| initialValue |
Value: 0 Type: OutputType Description: Initial Value to be reported before sampling starts |
|---|---|
| init |
Value: modelSettings.init Type: InitializationOptions Description: Provide InitializationOptions (Free, FixedValue, SteadyState) |
| u |
Type: RealInput Description: Input |
|
|---|---|---|
| y |
Type: RealOutput Description: Output signal |
|
| trigger |
Type: BooleanInput Description: Triggers sampling upon `true` |
| modelSettings |
Type: ModelSettings Description: Setting important global variables within a model |
|---|