[Deprecated] Creates a new instrument driver session and sets the initial state of session properties.

Syntax

Namespace: NationalInstruments.ModularInstruments.NIDCPower

public NIDCPower(string resourceName, string channelString, bool resetDevice, string optionString)

Remarks

Note

This constructor is deprecated. Use the NIDCPower(string, bool, string) constructor instead.


For more information on the format of optionString, refer to the NI DC Power Help.

Parameters

NameTypeDescription
resourceNamestring

Specifies the name of the device in which the session is opened.

channelStringstring

Specifies the channels to be activated in this session.

resetDevicebool

Specifies whether you want to reset NI-DCPower during the initialization procedure. If the device is reset, then value of resetDevice is true ; otherwise false

optionStringstring

Sets the initial state of the following session properties: RangeCheck, QueryInstrumentStatus, Cache, Simulate.