DAQmxAddNetworkDevice
- Updated2023-03-16
- 1 minute(s) read
int32 DAQmxAddNetworkDevice (const char IPAddress[], const char deviceName[], bool32 attemptReservation, float64 timeout, char deviceNameOut[], uInt32 deviceNameOutBufferSize);
Purpose
Adds a Network cDAQ device to the system and, if specified, attempts to reserve it.
Parameters
| Input | ||
| Name | Type | Description |
|---|---|---|
| IPAddress | const char [] | The IP address, in dotted decimal notation, of the device to add to the system. |
| deviceName | Specifies the name to assign to the device. If unspecified, NI-DAQmx chooses the device name. | |
| attemptReservation | bool32 | Indicates if a reservation should be attempted after the device is successfully added. |
| timeout | float64 | The time, in seconds, to wait for the device to respond before timing out. |
| Output | ||
| deviceNameOut | const char [] | The name of the device the operation is applied to. |
| deviceNameOutBufferSize | uInt32 | The size of the buffer of the specified device. |
Return Value
| Name | Type | Description |
|---|---|---|
| status | int32 | The error code returned by the function in the event of an error or warning. A value of 0 indicates success. A positive value indicates a warning. A negative value indicates an error. |