NIDCPOWER_ATTR_CURRENT_LIMIT_AUTORANGE

NI-DCPower Function Reference

NIDCPOWER_ATTR_CURRENT_LIMIT_AUTORANGE

Specific Attribute

Data
type
Access Applies to Coercion High-Level Functions
ViInt32 R/W Channel None None

Description

Specifies whether or not NI-DCPower automatically selects the current limit range based on the desired current limit for the specified channels.

If this attribute is set to NIDCPOWER_VAL_ON, NI-DCPower ignores any changes you make to the NIDCPOWER_ATTR_CURRENT_LIMIT_RANGE attribute. If you change this attribute from NIDCPOWER_VAL_ON to NIDCPOWER_VAL_OFF, NI-DCPower remembers the last value the NIDCPOWER_ATTR_CURRENT_LIMIT_RANGE attribute was set to (or the default value if the attribute was never set) and uses that value as the current limit range.

Query the NIDCPOWER_ATTR_CURRENT_LIMIT_RANGE attribute by using the niDCPower_GetAttributeViInt32 function to find out which range NI-DCPower automatically selects.

The NIDCPOWER_ATTR_CURRENT_LIMIT_AUTORANGE attribute is applicable only if the NIDCPOWER_ATTR_OUTPUT_FUNCTION attribute is set to NIDCPOWER_VAL_DC_VOLTAGE.

Defined Values:

NIDCPOWER_VAL_ONNI-DCPower automatically selects the current limit range.
NIDCPOWER_VAL_OFFNI-DCPower does not automatically select the current limit range.

Default Value: NIDCPOWER_VAL_OFF