LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

call by reference using dlls

Hi there,

I have a question about the behaviour of DLLs when using a call by reference node. If a DLL is loaded in some earlier VI, and a sub-VI of this calls-by-reference another VI which uses the same DLL, will the same instance of the DLL be used, or will LabVIEW load a fresh DLL into memory?

Thanks!

Neil
0 Kudos
Message 1 of 4
(2,757 Views)
Try this attached example. I am calling the same dll in parallel. What this will do if in highlighted execution is call both but one or the other will have to wait until the first instance of the DLL is finished executing. Once the first instance is done the second instance will execute. So the DLL will not work like a template it will have to call itself again after the first instance unloads itself. Hope this helps.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 2 of 4
(2,724 Views)
Thanks Brandon,

I neglected to mention I am using 7.0, so I can't run the attached VIs, would it be possible for you to save them in 7.0 format?

I have tried something similar before, and the LV IDE loads the DLL once and data can be shared between apps, but when both are compiled this link breaks (like it should I suppose). I am still unsure what happens when a DLL is dynamically loaded loaded using a call-by-reference function.
0 Kudos
Message 3 of 4
(2,722 Views)
here you go. try this.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 4 of 4
(2,719 Views)