GetPowerConsumption

GetPowerConsumption 1:

This method returns the current power consumption or the power consumption limit of the package of a defined real-time core via references. The value is the same for all real-time cores of the same package.

GetPowerConsumption 2: Return value

Name

Type

Description

GetPowerConsumption

HRESULT

In the event of an error, returns the error code for the error that has occurred.

GetPowerConsumption 3: Inputs

Name

Type

Description

nCurrentPackagePowerConsumption

REFERENCE TO UDINT

Returns the total power in watts of the platform package.

nPackagePowerLimit

REFERENCE TO UDINT

Returns the performance limit in watts of the platform package. Exceeding these limits can lead to frequency throttling of individual CPU cores.