NISwitch Constructor (String, Boolean, Boolean, String)
- Updated2023-02-21
- 2 minute(s) read
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
- Type: System..::.StringSpecifies the name of the device in which the session is opened.
- idQuery
- Type: System..::.BooleanValid Values: trueTruetruetrue (True in Visual Basic) - (Default Value) falseFalsefalsefalse (False in Visual Basic) - Currently unsupported.
- resetDevice
- Type: System..::.BooleantrueTruetruetrue (True in Visual Basic) - Reset Device (Default Value) falseFalsefalsefalse (False in Visual Basic) - Currently unsupported. The device will not reset.
- optionString
- Type: System..::.StringSets the initial state of the following session properties: SwitchDriverOperation.RangeCheck, SwitchDriverOperation.QueryInstrumentStatus, SwitchDriverOperation.Cache , SwitchDriverOperation.Simulate , SwitchDriverOperation.RecordCoercions , SwitchDriverOperation.DriverSetup.