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

库函数

库函数

信息包含图像

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

1.png


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

2.png

7 条回复7
Highlighted
zou
Trusted Enthusiast
Trusted Enthusiast

Re: 库函数

LabVIEW 中不能调用 callback 函数.

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

 

George Zou
zou
Trusted Enthusiast
Trusted Enthusiast

Re: 库函数

消息包含超链接
constructionworker
Active Participant

Re: 库函数

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?

 

 

zou
Trusted Enthusiast
Trusted Enthusiast

Re: 库函数

消息包含超链接
constructionworker
Active Participant

Re: 库函数

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?

zou
Trusted Enthusiast
Trusted Enthusiast

Re: 库函数

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

 

George Zou
constructionworker
Active Participant

Re: 库函数

Thanks for your suggestion