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: 

When I use Call Library Function Node in real time, is the DLL loaded once for all or load every time it is called?

Solved!
Go to solution

When I use Call Library Function Node in real time, is the DLL loaded once for all or load every time when it is called?

I have a time critical real time application, in which I use a piece of DLL function developed by C++.  It is OK?  Could any senior developer assure me?

Thank you in advance.

0 Kudos
Message 1 of 5
(2,736 Views)

@qing_shan61 wrote:

When I use Call Library Function Node in real time, is the DLL loaded once for all or load every time when it is called?


Once

 


@qing_shan61 wrote:

I have a time critical real time application, in which I use a piece of DLL function developed by C++.  It is OK?


OK

 

Be sure that all DLL calls are thread safe (do not perform calls in UI thread).

 

Also for real-time application you need real-time OS.

 

Andrey.

Message 2 of 5
(2,730 Views)

what is a UI thread? Andy

0 Kudos
Message 3 of 5
(2,728 Views)
Solution
Accepted by topic author qing_shan61

The UI thread is the thread used to update the user interface. It's slow. And it's meant to be that way because humans are slow.

 

The Call Library Function Node can be configured as to what thread to use in the configuration dialog for it. Please review the LabVIEW documentation on how to do this.

Message 4 of 5
(2,724 Views)

Hi, if I call the same function in a dll once from a call library function out of while loop and next time onwards inside while loop using another call library function will it continue in the same dll function alredy opened outside the loop or will it create a new copy of dll function execution.

if I want to continue on the same dll function what should I do.

my first iteration is read file database and others are real time simulation program that uses the data read in first iteration.

 

0 Kudos
Message 5 of 5
(2,386 Views)