NIRfpmSwitch Constructor (String, Boolean, Boolean)
- Updated2023-12-28
- 1 minute(s) read
NIRfpmSwitch Constructor (String, Boolean, Boolean)
Initializes a new instance of the NIRfpmSwitch class.
Namespace: NationalInstruments.ModularInstruments.NIRfpmSwitch
Assembly: NationalInstruments.ModularInstruments.NIRfpmSwitch.Fx40 (in NationalInstruments.ModularInstruments.NIRfpmSwitch.Fx40.dll) Version: 2023
Syntax
public NIRfpmSwitch( string resourceName, bool idQuery, bool resetDevice )
Public Sub New ( resourceName As String, idQuery As Boolean, resetDevice As Boolean )
Parameters
- resourceName
- Type: SystemString
The name of the device on which the session is opened. - idQuery
- Type: SystemBoolean
to verify that the instrument you initialize is supported by the NI-RFPM Switch driver software. The default value is . - resetDevice
- Type: SystemBoolean
to reset the switch to a known state when the session is initialized. The default value is .
Exceptions
Exception | Condition |
---|---|
ArgumentException |
The value for resourceName is .
- or - The value for resourceName is invalid. |
IviCDriverException | The underlying NI-RFPM Switch driver returned an error. |