| libvkdaq VKINGING DAQ Library API Reference |

Loading...
Searching...
No Matches
Functions
format conversion
libvkdaq Function interface

## Functions
int32_t | VkDaqBinToCsv (const char *binPathName, const char *csvPathName)
| Parse the Bin format file obtained from offline storage into a Csv format file.

## Detailed Description

## Function Documentation

## ◆ VkDaqBinToCsv()

int32_t VkDaqBinToCsv | ( | const char * | binPathName,
|  | const char * | csvPathName
| ) |  |

Parse the Bin format file obtained from offline storage into a Csv format file.

data type | parameter | describe
--- | --- | ---
`const char*` | `binPathName` | The Bin file address that needs to be converted, for example: "C:\Program Files\VkDaqAssistant\20260101_103015.bin"
`const char*` | `csvPathName` | The address of the generated Csv file, for example: "C:\Program Files\VkDaqAssistant\20260101_103015.csv"

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"
#define VkDaqErrChk(functionCall) if( VkDaqFailed(error=(functionCall)) ) goto Error; else
int main(void)
{
int32 error = 0;
char binPathName;
// Call the conversion function
VkDaqFailed(VkDaqBinToCsv("C:\Program Files\VkDaqAssistant\20260101_103015.bin","C:\Program Files\VkDaqAssistant\20260101_103015.csv"));
Error:
if (VkDaqFailed(error))
printf("VkDaq Error: %s\n", VkDaqGetLastErrorInfo());
printf("End of program, press Enter key to quit\n");
getchar();
return 0;
}
VkDaqBinToCsv
int32_t VkDaqBinToCsv(const char *binPathName, const char *csvPathName)
Parse the Bin format file obtained from offline storage into a Csv format file.
VkDaqGetLastErrorInfo
const char * VkDaqGetLastErrorInfo(void)
Get the error message of the last execution.