NI-DAQmx .NET Framework 4.0 API Reference

Content Type
Programming Language
Current manual
Table of Contents

Switch Class

Switch Class

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

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

  NameDescription
Public propertyAutoConnectAnalogBus
Specifies if NI-DAQmx routes multiplexed channels to the analog bus backplane. Only the SCXI-1127 and SCXI-1128 support this property.
Public propertyIsSettled
Indicates when SettlingTime has expired.
Public propertyNumberOfColumns
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.
Public propertyNumberOfRelays
Indicates the number of relays on the device. This value matches the number of relay names in RelayList.
Public propertyNumberOfRows
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.
Public propertyNumberOfSwitchChannels
Indicates the number of switch channels for the current topology of the device. This value matches the number of channel names in SwitchChannelList.
Public propertyPowerDownLatchingRelaysAfterSettling
Specifies if WaitForSettling powers down latching relays after waiting for the device to settle.
Public propertyRelayList
Indicates a comma-delimited list of relay names.
Public propertySettlingTime
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.
Public propertySupportedTopologies
Gets an array of the names of all switch topologies supported by this switch device.
Public propertySwitchChannelList
Indicates a comma-delimited list of channel names for the current topology of the device.
Public propertyTemperature
Indicates the current temperature as read by the Switch module in degrees Celsius. Refer to your device documentation for more information.
Public propertyTopology
Indicates the current topology of the device. This value is one of the topology options in SetTopologyAndReset(String).
Top

Methods

  NameDescription
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodMemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Public methodSetTopologyAndReset
Resets a switch device and sets its topology.
Public methodToString
Returns a string representation of the object.
(Overrides ObjectToString.)
Public methodWaitForSettling
Waits for the settling time on the device to expire.
Top

Remarks

Tip Tip
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.

See Also

Was this information helpful?