DCPowerAdvanced.PowerSource Property
- Updated2024-01-04
- 1 minute(s) read

DCPowerAdvancedPowerSource Property
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.
Namespace: NationalInstruments.ModularInstruments.NIDCPower
Assembly: NationalInstruments.ModularInstruments.NIDCPower.Fx40 (in NationalInstruments.ModularInstruments.NIDCPower.Fx40.dll) Version: 2023
Syntax
public DCPowerPowerSource PowerSource { get; set; }
Public Property PowerSource As DCPowerPowerSource Get Set
Property Value
Type: DCPowerPowerSourceThe default value is Automatic.
Remarks
This property is not supported in sessions initialized with the NIDCPower(String, Boolean, String) constructor.
![]() |
---|
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. |