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

NameTypeDescription
ipAddressstring

Specifies the string containing the IP address (in dotted decimal notation) of the device to add to the system.

deviceNamestring

The name to assign to the device. If unspecified, NI-DAQmx chooses the device name.

timeoutdouble

Specifies the time in seconds to wait for the device to respond before timing out.

Returns

The device object the operation applied to.

Exceptions

TypeDescription
NationalInstruments.DAQmx.DaqException

The NI-DAQmx driver returned an error.