Blocks.IntegerToBoolean ​
This component extends from partialBooleanSO
Usage ​
TranslatedComponents.Blocks.IntegerToBoolean(threshold=1)
Parameters: ​
| Name | Description | Units | Default value |
|---|---|---|---|
threshold | – | 1 |
Connectors ​
y- (BooleanOutput)u- (IntegerInput)
Behavior ​
julia
using TranslatedComponents #hide
using ModelingToolkit #hide
@variables threshold #hide
@named sys = TranslatedComponents.Blocks.IntegerToBoolean(threshold=threshold) #hide
full_equations(sys) #hide<< @example-block not executed in draft mode >>Source ​
dyad
component IntegerToBoolean
extends partialBooleanSO
u = IntegerInput()
parameter threshold::Integer = 1
relations
y = u >= threshold
endFlattened Source
dyad
component IntegerToBoolean
y = BooleanOutput()
u = IntegerInput()
parameter threshold::Integer = 1
relations
y = u >= threshold
metadata {}
endTest Cases ​
No test cases defined.
Related ​
Examples
Experiments
Analyses