Number Range
This function block provides an easy-to-use horizontal range slider to define a pair of numeric bounds (minimum and maximum). It is useful for creating reusable numeric ranges that can control thresholds, sizes or parameters across your scenario.
π₯ Inputs
Minimum Provide a number to override the lower bound. (Optional)
Maximum Provide a number to override the upper bound. (Optional)
π€ Outputs
Range The current min-max pair is output as a numeric range (two values). This output is marked as multiple and can be consumed by blocks that expect numeric inputs.
πΉοΈ Controls
Min - Max A text label that shows the current numeric pair.
Range Slider A horizontal slider widget you drag to set the lower and upper limits interactively.
(hint) If an input is connected to Minimum or Maximum, that value overrides the corresponding end of the slider.
π― Features
Real-time interactive control: adjust both ends of the range with a single slider.
Input overrides: connecting numbers to the inputs will update (and clamp) the slider range automatically.
Multiple output format: the range is provided as a pair so it can be used directly by other blocks.
Simple visual feedback: the label displays the current values so you always know the active limits.
βοΈ How it runs
If no external inputs are connected, the block uses the values set on the
Range Sliderand shows them onMin - Max.When a number is connected to
MinimumorMaximum, that value takes effect and the slider range updates to reflect the new bounds.The block continuously outputs the current bounds via
Rangeso downstream blocks receive the latest pair.
π Usage Instructions
Drag the block into your scenario.
Set a desired numeric interval by dragging the
Range Sliderhandles.Optionally connect numbers to
Minimumand/orMaximumto override the slider ends from other blocks or calculations.Connect the
Rangeoutput to any block that accepts numeric inputs to use the bounds in processing.
π‘ Tips and Tricks
Use with comparison blocks
GreaterandSmallerto build range checks: feed theGreaterandSmallerresults intoAll Trueto verify a value lies inside the range.Drive image processing limits (for example width/height) by connecting
RangetoImage ResizeorImage Paddinginputs to make interactive resizing workflows.Use with
Histogram On LineorImage Threshold(via numeric inputs) to switch thresholds dynamically during inspection.Combine with
Number Inputwhen you want a fixed numeric override that is easy for operators to type in.Send the numeric pair to
Scopeto visualize how the range changes over time during a run.
(hint) Keep your ranges consistent: if an external input sets a minimum larger than the maximum, the block will adjust/clamp values so the slider remains valid.
π οΈ Troubleshooting
If connected values appear not to take effect, verify the inputs are actually connected and producing numeric outputs.
If the slider jumps or the displayed pair is unexpected, check for conflicting external inputs on
MinimumandMaximum. Disconnect one to let the slider control that end again.If downstream blocks behave oddly, confirm they accept a two-value range and expect the same order (min, max).
Last updated