LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with the call library function node-using callbacks

I am trying to call the  function pasted below using the call library function node. I'm not sure how to use the callback functions, any help or links to examples/tutorials would be greatly appreciated. Thanks!

long McammAcquisitionEx(
long cameraindex,
unsigned short* pData,
long allocatedSize,
McamImageProc pCallBack,
void* UserParam
)

Parameters

  • cameraindex

    Index of the Cam to be used

  • pData

    Pointer to an image buffer.

  • allocatedSize

    Size of the allocated picture in BYTEs.

  • pCallBack

    Pointer to a McamImageProc function, might be NULL.

  • UserParam

    Value to be passed to the callback.


0 Kudos
Message 1 of 2
(2,935 Views)
 

Hi mmir,

There are a few great starting places to use as resources. The first place that has a lot of information about the Call Library Function Node is the LabVIEW help. There is an article called Configuring the Call Library Function Node and it talks about setting it up and all the different parameters, etc. At the bottom of this LabVIEW help page, there are links to other useful resources as well. There is also a good discussion forum that discusses how to pass a callback function to a call library function node, which could also be good to look at. Also, in the NI Example Finder, there are a few examples using the Call Library Function Node (Call dll.vi is one that might be useful). If you just do a search on call library, you will get a list of examples, including the one mentioned above. I hope this helps get you started!

National Instruments
Applications Engineer
0 Kudos
Message 2 of 2
(2,919 Views)