Skip to content
Blocks.IntegerToBoolean.md

Blocks.IntegerToBoolean ​

This component extends from partialBooleanSO

Usage ​

TranslatedComponents.Blocks.IntegerToBoolean(threshold=1)

Parameters: ​

NameDescriptionUnitsDefault value
threshold–1

Connectors ​

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
end
Flattened Source
dyad
component IntegerToBoolean
  y = BooleanOutput()
  u = IntegerInput()
  parameter threshold::Integer = 1
relations
  y = u >= threshold
metadata {}
end


Test Cases ​

No test cases defined.

  • Examples

  • Experiments

  • Analyses