DCPowerOutputControl.Commit Method
- Updated2024-01-04
- 1 minute(s) read

DCPowerOutputControlCommit Method
Applies previously configured settings to the specified channel(s). Calling this method moves the channel(s) from the Uncommitted state into the Committed state.
After calling this method, modifying any property reverts the channel(s) to the Uncommitted state. Use the Initiate method to transition to the Running state.
Namespace: NationalInstruments.ModularInstruments.NIDCPower
Assembly: NationalInstruments.ModularInstruments.NIDCPower.Fx45 (in NationalInstruments.ModularInstruments.NIDCPower.Fx45.dll) Version: 2023
Syntax
public void Commit()
Public Sub Commit
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | The method was called after the associated NIDCPower object was disposed. |
SelectorNameException | The method was called with an unknown channel name. |
IviCDriverException | The underlying NI-DCPower driver returned an error. |
Remarks
Refer to the Programming States topic in the NI DC Power Supplies and SMUs Help for information about the specific software states.
Specify the channel(s) using the form PXI1Slot3/0,PXI1Slot3/2-3,PXI1Slot4/2-3 or PXI1Slot3/0,PXI1Slot3/2:3,PXI1Slot4/2:3, where PXI1Slot3 and PXI1Slot4 are instrument resource names and 0, 2, and 3 are channels. If you do not provide channel(s), all channels in the session are used.