RfpmSwitchPath.SetPath Method
- Updated2023-12-28
- 1 minute(s) read
RfpmSwitchPathSetPath Method
Creates a path given a pathDescription.
Namespace: NationalInstruments.ModularInstruments.NIRfpmSwitch
Assembly: NationalInstruments.ModularInstruments.NIRfpmSwitch.Fx40 (in NationalInstruments.ModularInstruments.NIRfpmSwitch.Fx40.dll) Version: 2023
Syntax
public void SetPath( RfpmSwitchPathDescription pathDescription )
Public Sub SetPath ( pathDescription As RfpmSwitchPathDescription )
Parameters
- pathDescription
- Type: NationalInstruments.ModularInstruments.NIRfpmSwitchRfpmSwitchPathDescription
A description of the path to set.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException |
Both channels are connected to a different source.
- or - The specified channels cannot be directly connected.- or - The driver cannot find a path between the two channels. |
IviCDriverException | The underlying NI-RFPM Switch driver returned an error. |
ArgumentNullException | The pathDescription is . |
ObjectDisposedException | SetPath(RfpmSwitchPathDescription) was called after the associated NIRfpmSwitch or RfpmSwitchDriverUtility object was disposed. |
Remarks
Calling this method may cause existing paths to be disconnected to connect the path described by pathDescription.