SerialNumber
- Updated2026-01-20
- 1 minute(s) read
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
| Type | Description |
|---|---|
| System.ObjectDisposedException | The SerialNumber was accessed after the associated NISwitch object was disposed. |