| libvkdaq VKINGING DAQ Library API Reference |

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

## Functions
int32_t | VkDaqGetDevices (char devsAddress[], char devsName[], int32_t size)
| Get device list.

## Detailed Description

## Function Documentation

## ◆ VkDaqGetDevices()

int32_t VkDaqGetDevices | ( | char | devsAddress[],
|  | char | devsName[],
|  | int32_t | size
| ) |  |

Get device list.

data type | parameter | describe
--- | --- | ---
`char[]` | `devsAddress[]` | Character array, used to store a list of device addresses. The function will fill in the IP address/USB device address of all devices in this array, and use commas to separate the IP address/USB device address of multiple devices
`char[]` | `devsName[]` | Character array, used to store the device name list. The function will fill the corresponding device name into this array. Multiple device names are separated by commas.
`int32_t` | `size` | The size of the devsAddress and devsName arrays.

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[])
{
char devsAddress[4096] = { 0 };
char devsName[4096] = { 0 };
int32_t size = sizeof(devsAddress);
int32_t result = VkDaqGetDevices(devsAddress, devsName, size);
printf("devsAddress = %s \n", devsAddress);
printf("devsName = %s \n", devsName);
if (result >= 0) {
printf("Successful\n");
}
else {
printf("Failed\n");
}
return 0;
}
VkDaqGetDevices
int32_t VkDaqGetDevices(char devsAddress[], char devsName[], int32_t size)
Get device list.