SwitchChannel Class
- Updated2026-01-20
- 2 minute(s) read
Defines the properties which are used to configure the characteristics of a particular channel on a switch device.
Derives from
- SwitchSubObject
- IIviSwtchChannel
Syntax
Namespace: NationalInstruments.ModularInstruments.NISwitch
public class SwitchChannel : SwitchSubObject, IIviSwtchChannel
Remarks
For more information, refer to NI Switches Help.
Thread Safety
All members of this type are safe for multithreaded operations.
Properties
| Name | Description |
|---|---|
| AnalogBusSharingEnable | Gets or sets a value that indicates whether an analog bus line is shared, so that multiple NI SwitchBlock devices may connect to it simultaneously. To enable multiple NI SwitchBlock devices to share an analog bus line, set this attribute to true for each device on the channel that corresponds with the shared analog bus line. The default value for all devices is false, which disables sharing of the analog bus. |
| Characteristics | Gets a SwitchCharacteristics object which defines the specific characteristics of a channel. |
| IsConfigurationChannel | Gets or sets a value that specifies whether to reserve the channel for creating an internal path. A channel that is available for creating the internal path is called a configuration channel. The driver may use configuration channels to create paths between two channels which you specify in the Connect method. Configuration channels are not available for external connections. Set this attribute to true to mark the channel as a configuration channel. Set this attribute to false to mark the channel as available for external connections. After you identify a channel as a configuration channel, you cannot use that channel for external connections. The Connect method returns the Ivi.Swtch.IsConfigurationChannelException exception when you attempt to establish a connection between a configuration channel and any other channel. |
| IsSourceChannel | Gets or sets a value that specifies whether you want to identify the channel as a source channel. Typically, you set this attribute to true when you attach the channel to a power supply, a function generator, or an active measurement point on the unit under test, and you do not want to connect the channel to another source. The driver prevents source channels from connecting to each other. The Connect function returns the Ivi.Swtch.AttemptToConnectSourcesException when you attempt to connect two channels that you identify as source channels. |
| Name | Gets the name of the channel as defined in the NI-SWITCH device. |