From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pointer on a function

Hello,

I Would like to use a DLL (written in C). An argument of a function of
this DLL is a pointer to a function. How can I use the labview types to
have acces to this function ?

THanks for your help

PS: I hope to be enough clear

--
Remy CLAVERIE
CESIUM
Universite de METZ
7 Rue MARCONI
Tel : 03.87.54.73.00
Fax : 03.87.54.73.01
0 Kudos
Message 1 of 2
(2,120 Views)
What the dll probably needs is a pointer to a function you've made. This is
generally known as a callback function.

This cannot be done in LV (or rather, it is very hard). You'll have to make
a DLL with the callback function, and get the entry point of that function.
This is the pointer to the function. (This is also not easy at all.)

Good luck with it,

Wiebe.


"Remy CLAVERIE" wrote in message
news:3CDF5BA6.F1C1C102@sciences.univ-metz.fr...
> Hello,
>
> I Would like to use a DLL (written in C). An argument of a function of
> this DLL is a pointer to a function. How can I use the labview types to
> have acces to this function ?
>
> THanks for your help
>
> PS: I hope to be enough clear
>
> --
> Remy CLAVERIE
> CESIUM
> U
niversite de METZ
> 7 Rue MARCONI
> Tel : 03.87.54.73.00
> Fax : 03.87.54.73.01
>
>
0 Kudos
Message 2 of 2
(2,121 Views)