完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
|
本帖最后由 tjauto 于 2019-2-25 08:47 编辑
函数原型 FlashResult Start ( VFLASHHANDLE projectHandle, CallbackProgress callbackProgress, CallbackStatus callbackStatus ) 函数说明 Parameters: [in] projectHandle Handle to the project [in] callbackProgress Function 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及头文件见附件,请大神们帮帮忙,万分感谢!
|
|
相关推荐
1 条评论
3个回答
|
|
|
本帖最后由 秋印石 于 2019-2-20 09:10 编辑
········································································· |
|
|
|
|
|
可以用调用库函数节点 选择 互联接口---库于可执行程序---调用库函数节点,然后双击调用库函数节点,配置库函数调用的deLL文件路径设置一下就好了
|
|
|
|
|
|
大佬,解决了吗,我也需要用labview去调用这个vFLASH,,请问这个怎么解决?跪求!
|
|
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
211 浏览 0 评论
请教大神,在labview里面对实时扫描资源中的C系列模块NI9234进行配置发生非预期错误
1709 浏览 0 评论
1585 浏览 0 评论
LABVIEW 2023 Q1调用python后一直报错1671
1960 浏览 2 评论
5207 浏览 3 评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 06:18 , Processed in 0.571000 second(s), Total 54, Slave 44 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
14668