Gets the serial number for the switch controlled by NI-SWITCH.

Syntax

Namespace: NationalInstruments.ModularInstruments.NISwitch

public string SerialNumber { get; }

Remarks

If the device does not return a serial number, NI-SWITCH returns the Invalid Attribute error.

Returns

Specifies a String that indicates the serial number for the switch controlled by the NI-SWITCH driver.

Exceptions

TypeDescription
System.ObjectDisposedException

The SerialNumber was accessed after the associated NISwitch object was disposed.