Headless Check
This function block reports whether the current run is operating in headless mode (no user interface). Use it to adapt behavior when running on servers or automated environments.
π₯ Inputs
This block does not have any inputs.
π€ Outputs
Check This output provides a boolean value: TRUE when the scenario is running headless, FALSE when a user interface is available.
πΉοΈ Controls
This block does not expose any user controls.
π― Features
Simple TRUE/FALSE indicator suitable for flow control.
Lightweight and safe to place anywhere in the flow to adapt downstream behavior.
Works well as a gating signal for UI-dependent blocks or for toggling logging and export behavior in automated runs.
π How to use
Place the block where you need to decide between UI and non-UI behavior.
Connect the
Checkoutput to logic or control blocks to enable/disable branches (for example, to skip visual outputs when headless).Use the result with logic blocks (And / Or / Not) or flow-control blocks to implement conditional behavior.
π Evaluation
When evaluated, this block returns a single boolean on Check indicating the presence or absence of a user interface for the current run.
π‘ Tips and Tricks
To avoid opening windows on servers, use
Checkto gateShow Imageso image viewers are only enabled when not headless.In headless runs you may prefer saving results instead of showing them. Combine
Checkwith export blocks like Image Logger, Image Write, Record Video, or CSV Export to automatically save outputs when headless.Use
Checktogether with logic blocks such as Not, And or Or to build flexible rules (for example: save images only when headless AND aLogic Inputtrigger is active).When running automated evaluations, connect
Checkto Stop to gracefully end UI-based scenarios only when a UI is present.
π οΈ Troubleshooting
If the environment seems to be headless but
Checkreturns FALSE, verify how the scenario was started (some remote desktop or virtual displays may present as GUI).If you need different behavior for partially-headless setups (e.g., background GPU processes but occasional UI), combine
Checkwith manualLogic Inputto refine control.
Last updated
Was this helpful?