NI-DCPower .NET fx45 API Reference

Table of Contents

NIDCPower Constructor (String, Boolean, Boolean, String)

  • Updated2024-01-04
  • 2 minute(s) read
NIDCPower Constructor (String, Boolean, Boolean, String)

NIDCPower Constructor (String, Boolean, Boolean, String)

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

Namespace:  NationalInstruments.ModularInstruments.NIDCPower
Assembly:  NationalInstruments.ModularInstruments.NIDCPower.Fx45 (in NationalInstruments.ModularInstruments.NIDCPower.Fx45.dll) Version: 2023

Syntax

public NIDCPower(
	string resourceName,
	bool idQuery,
	bool resetDevice,
	string optionString
)
Public Sub New ( 
	resourceName As String,
	idQuery As Boolean,
	resetDevice As Boolean,
	optionString As String
)

Parameters

resourceName
Type: SystemString
Specifies the name of the device in which the session is opened.
idQuery
Type: SystemBoolean
Specifies whether you want NI-DCPower to perform an ID query. If NI-DCPower performs an ID query, then value of idQuery is ; otherwise .
resetDevice
Type: SystemBoolean
Specifies whether you want to reset NI-DCPower during the initialization procedure. If the device is reset, then value of resetDevice is ; otherwise .
optionString
Type: SystemString
Sets the initial state of the following session properties: RangeCheck, QueryInstrumentStatus, Cache, Simulate.

Remarks

Note 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 IviDCPwr class interfaces, call one of the Create(String) 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.

See Also

Log in to get a better experience