AddNetworkDevice(string, string, double)
- Updated2026-02-05
- 1 minute(s) read
Adds a Network cDAQ device to the system. This method does not attempt to reserve the device after the device is successfully added.
Syntax
Namespace: NationalInstruments.DAQmx
public Device AddNetworkDevice(string ipAddress, string deviceName, double timeout)
Remarks
MAX automatically attempts to reserve a device when the device is added, but this method does not.
Parameters
| Name | Type | Description |
|---|---|---|
| ipAddress | string | Specifies the string containing the IP address (in dotted decimal notation) of the device to add to the system. |
| deviceName | string | The name to assign to the device. If unspecified, NI-DAQmx chooses the device name. |
| timeout | double | Specifies the time in seconds to wait for the device to respond before timing out. |
Returns
The device object the operation applied to.
Exceptions
| Type | Description |
|---|---|
| NationalInstruments.DAQmx.DaqException | The NI-DAQmx driver returned an error. |