Gets or sets the power source to use, for sessions initialized with deprecated NIDCPower constructors. NI-DCPower switches the power source used by the device to the specified value.

Syntax

Namespace: NationalInstruments.ModularInstruments.NIDCPower

public DCPowerPowerSource PowerSource { get; set; }

Remarks

The default value is Automatic.

This property is not supported in sessions initialized with the NIDCPower(string, bool, string) constructor.

Note

Automatic selection is not persistent and occurs only at the time this property is set to Automatic. However, if the session is in the Committed or Uncommitted state when you set this property, the power source selection occurs only after you call the Initiate method for all channels in the session.