Get CPU Usage

desktop · A353 · starter-package 7.0.1

Measure CPU use over a sampling interval.

What the block does

This block performs the action on this computer. A matching output from an earlier block takes precedence over the corresponding setting.

Inputs

  • sampleMs — Sample duration: number; minimum 50; maximum 5000; default 250.

Connections from earlier blocks

  • This block needs no connected output from an earlier block.

Outputs

  • usage — CPU usage: record; checked before the workflow continues.
  • fire — Fire: true after successful execution.

Settings

A connected output from an earlier block takes precedence over the corresponding setting.

IDSettingControlDefaultBounds
sampleMsSample durationnumber250minimum 50; maximum 5000

Example workflow

Connect 50 to sampleMs for a 50-millisecond sample. Read percent from usage for the measured load and logicalProcessors for the number of logical processors counted.

Error handling

  • Invalid input stops before the action. Missing connected output, invalid content, missing local permissions, and operating-system failures are named separately.
  • Reachability blocks return a normal false output when the target is not reachable. If a connected output is expired or belongs to another workflow run, the message tells you which connection to replace. If a required setting is missing, the message names that setting.