NI-SWITCH 19.0 .NET Framework 4.0 API Reference

Table of Contents

NISwitch Constructor (String, String, Boolean, Boolean)

  • Updated2023-02-21
  • 3 minute(s) read
NISwitch Constructor (String, String, Boolean, Boolean)
Creates a new instrument driver session and sets the topology of device.

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, _
	topology As String, _
	simulate As Boolean, _
	resetDevice As Boolean _
)
C#
public NISwitch(
	string resourceName,
	string topology,
	bool simulate,
	bool resetDevice
)

Parameters

resourceName
Specifies the name of the device in which the session is opened.
topology
Pass the topology name you want to use for the switch you specify with the resourceName parameter. All the valid values are defined in NISwitch.SwitchDeviceTopology.
simulate
Enables simulation of the switch module specified in the resourceName parameter. trueTruetruetrue (True in Visual Basic) Simulate. falseFalsefalsefalse (False in Visual Basic)(default) Do not simulate.
resetDevice
Specifies whether to reset the switch module during the initialization process. trueTruetruetrue (True in Visual Basic) (default) Reset device. falseFalsefalsefalse (False in Visual Basic) The device will not reset.

See Also

Log in to get a better experience