NISwitch Constructor (String, String, Boolean, Boolean)
- Updated2023-02-21
- 3 minute(s) read
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
- Type: System..::.StringSpecifies the name of the device in which the session is opened.
- topology
- Type: System..::.StringPass 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
- Type: System..::.BooleanEnables 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
- Type: System..::.BooleanSpecifies 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.