NI LabVIEW,CVI,数据采集等产品讨论区

取消
显示结果 
搜索替代 
您的意思是: 

库函数

用Labview开发海康威视的SDK时,遇到需要图像叠加,提供的函数是:NET_DVR_RigisterDrawFun,这个函数中有个参数是回调函数:

1.png


用库函数调用DLL,并且添加回调函数进行图像叠加,请问怎么使用库函数中的回调呢?

2.png

0 项奖励
1 条消息(共 8 条)
2,449 次查看

LabVIEW 中不能调用 callback 函数.

一般先用其它语言编成 dll, 然后给 LabVIEW 用.

 

George Zou
0 项奖励
2 条消息(共 8 条)
2,405 次查看
0 项奖励
3 条消息(共 8 条)
2,402 次查看

We are trying to create hikvision SDK in labview We partially succeeded in reading the video and we are doing the checks, but we have a problem we want to use the video with labview IMAQ(NI-Vision library). We get the image with NET_DVR_RealPlay'', but to use the image with labview image display, we need to use ''NET_DVR_RealPlay_V40''. This function needs callback function. For this callback function, a ''dll'' with callback function compiled in c++ is required .I couldn't manage to create it.

Can anyone help with this?

 

 

0 项奖励
4 条消息(共 8 条)
1,854 次查看
0 项奖励
5 条消息(共 8 条)
1,844 次查看

The discussion you suggested has the same problem. A wrapper dll must be created for the callback. I don't know how to create it. I need help from someone with Labview and C knowledge on this. Can anyone help with this?

0 项奖励
6 条消息(共 8 条)
1,834 次查看

Those LabVIEW users helping OP are the best you can get in the community.

 

George Zou
0 项奖励
7 条消息(共 8 条)
1,831 次查看
Thanks for your suggestion
0 项奖励
8 条消息(共 8 条)
1,824 次查看