Specifies whether NI-DCPower automatically selects the voltage limit range based on the desired voltage limit for the specified channel(s).

Syntax

NIDCPOWER_ATTR_VOLTAGE_LIMIT_AUTORANGE

Numeric Value

Data Type

Access

Applies To

1150018

ViInt32

Read/Write

Channels

Remarks


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

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

This attribute is applicable only if the NIDCPOWER_ATTR_OUTPUT_FUNCTION attribute is set to NIDCPOWER_VAL_DC_CURRENT.

Defined Values:

Name

Value

Description

NIDCPOWER_VAL_OFF

0 (0x0)

NI-DCPower does not automatically select the voltage limit range.

NIDCPOWER_VAL_ON

1 (0x1)

NI-DCPower automatically selects the voltage limit range.

nn

Default Value:

Refer to Supported Attributes by Device for the default value by device.