LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pass a datalog or GOOP refnum to a DLL

How does one pass a datalog or GOOP refnum to a DLL? I have VI's utilizing GOOP that I want to convert to a DLL. I want to create a refnum on the first call to the DLL and pass it to subsequent calls to the DLL.
0 Kudos
Message 1 of 3
(2,605 Views)
Hi,

I am assuming that you have a few GOOP VIs that you have converted into DLLs and want to pass the GOOP reference from one dll call to the next.

I managed to pass the refnum from one dll call to the next by using "Adapt to Type" for the type of the parameter when configuring the call library function. I have attached a picture of what my code looks like.

Please give this a try and see if it works for you. Please let me know how this goes.

Sincerely,
Feroz
National Instruments
0 Kudos
Message 2 of 3
(2,605 Views)
Hi,

You could always cast the GOOP reference to an I32 and use this data type in your DLL.

The reference is actually only a 4 byte integer pointer passed from one GOOP method to an other and could therefore easily be casted.

Regards,
Mattias Ericsson
Endevo
0 Kudos
Message 3 of 3
(2,605 Views)