libvkdaq
VKINGING DAQ Library API Reference
 
Loading...
Searching...
No Matches

Functions

int32_t VkDaqGetTasks (char tasks[], int32_t size)
 Get task.
 

Detailed Description

Function Documentation

◆ VkDaqGetTasks()

int32_t VkDaqGetTasks ( char  tasks[],
int32_t  size 
)

Get task.

data type parameter describe
char[] tasks[] A character array used to store task names, separated by commas between multiple values.
int32 size The size of the task array.

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 tasks[256] = { 0 };
int32_t size = sizeof(tasks);
int32_t result = VkDaqGetTasks(tasks, size);
printf("tasks= %s ,size= %d \n", tasks,size);
if (result >=0 ) {
printf("Successful\n");
}
else {
printf("Failed\n");
}
return 0;
}
int32_t VkDaqGetTasks(char tasks[], int32_t size)
Get task.