Initialize a Session

Use the NI-DCPower driver to initialize a session with the PXIe-4051.

Use the niDCPower Initialize With Independent Channels VI or niDCPower_InitializeWithIndependentChannels function to initialize a session.

For any application you write, you must open a session to establish communication with the PXIe-4051 or specified channel by initializing.

Initializing returns an instrument handle with the session configured to a known state. Initialization can take a significant amount of time compared to other NI-DCPower VIs and functions, so you should not include it in a loop when repeatedly acquiring data. Ideally, your program should call niDCPower Initialize With Independent Channels VI one time. If the reset parameter is set to TRUE, device channel is reset to the default state.