NI-DCPower .NET fx40 API Reference

Table of Contents

NIDCPower Constructor (String, String, Boolean, String)

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

NIDCPower Constructor (String, String, Boolean, String)

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

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

Syntax

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

Parameters

resourceName
Type: SystemString
Specifies the name of the device in which the session is opened.
channelString
Type: SystemString
Specifies the output channels to be activated in this session.
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.

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

Remarks

Note Note
This constructor is deprecated. Use the NIDCPower(String, Boolean, String) constructor instead.

See Also

Log in to get a better experience