Write/Read
About Power Limit

State (GPL) Property


Description

Enables and disables Global Power Limiting for the specified port.

 VB Syntax

gpl.State(port) = bool

Variable

(Type) - Description

gpl

A GlobalPowerLimit (object)

port

(Long) Port number for which power limit state is to be set.

bool

(Boolean) Choose from:

True - Power Limiting is enabled.

False - Power Limiting is disabled.

Return Type

Boolean

Default

False

Examples

gpl.State(1) = True 'Write

Limit = gpl.State(2) 'Read

C++ Syntax

HRESULT get_State(long port, VARIANT_BOOL  *pVal)
HRESULT put_Limit(long port, VARIANT_BOOL  newVal)

Interface

IGlobalPowerLimit