Switch Class
- Updated2023-02-21
- 5 minute(s) read
Switch Class
Note: This API is now obsolete.
Encapsulates a switch device and contains properties and methods that operate on switch devices outside the context of a task.
Inheritance Hierarchy
SystemObject
SystemMarshalByRefObject
NationalInstruments.DAQmxSwitch
SystemMarshalByRefObject
NationalInstruments.DAQmxSwitch
Namespace: NationalInstruments.DAQmx
Assembly: NationalInstruments.DAQmx (in NationalInstruments.DAQmx.dll) Version: 20.7.40.49302
Syntax
[ObsoleteAttribute("This type is obsolete.")] public class Switch : MarshalByRefObject
<ObsoleteAttribute("This type is obsolete.")> Public Class Switch Inherits MarshalByRefObject
The Switch type exposes the following members.
Properties
Name | Description | |
---|---|---|
![]() | AutoConnectAnalogBus |
Specifies if NI-DAQmx routes multiplexed channels to the analog bus backplane. Only the SCXI-1127 and SCXI-1128 support this property.
|
![]() | IsSettled |
Indicates when SettlingTime has expired.
|
![]() | NumberOfColumns |
Gets the number of columns on a device in a matrix switch topology. This value is always 1 if the device is in a mux topology.
|
![]() | NumberOfRelays | Indicates the number of relays on the device.
This value matches the number of relay names in RelayList.
|
![]() | NumberOfRows |
Indicates the number of rows on a device in a matrix switch topology. Indicates the number of multiplexed channels on a device in a mux topology.
|
![]() | NumberOfSwitchChannels |
Indicates the number of switch channels for the current topology of the device.
This value matches the number of channel names in SwitchChannelList.
|
![]() | PowerDownLatchingRelaysAfterSettling |
Specifies if
WaitForSettling powers down latching relays after waiting for the device to settle.
|
![]() | RelayList |
Indicates a
comma-delimited list of relay names.
|
![]() | SettlingTime |
Specifies in seconds the amount of time to wait for the switch to settle (or debounce). NI-DAQmx adds this time to the settling time of the motherboard. Modify this property only if the switch does not settle within the settling time of the motherboard. Refer to device documentation for supported settling times.
|
![]() | SupportedTopologies | Gets an array of the names of all switch topologies supported by this switch device. |
![]() | SwitchChannelList |
Indicates a comma-delimited list of channel names for the current topology of the device.
|
![]() | Temperature |
Indicates the current temperature as read by the Switch module in degrees Celsius. Refer to your device documentation for more information.
|
![]() | Topology |
Indicates the current topology of the device. This value is one of the topology options in SetTopologyAndReset(String).
|
Methods
Name | Description | |
---|---|---|
![]() | CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
![]() | Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) |
![]() | SetTopologyAndReset | Resets a switch device and sets its topology. |
![]() | ToString | Returns a string representation of the object. (Overrides ObjectToString.) |
![]() | WaitForSettling | Waits for the settling time on the device to expire. |
Remarks
![]() |
---|
Example applications are located in the Public Documents\National Instruments\NI-DAQ\Examples\DotNET4.x directory or in the Start menu at National InstrumentsNI-DAQmxNI-DAQmx Examples. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.