LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Call library function node in a loop

Hello All,

I am currently using a call library function node in a while loop which calls a third party dll to process and recieve some data.

My question is, if I am using this function in a while loop, what exactly happens?

Does the dll get called in each loop iteration, or does it keep the called dll loaded in memory and just pass the values to it to process data?

Also, if the answer to the above question is that it will make calls to the DLL in each iteration, how can we keep it loaded in memory always? I mean, if the DLL is a .NET application DLL, I believe the main .NET application which uses this DLL won't do multiple calls to the dll, rather it will keep it loaded in memory.

 

Thanks

 

FraggerFox!

-FraggerFox!
Certified LabVIEW Architect, Certified TestStand Developer
"What you think today is what you live tomorrow"
0 Kudos
Message 1 of 2
(2,174 Views)

Hi,

 

the DLL will stay in memory as long as there is a program running which has not closed (unloaded) the DLL.

Doing repetitive calls to the DLL is irrelevant in this context. LV opens the DLL as soon as needed and will only unload it when there is no VI in memory which has a CLN to that DLL...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 2
(2,163 Views)