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

Syntax

Namespace: NationalInstruments.ModularInstruments.NIDCPower

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

Remarks

Note

This constructor is intended for use only through the IVI.NET interface. National Instruments recommends that you do not call this constructor directly. Instead, you can use one of the following methods:
  • If you intend to access this driver through the Ivi.DCPwr.IviDCPwr class interfaces, call one of the Ivi.DCPwr.IviDCPwr.Create method to construct the NIDCPower class.  

  • If you intend to access this driver through the NIDCPower class, use a constructor that accepts a channelString parameter.  

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.

idQuerybool

Specifies whether you want NI-DCPower to perform an ID query. If NI-DCPower performs an ID query, then value of idQuery is true; otherwise false.

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.