Obsolete: This type is obsolete. Will warn if used
Encapsulates a switch device and contains properties and methods that operate on switch devices outside the context of a task.

Derives from

  • MarshalByRefObject

Syntax

Namespace: NationalInstruments.DAQmx

public class Switch : MarshalByRefObject

Remarks

Note

Example applications are located in the <Public Documents>\National Instruments\NI-DAQ\Examples\DotNET4.x directory or in the Start menu at National Instruments»NI-DAQmx»NI-DAQmx Examples.

Thread Safety

All members of this type are safe for multithreaded operations.

Properties

NameDescription
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

NameDescription
SetTopologyAndReset(string)

Resets a switch device and sets its topology.

ToString()

Returns a string representation of the object.

WaitForSettling()

Waits for the settling time on the device to expire.

See Also