Table Of Contents

RT Get CPU Loads (G Dataflow)

Last Modified: January 12, 2018

Monitors the distribution of load on the CPUs in the system. For each CPU in the system, this node returns the total load as a percentage of capacity. This node also returns the percentage of CPU time devoted to each priority level, the percentage of idle CPU time, and the percentage of CPU time devoted to Timed Structures and interrupt service routines (ISRs).

connector_pane_image
datatype_icon

error in

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Default: No error

datatype_icon

CPU loads

Data corresponding to the distribution of load for each CPU in the system. The Nth element of this array corresponds to the Nth CPU in the system. CPU numbering begins at zero.

datatype_icon

Total (%)

Returns the total CPU usage as a percentage of capacity.

datatype_icon

Time Critical (%)

Returns the CPU usage devoted to time-critical threads as a percentage of total CPU capacity.

datatype_icon

Timed Structures (%)

Returns the CPU usage devoted to timed structures as a percentage of total CPU capacity.

datatype_icon

High (%)

Returns the CPU usage devoted to high priority threads as a percentage of total CPU capacity. (Real-Time Linux) CPU usage data is unavailable for this priority level. This output returns a value of 0.

datatype_icon

Above Normal (%)

Returns the CPU usage devoted to above normal priority threads as a percentage of total CPU capacity. (Real-Time Linux) CPU usage data is unavailable for this priority level. This output returns a value of 0.

datatype_icon

Normal (%)

Returns the CPU usage devoted to normal priority threads as a percentage of total CPU capacity.

datatype_icon

Background (%)

Returns the CPU usage devoted to background priority threads as a percentage of total CPU capacity. (Real-Time Linux) CPU usage data is unavailable for this priority level. This output returns a value of 0.

datatype_icon

Idle (%)

Returns the amount of idle CPU time as a percentage of total CPU capacity.

datatype_icon

ISR (%)

Returns the CPU usage devoted to interrupt service routines (ISRs) as a percentage of total CPU capacity.

datatype_icon

error out

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported

Web Server: Not supported in VIs that run in a web application


Recently Viewed Topics