本帖最后由 tjauto 于 2019-2-25 08:47 编辑
函数原型
FlashResult Start ( VFLASHHANDLE projectHandle, CallbackProgress callbackProgress,
CallbackStatus callbackStatus )
函数说明
Parameters:
[in] projectHandle Handle to the project
[in] callbackProgress Func
tion pointer periodically reporting the flash progress in percent and the remaining time in [sec]
[in] callbackStatus Function pointer reporting the status of the flash process. The flash process is completed, either if "FS_Success" or an error ("FS_xxx > 0") is signaled
Returns VFlashResult Error or success information。
回调函数一
typedef void(* CallbackProgress)(unsigned int progressInPercent, unsigned int remainingTimeInS);
函数说明
Returns VFlashResult Error or sucallback reporting the flash progress in percent and the remaining time in [sec].
Parameters
[in] progressInPercent Flash progress in percent
[in] remainingTimeInS Remaining time in [sec]
回调函数二
typedef void(* CallbackStatus)(VFlashStatus flashStatus);
函数说明
Callback reporting the status of the flash process. The flash process is completed, either if "FS_Success" or an error ("FS_xxx > 0") is signaled.
Parameters
[in] flashStatus The flash status
C语言中回调函数一和二,直接打印输出
void ReportProgress(unsigned int progressInPercent, unsigned int remainingTimeInS)
{
printf("Progress: %d%% - Remaining Time: %2d secsr", progressInPercent, remainingTimeInS);
}
void ReportStatus(VFlashStatus flashStatus)
{
if (flashStatus == FS_Success)
{
printf("nReprogramming successfully finished.nn");
}
else
{
printf("nReprogramming failed (Code: %d)nn", flashStatus);
PrintLastFlashError(false);
}
}
请问回调函数一中的参数值progressInPercent, remainingTimeInS,回调函数二中的参数值flashStatus,怎么在
labview中作为输出值显示?
dll及头文件见附件,请大神们帮帮忙,万分感谢!