NI-SWITCH 19.0 .NET Framework 4.0 API Reference

Table of Contents

NISwitch Constructor (String, Boolean, Boolean, String)

  • Updated2023-02-21
  • 2 minute(s) read
NISwitch Constructor (String, Boolean, Boolean, String)
Creates a new instrument driver session and sets the initial state of session properties.

Namespace:  NationalInstruments.ModularInstruments.NISwitch
Assembly:  NationalInstruments.ModularInstruments.NISwitch.Fx40 (in NationalInstruments.ModularInstruments.NISwitch.Fx40.dll) Version: 19.0.0.49152 (19.0.0.49152)
Visual Basic (Declaration)
Public Sub New ( _
	resourceName As String, _
	idQuery As Boolean, _
	resetDevice As Boolean, _
	optionString As String _
)
C#
public NISwitch(
	string resourceName,
	bool idQuery,
	bool resetDevice,
	string optionString
)

Parameters

resourceName
Specifies the name of the device in which the session is opened.
idQuery
Valid Values: trueTruetruetrue (True in Visual Basic) - (Default Value) falseFalsefalsefalse (False in Visual Basic) - Currently unsupported.
resetDevice
trueTruetruetrue (True in Visual Basic) - Reset Device (Default Value) falseFalsefalsefalse (False in Visual Basic) - Currently unsupported. The device will not reset.
optionString

See Also

Log in to get a better experience