| libvkdaq VKINGING DAQ Library API Reference |

Loading...
Searching...
No Matches
Functions
Add device
libvkdaq Function interface » Configuration task

## Functions
int32_t | VkDaqAddDevice (const char *dev)
| Add device.

## Detailed Description

## Function Documentation

## ◆ VkDaqAddDevice()

int32_t VkDaqAddDevice | ( | const char * | dev | ) |

Add device.

data type | parameter | describe
--- | --- | ---
`const char*` | `dev` | IPv4 address, such as "192.168.1.199", etc )

Returns
  On success, return value >= 0.
  On failure, returns a negative error number.For detail, please Call VkDaqGetLastErrorInfo

C language reference
#include <stdio.h>
#include "libvkdaq.h"
int main(int argc, char* argv[])
{
const char* dev = "192.168.1.199";
int32_t result = VkDaqAddDevice(dev);
if (result >= 0) {
printf("Successful\n");
}
else {
printf("Failed\n");
}
return 0;
}
VkDaqAddDevice
int32_t VkDaqAddDevice(const char *dev)
Add device.