NI-DAQmx .NET Framework 4.5 API Reference

DaqSystem.AddNetworkDevice Method (String, String, Boolean, Double)

  • Updated2023-02-21
  • 1 minute(s) read
DaqSystem.AddNetworkDevice Method (String, String, Boolean, Double)
Adds a Network cDAQ device to the system and, if specified, attempts to reserve it.

Namespace:  NationalInstruments.DAQmx
Assembly:  NationalInstruments.DAQmx (in NationalInstruments.DAQmx.dll) Version: 20.7.45.49302

Syntax

public Device AddNetworkDevice(
	string ipAddress,
	string deviceName,
	bool attemptReservation,
	double timeout
)
Public Function AddNetworkDevice ( 
	ipAddress As String,
	deviceName As String,
	attemptReservation As Boolean,
	timeout As Double
) As Device

Parameters

ipAddress
Type: SystemString
Specifies the string containing the IP address (in dotted decimal notation) of the device to add to the system.
deviceName
Type: SystemString
The name to assign to the device. If unspecified, NI-DAQmx chooses the device name.
attemptReservation
Type: SystemBoolean
Specifies whether a reservation should be attempted after the device is successfully added.
timeout
Type: SystemDouble
Specifies the time in seconds to wait for the device to respond before timing out.

Return Value

Type: Device
The device object the operation applied to.

Exceptions

ExceptionCondition
DaqExceptionThe NI-DAQmx driver returned an error.

Remarks

MAX automatically attempts to reserve a device when the device is added, but this method does not, unless attemptReservation is set to .

See Also

Log in to get a better experience