LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to implement a callback function using LabView's Call Library Function Node?

Solved!
Go to solution

Dear rolf,

thank you for your Reply. It is a complex issue.Correct links are very helpful

0 Kudos
Message 21 of 24
(1,058 Views)

Hi Hallman,

I did solve the problem. I will post my solution soon but it involves creating a new .dll in C++ for my LabView software that dereferences all the pointers. This new .dll gets all the functions from the Canon .dll. I also found a solution that handles all the callback functions. Again it requires a bit of C++ code.

 

Alejandro

0 Kudos
Message 22 of 24
(1,045 Views)

Hello Alejandro

 thank you for you replay. I think you solution (an example) will help. I know you need also C++. It's ok.

So i will wait of your posting.

Best regard

 

Alexander Hallmann

0 Kudos
Message 23 of 24
(1,040 Views)

Found an easier way.

Used this for .net and c callback functions.

Instead of using variants and passing user parameters, I just use a user event counter, and process all the data in the callback vi.

The data is then shared in a global variable to be read when there is a user event on the event counter.

 

Completely contrived, but works like a bomb, no matter how complex the callback.

0 Kudos
Message 24 of 24
(741 Views)